angular-localization icon indicating copy to clipboard operation
angular-localization copied to clipboard

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

Open angel1st opened this issue 9 years ago • 1 comments

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

angel1st avatar Nov 28 '16 11:11 angel1st

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

bretkikehara avatar Nov 28 '16 16:11 bretkikehara