I18N: Support more valid locales: language-script and language-script-region #724
Labels
i18n-tracker
Group bringing to attention of Internationalization, or tracked by i18n but not needing response.
implemented: safari
Implemented in Safari
needs-triage: chrome
Chrome needs to assess this issue for the first time
neutral: firefox
Not opposed or supportive from Firefox
topic: localization
Locale Format
Locale identifier consists of language subtag, script subtag, region subtag, and one or more variant subtags.
For example,
zh-CN
andzh-TW
are language + region. They mean Chinese in different regions.zh-Hans
andzh-Hant
are language + script. They mean Simplified Chinese and Traditional Chinese without regions.zh-Hans-CN
,zh-Hans-SG
,zh-Hant-HK
andzh-Hant-TW
are language + script + region. They mean Simplified Chinese and Traditional Chinese in different regions.For historical reasons,
zh-CN
andzh-TW
are often used to represent Simplified Chinese and Traditional Chinese, but this is not rigorous or accurate.The current level of support
Goal
All browsers support all valid locales, including:
Note: The languages supported by the browser and the languages supported by the extension store should be two different things, but there is some correlation.
Other discussions
setCurrentLanguage()
allows to be passed in.i18n.getMessage()
language fallback paths #296 @birtles and @xeenon discussed this issue. And related links: zh_hans locale not working birchill/10ten-ja-reader#2051 https://issues.chromium.org/issues/375528194The text was updated successfully, but these errors were encountered: