Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[RFC] Exclude locales from language codes #33146

Closed
@ro0NL

Description

@ro0NL

In #33136 @TerjeBr discovered a few weird "language codes", e.g.

"en_AU": "Australian English",
"en_CA": "Canadian English",
"en_GB": "British English",
"en_US": "American English",

These are a combination of language code + country code, thus a locale actually.

I don't think one should be able to select e.g. en_AU as a language code, that would be unexpected data. In this case one should simply select en (English) for a language, and e.g. compose it with a known country code to get a locale, or select a pre-defined locale from the list.

So ultimately this data would be replaced by the locale domain, e.g.

This means we lose some specific language name translations, but i tend to believe we should do it. (IMHO it's not worth to preserve Australian English somewhere when translating a locale, English (Australia) could be sufficient)

Metadata

Metadata

Assignees

No one assigned

    Labels

    IntlRFCRFC = Request For Comments (proposals about features that you want to be discussed)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions