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

Allow partial locale support #46

Open
tarnas14 opened this issue Oct 23, 2016 · 1 comment
Open

Allow partial locale support #46

tarnas14 opened this issue Oct 23, 2016 · 1 comment

Comments

@tarnas14
Copy link
Collaborator

Current behaviour:
The localization object is loaded as a whole, based on client's locale preferences, the fallback behaviour works only on the whole localization object level. I.E. when user has locale=es and we don't support es, the localization resources loaded in UI fall back to en (default locale)
Fallbacks do not work on a per key basis - if es localization key is present but does not contain all of the localization keys expected by the application, the application breaks with missing props React error or something similar.

Expected behaviour:
UI localization fallback work on a per key basis so that partial locale support is possible

@kjendrzyca
Copy link
Owner

Also it would be nice to have some kind of static analysis of the resource files to check if everything was translated.

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

No branches or pull requests

2 participants