Intl.getCanonicalLocales changes for UTS 35

intl402/Intl/getCanonicalLocales/canonicalized-tags.js
- Sign languages are no longer canonicalised.
- Variant subtags are sorted alphabetically.

intl402/Intl/getCanonicalLocales/preferred-grandfathered.js
- Canonical form of "cel-gaulish" is "xtg-x-cel-gaulish".

intl402/Intl/getCanonicalLocales/preferred-variant.js
- Variant subtags are no longer canonicalised.
This commit is contained in:
André Bargull 2019-07-22 02:12:18 -07:00
parent e2ad1357c7
commit 7b556c6ff2
3 changed files with 6 additions and 4 deletions

View File

@ -37,13 +37,13 @@ var canonicalizedTags = {
"es-419-u-nu-latn": "es-419-u-nu-latn", "es-419-u-nu-latn": "es-419-u-nu-latn",
"cmn-hans-cn-u-ca-t-ca-x-t-u": "zh-Hans-CN-t-ca-u-ca-x-t-u", "cmn-hans-cn-u-ca-t-ca-x-t-u": "zh-Hans-CN-t-ca-u-ca-x-t-u",
"de-gregory-u-ca-gregory": "de-gregory-u-ca-gregory", "de-gregory-u-ca-gregory": "de-gregory-u-ca-gregory",
"sgn-GR": "gss", "sgn-GR": "sgn-GR",
"ji": "yi", "ji": "yi",
"de-DD": "de-DE", "de-DD": "de-DE",
"in": "id", "in": "id",
"sr-cyrl-ekavsk": "sr-Cyrl-ekavsk", "sr-cyrl-ekavsk": "sr-Cyrl-ekavsk",
"en-ca-newfound": "en-CA-newfound", "en-ca-newfound": "en-CA-newfound",
"sl-rozaj-biske-1994": "sl-rozaj-biske-1994", "sl-rozaj-biske-1994": "sl-1994-biske-rozaj",
"da-u-attr": "da-u-attr", "da-u-attr": "da-u-attr",
"da-u-attr-co-search": "da-u-attr-co-search", "da-u-attr-co-search": "da-u-attr-co-search",
}; };

View File

@ -62,7 +62,7 @@ var regularGrandfatheredNonUTS35 = [
var regularGrandfatheredUTS35 = { var regularGrandfatheredUTS35 = {
"art-lojban": "jbo", "art-lojban": "jbo",
"cel-gaulish": "und-x-cel-gaulish", "cel-gaulish": "xtg-x-cel-gaulish",
"zh-guoyu": "zh", "zh-guoyu": "zh",
"zh-hakka": "hak", "zh-hakka": "hak",
"zh-xiang": "hsn", "zh-xiang": "hsn",

View File

@ -39,7 +39,9 @@ includes: [testIntl.js]
// Generated from http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry // Generated from http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
// File-Date: 2017-08-15 // File-Date: 2017-08-15
var canonicalizedTags = { var canonicalizedTags = {
"ja-latn-hepburn-heploc": "ja-Latn-alalc97", // ECMA-402 currently requires that variant subtags are not canonicalized.
// https://github.com/tc39/ecma402/issues/330
"ja-latn-hepburn-heploc": "ja-Latn-hepburn-heploc",
}; };
// make sure the data above is correct // make sure the data above is correct