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

Feat add alias support for zh-cn and zh-tw #151

Closed jannyHou closed 4 years ago

jannyHou commented 4 years ago

support feature in https://github.com/strongloop/strong-globalize/issues/150

If a request.header has accept-language of zh-cn or zh-tw, strong-globalize should equivocate that to zh-Hans and zh-Hant respectively.

The change is applied to http(), setLanguage() and setDefaultLanguage.

bajtos commented 4 years ago

The issue #150 is describing a problem when using g.http() function. Can you please add a test to verify the problem reported in that issue is solved by your changes?