angular-localization
angular-localization copied to clipboard
Provide defaultLocale key, in case the one from the current locale is missing
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
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