strongloop / strong-globalize

strong-globalize is built on Unicode CLDR and jquery/globalize and implements automatic extraction of strings from JS source code and HTML templates, lint the string resource, machine-translate them in seconds. In runtime, it loads locale and string resource into memory and provides a hook to persistent logging.
Other
25 stars 16 forks source link

Do case handling for language aliases #161

Closed codechennerator closed 4 years ago

codechennerator commented 4 years ago

Chrome has an accept-language header for Chinese languages as zh-TW and zh-CN by default. Other browsers may have something similar. Thus it is necessary that when there is a need for language aliases, the language code is standardized. The current getLanguageAlias does not handle that case!

slnode commented 4 years ago

Can one of the admins verify this patch? To accept patch and trigger a build add comment ".ok\W+to\W+test."