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

Provide defaultLocale key, in case the one from the current locale is missing #102

Open
angel1st opened this issue Nov 28, 2016 · 1 comment

Comments

@angel1st
Copy link

Hi there,
My use case is:

I have a locale e.g. de but is could be the case when for this specific (or any other locale but defaultLocale) I could have missing key(s). In such cases at the moment I see %% key not found%% string.
Could it be possible if in such cases the defaultLocale key is used?

Thanks,
Angel

@bretkikehara
Copy link
Collaborator

IMO, this problem shouldn't be solved at runtime.

Try use a localization manager. I've written a tool to use google sheets to manage the bundles. https://github.com/bretkikehara/i18n-cli by default this tool will create create module exports for use with browserify or webpack, but I built support for Json files. Just set the type as json

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