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

Use default language when using accept-language #165

Closed codechennerator closed 4 years ago

codechennerator commented 4 years ago

Currently the http() function does not choose a default language correctly if the request language is not supported.

This is because the accept-language module uses the first language in the appLanguages array as the default language. In order for g.http() to choose the default language correctly, the default language can be added to the front of the language list.

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."