mirror of https://github.com/tc39/test262.git
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:
parent
e2ad1357c7
commit
7b556c6ff2
|
@ -37,13 +37,13 @@ var canonicalizedTags = {
|
|||
"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",
|
||||
"de-gregory-u-ca-gregory": "de-gregory-u-ca-gregory",
|
||||
"sgn-GR": "gss",
|
||||
"sgn-GR": "sgn-GR",
|
||||
"ji": "yi",
|
||||
"de-DD": "de-DE",
|
||||
"in": "id",
|
||||
"sr-cyrl-ekavsk": "sr-Cyrl-ekavsk",
|
||||
"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-co-search": "da-u-attr-co-search",
|
||||
};
|
||||
|
|
|
@ -62,7 +62,7 @@ var regularGrandfatheredNonUTS35 = [
|
|||
|
||||
var regularGrandfatheredUTS35 = {
|
||||
"art-lojban": "jbo",
|
||||
"cel-gaulish": "und-x-cel-gaulish",
|
||||
"cel-gaulish": "xtg-x-cel-gaulish",
|
||||
"zh-guoyu": "zh",
|
||||
"zh-hakka": "hak",
|
||||
"zh-xiang": "hsn",
|
||||
|
|
|
@ -39,7 +39,9 @@ includes: [testIntl.js]
|
|||
// Generated from http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
|
||||
// File-Date: 2017-08-15
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue