Update language tag mapping data

This commit is contained in:
André Bargull 2017-12-21 12:08:18 -08:00 committed by Rick Waldron
parent 2bf5a3ce26
commit d249979bc9
1 changed files with 78 additions and 10 deletions

View File

@ -223,10 +223,10 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
var __tagMappings = { var __tagMappings = {
// property names must be in lower case; values in canonical form // property names must be in lower case; values in canonical form
// grandfathered tags from IANA language subtag registry, file date 2011-08-25 // grandfathered tags from IANA language subtag registry, file date 2017-12-14
"art-lojban": "jbo", "art-lojban": "jbo",
"cel-gaulish": "cel-gaulish", "cel-gaulish": "cel-gaulish",
"en-gb-oed": "en-GB-oed", "en-gb-oed": "en-GB-oxendict",
"i-ami": "ami", "i-ami": "ami",
"i-bnn": "bnn", "i-bnn": "bnn",
"i-default": "i-default", "i-default": "i-default",
@ -250,7 +250,7 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"zh-min": "zh-min", "zh-min": "zh-min",
"zh-min-nan": "nan", "zh-min-nan": "nan",
"zh-xiang": "hsn", "zh-xiang": "hsn",
// deprecated redundant tags from IANA language subtag registry, file date 2011-08-25 // deprecated redundant tags from IANA language subtag registry, file date 2017-12-14
"sgn-br": "bzs", "sgn-br": "bzs",
"sgn-co": "csn", "sgn-co": "csn",
"sgn-de": "gsg", "sgn-de": "gsg",
@ -276,7 +276,7 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"zh-gan": "gan", "zh-gan": "gan",
"zh-wuu": "wuu", "zh-wuu": "wuu",
"zh-yue": "yue", "zh-yue": "yue",
// deprecated variant with prefix from IANA language subtag registry, file date 2011-08-25 // deprecated variant with prefix from IANA language subtag registry, file date 2017-12-14
"ja-latn-hepburn-heploc": "ja-Latn-alalc97" "ja-latn-hepburn-heploc": "ja-Latn-alalc97"
}; };
@ -288,24 +288,85 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
*/ */
var __subtagMappings = { var __subtagMappings = {
// property names and values must be in canonical case // property names and values must be in canonical case
// language subtags with Preferred-Value mappings from IANA language subtag registry, file date 2011-08-25 // language subtags with Preferred-Value mappings from IANA language subtag registry, file date 2017-12-14
"in": "id", "in": "id",
"iw": "he", "iw": "he",
"ji": "yi", "ji": "yi",
"jw": "jv", "jw": "jv",
"mo": "ro", "mo": "ro",
"aam": "aas",
"adp": "dz",
"aue": "ktz",
"ayx": "nun", "ayx": "nun",
"bgm": "bcg",
"bjd": "drl",
"ccq": "rki",
"cjr": "mom", "cjr": "mom",
"cka": "cmr",
"cmk": "xch", "cmk": "xch",
"coy": "pij",
"cqu": "quh",
"drh": "khk", "drh": "khk",
"drw": "prs", "drw": "prs",
"gav": "dev", "gav": "dev",
"gfx": "vaj",
"ggn": "gvr",
"gti": "nyc",
"guv": "duz",
"hrr": "jal",
"ibi": "opa",
"ilw": "gal",
"jeg": "oyb",
"kgc": "tdf",
"kgh": "kml",
"koj": "kwv",
"krm": "bmf",
"ktr": "dtp",
"kvs": "gdj",
"kwq": "yam",
"kxe": "tvd",
"kzj": "dtp",
"kzt": "dtp",
"lii": "raq",
"lmm": "rmx",
"meg": "cir",
"mst": "mry", "mst": "mry",
"mwj": "vaj",
"myt": "mry", "myt": "mry",
"nad": "xny",
"nnx": "ngv",
"nts": "pij",
"oun": "vaj",
"pcr": "adx",
"pmc": "huw",
"pmu": "phr",
"ppa": "bfy",
"ppr": "lcq",
"pry": "prt",
"puz": "pub",
"sca": "hle",
"skk": "oyb",
"tdu": "dtp",
"thc": "tpo",
"thx": "oyb",
"tie": "ras", "tie": "ras",
"tkk": "twm", "tkk": "twm",
"tlw": "weo",
"tmp": "tyj",
"tne": "kak",
"tnf": "prs", "tnf": "prs",
// region subtags with Preferred-Value mappings from IANA language subtag registry, file date 2011-08-25 "tsf": "taj",
"uok": "ema",
"xba": "cax",
"xia": "acn",
"xkh": "waw",
"xsj": "suj",
"ybd": "rki",
"yma": "lrr",
"ymt": "mtm",
"yos": "zom",
"yuu": "yug",
// region subtags with Preferred-Value mappings from IANA language subtag registry, file date 2017-12-14
"BU": "MM", "BU": "MM",
"DD": "DE", "DD": "DE",
"FX": "FR", "FX": "FR",
@ -321,7 +382,7 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
* Spec: IANA Language Subtag Registry. * Spec: IANA Language Subtag Registry.
*/ */
var __extlangMappings = { var __extlangMappings = {
// extlang subtags with Preferred-Value mappings from IANA language subtag registry, file date 2011-08-25 // extlang subtags with Preferred-Value mappings from IANA language subtag registry, file date 2017-12-14
// values are arrays with [0] the replacement value, [1] (if present) the prefix to be removed // values are arrays with [0] the replacement value, [1] (if present) the prefix to be removed
"aao": ["aao", "ar"], "aao": ["aao", "ar"],
"abh": ["abh", "ar"], "abh": ["abh", "ar"],
@ -401,6 +462,7 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"fsl": ["fsl", "sgn"], "fsl": ["fsl", "sgn"],
"fss": ["fss", "sgn"], "fss": ["fss", "sgn"],
"gan": ["gan", "zh"], "gan": ["gan", "zh"],
"gds": ["gds", "sgn"],
"gom": ["gom", "kok"], "gom": ["gom", "kok"],
"gse": ["gse", "sgn"], "gse": ["gse", "sgn"],
"gsg": ["gsg", "sgn"], "gsg": ["gsg", "sgn"],
@ -419,6 +481,7 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"hsl": ["hsl", "sgn"], "hsl": ["hsl", "sgn"],
"hsn": ["hsn", "zh"], "hsn": ["hsn", "zh"],
"icl": ["icl", "sgn"], "icl": ["icl", "sgn"],
"iks": ["iks", "sgn"],
"ils": ["ils", "sgn"], "ils": ["ils", "sgn"],
"inl": ["inl", "sgn"], "inl": ["inl", "sgn"],
"ins": ["ins", "sgn"], "ins": ["ins", "sgn"],
@ -483,6 +546,7 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"ors": ["ors", "ms"], "ors": ["ors", "ms"],
"pel": ["pel", "ms"], "pel": ["pel", "ms"],
"pga": ["pga", "ar"], "pga": ["pga", "ar"],
"pgz": ["pgz", "sgn"],
"pks": ["pks", "sgn"], "pks": ["pks", "sgn"],
"prl": ["prl", "sgn"], "prl": ["prl", "sgn"],
"prz": ["prz", "sgn"], "prz": ["prz", "sgn"],
@ -496,8 +560,8 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"psr": ["psr", "sgn"], "psr": ["psr", "sgn"],
"pys": ["pys", "sgn"], "pys": ["pys", "sgn"],
"rms": ["rms", "sgn"], "rms": ["rms", "sgn"],
"rsi": ["rsi", "sgn"],
"rsl": ["rsl", "sgn"], "rsl": ["rsl", "sgn"],
"rsm": ["rsm", "sgn"],
"sdl": ["sdl", "sgn"], "sdl": ["sdl", "sgn"],
"sfb": ["sfb", "sgn"], "sfb": ["sfb", "sgn"],
"sfs": ["sfs", "sgn"], "sfs": ["sfs", "sgn"],
@ -506,6 +570,7 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"shu": ["shu", "ar"], "shu": ["shu", "ar"],
"slf": ["slf", "sgn"], "slf": ["slf", "sgn"],
"sls": ["sls", "sgn"], "sls": ["sls", "sgn"],
"sqk": ["sqk", "sgn"],
"sqs": ["sqs", "sgn"], "sqs": ["sqs", "sgn"],
"ssh": ["ssh", "ar"], "ssh": ["ssh", "ar"],
"ssp": ["ssp", "sgn"], "ssp": ["ssp", "sgn"],
@ -515,6 +580,7 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"swh": ["swh", "sw"], "swh": ["swh", "sw"],
"swl": ["swl", "sgn"], "swl": ["swl", "sgn"],
"syy": ["syy", "sgn"], "syy": ["syy", "sgn"],
"szs": ["szs", "sgn"],
"tmw": ["tmw", "ms"], "tmw": ["tmw", "ms"],
"tse": ["tse", "sgn"], "tse": ["tse", "sgn"],
"tsm": ["tsm", "sgn"], "tsm": ["tsm", "sgn"],
@ -535,19 +601,21 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"vsi": ["vsi", "sgn"], "vsi": ["vsi", "sgn"],
"vsl": ["vsl", "sgn"], "vsl": ["vsl", "sgn"],
"vsv": ["vsv", "sgn"], "vsv": ["vsv", "sgn"],
"wbs": ["wbs", "sgn"],
"wuu": ["wuu", "zh"], "wuu": ["wuu", "zh"],
"xki": ["xki", "sgn"], "xki": ["xki", "sgn"],
"xml": ["xml", "sgn"], "xml": ["xml", "sgn"],
"xmm": ["xmm", "ms"], "xmm": ["xmm", "ms"],
"xms": ["xms", "sgn"], "xms": ["xms", "sgn"],
"yds": ["yds", "sgn"], "ygs": ["ygs", "sgn"],
"yhs": ["yhs", "sgn"],
"ysl": ["ysl", "sgn"], "ysl": ["ysl", "sgn"],
"yue": ["yue", "zh"], "yue": ["yue", "zh"],
"zib": ["zib", "sgn"], "zib": ["zib", "sgn"],
"zlm": ["zlm", "ms"], "zlm": ["zlm", "ms"],
"zmi": ["zmi", "ms"], "zmi": ["zmi", "ms"],
"zsl": ["zsl", "sgn"], "zsl": ["zsl", "sgn"],
"zsm": ["zsm", "ms"] "zsm": ["zsm", "ms"],
}; };