Skip to content

I18N: Support more valid locales: language-script and language-script-region #724

@hanguokai

Description

@hanguokai

Locale Format

Locale identifier consists of language subtag, script subtag, region subtag, and one or more variant subtags.

For example,

  • zh-CN and zh-TW are language + region. They mean Chinese in different regions.
  • zh-Hans and zh-Hant are language + script. They mean Simplified Chinese and Traditional Chinese without regions.
  • zh-Hans-CN, zh-Hans-SG, zh-Hant-HK and zh-Hant-TW are language + script + region. They mean Simplified Chinese and Traditional Chinese in different regions.

For historical reasons, zh-CN and zh-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:

  • language + region
  • language + script
  • language + script + region

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    i18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.implemented: safariImplemented in Safarineeds-triage: chromeChrome needs to assess this issue for the first timeneutral: firefoxNot opposed or supportive from Firefoxtopic: localization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions