Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fallback when the text is not in the dictionary #31

Closed
aralroca opened this issue Jan 8, 2020 · 0 comments · Fixed by #32
Closed

Fix fallback when the text is not in the dictionary #31

aralroca opened this issue Jan 8, 2020 · 0 comments · Fixed by #32
Assignees
Labels
bug Something isn't working

Comments

@aralroca
Copy link
Owner

aralroca commented Jan 8, 2020

Unify these fallbacks when is NO PROVIDER:

t`common:not-existent` // return an array! [ 'common:not-existent' ] (INCORRECT)
t('common:not-existent') // return an string! 'common:not-existent' (CORRECT)

to always return the fallback as the last one (as string).

@aralroca aralroca added the bug Something isn't working label Jan 8, 2020
@aralroca aralroca self-assigned this Jan 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant