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

Fallback mechanism automatically searching a default resource file? #16

Closed
shev72 opened this issue Jun 18, 2015 · 2 comments
Closed

Fallback mechanism automatically searching a default resource file? #16

shev72 opened this issue Jun 18, 2015 · 2 comments

Comments

@shev72
Copy link

shev72 commented Jun 18, 2015

The fallback mechanism requires the default parameter to be supplied on each call. It would be nice if we a method could be added which would look up a default translation file if the translation did not exist. In many cases we are happy if the english translation (or another default language) is provided if the translation does not exist in the language. it is cumbersome to have to supply the default param each time.

@shev72
Copy link
Author

shev72 commented Jun 18, 2015

Actually I see that this may have been implemented in saknarat't fork already, , would be nice if it could be merged in to the core.

@martinandert
Copy link
Owner

You could use the (currently undocumented) setFallbackLocale function to use as fallback mechanism.

This is available since v0.16.5 and was introduced in 38d575b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants