Updates to harness/testIntl.js for CLDR38

This commit is contained in:
Rick Waldron 2020-11-18 13:57:51 -05:00
parent df1bce9c2e
commit ff3d950ac7
1 changed files with 57 additions and 4 deletions

View File

@ -349,6 +349,8 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"abk": "ab",
"adp": "dz",
"afr": "af",
"agp": "apf",
"ais": "ami",
"aju": "jrb",
"aka": "ak",
"alb": "sq",
@ -371,18 +373,23 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"bak": "ba",
"bam": "bm",
"baq": "eu",
"baz": "nvo",
"bcc": "bal",
"bcl": "bik",
"bel": "be",
"ben": "bn",
"bgm": "bcg",
"bh": "bho",
"bhk": "fbl",
"bih": "bho",
"bis": "bi",
"bjd": "drl",
"bjq": "bzc",
"bkb": "ebk",
"bod": "bo",
"bos": "bs",
"bre": "br",
"btb": "beb",
"bul": "bg",
"bur": "my",
"bxk": "luy",
@ -408,7 +415,9 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"cwd": "cr",
"cym": "cy",
"cze": "cs",
"daf": "dnj",
"dan": "da",
"dap": "njz",
"deu": "de",
"dgo": "doi",
"dhd": "mwr",
@ -416,11 +425,18 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"diq": "zza",
"dit": "dif",
"div": "dv",
"djl": "dze",
"dkl": "aqd",
"drh": "mn",
"drr": "kzk",
"dud": "uth",
"duj": "dwu",
"dut": "nl",
"dwl": "dbt",
"dzo": "dz",
"ekk": "et",
"ell": "el",
"elp": "amq",
"emk": "man",
"eng": "en",
"epo": "eo",
@ -440,14 +456,19 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"ful": "ff",
"gav": "dev",
"gaz": "om",
"gbc": "wny",
"gbo": "grb",
"geo": "ka",
"ger": "de",
"gfx": "vaj",
"ggn": "gvr",
"ggo": "esg",
"ggr": "gtu",
"gio": "aou",
"gla": "gd",
"gle": "ga",
"glg": "gl",
"gli": "kzk",
"glv": "gv",
"gno": "gon",
"gre": "el",
@ -478,6 +499,7 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"ike": "iu",
"iku": "iu",
"ile": "ie",
"ill": "ilm",
"ilw": "gal",
"in": "id",
"ina": "ia",
@ -486,6 +508,8 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"isl": "is",
"ita": "it",
"iw": "he",
"izi": "eza",
"jar": "jgk",
"jav": "jv",
"jeg": "oyb",
"ji": "yi",
@ -497,7 +521,9 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"kat": "ka",
"kau": "kr",
"kaz": "kk",
"kdv": "zkd",
"kgc": "tdf",
"kgd": "ncq",
"kgh": "kml",
"khk": "mn",
"khm": "km",
@ -512,6 +538,7 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"kom": "kv",
"kon": "kg",
"kor": "ko",
"kpp": "jkm",
"kpv": "kv",
"krm": "bmf",
"ktr": "dtp",
@ -520,12 +547,15 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"kvs": "gdj",
"kwq": "yam",
"kxe": "tvd",
"kxl": "kru",
"kzh": "dgl",
"kzj": "dtp",
"kzt": "dtp",
"lao": "lo",
"lat": "la",
"lav": "lv",
"lbk": "bnc",
"leg": "enl",
"lii": "raq",
"lim": "li",
"lin": "ln",
@ -543,18 +573,22 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"mar": "mr",
"may": "ms",
"meg": "cir",
"mgx": "jbk",
"mhr": "chm",
"mkd": "mk",
"mlg": "mg",
"mlt": "mt",
"mnk": "man",
"mnt": "wnn",
"mo": "ro",
"mof": "xnt",
"mol": "ro",
"mon": "mn",
"mri": "mi",
"msa": "ms",
"mst": "mry",
"mup": "raj",
"mwd": "dmw",
"mwj": "vaj",
"mya": "my",
"myd": "aog",
@ -562,20 +596,26 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"nad": "xny",
"nau": "na",
"nav": "nv",
"nbf": "nru",
"nbl": "nr",
"nbx": "ekc",
"ncp": "kdz",
"nde": "nd",
"ndo": "ng",
"nep": "ne",
"nld": "nl",
"nln": "azd",
"nlr": "nrk",
"nno": "nn",
"nns": "nbr",
"nnx": "ngv",
"no": "nb",
"nob": "nb",
"noo": "dtd",
"nor": "nb",
"npi": "ne",
"nts": "pij",
"nxu": "bpp",
"nya": "ny",
"oci": "oc",
"ojg": "oj",
@ -604,6 +644,7 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"puz": "pub",
"que": "qu",
"quz": "qu",
"rmr": "emx",
"rmy": "rom",
"roh": "rm",
"ron": "ro",
@ -612,9 +653,11 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"rus": "ru",
"sag": "sg",
"san": "sa",
"sap": "aqt",
"sca": "hle",
"scc": "sr",
"scr": "hr",
"sgl": "isk",
"sin": "si",
"skk": "oyb",
"slk": "sk",
@ -633,6 +676,8 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"srd": "sc",
"srp": "sr",
"ssw": "ss",
"sul": "sgd",
"sum": "ulw",
"sun": "su",
"swa": "sw",
"swe": "sv",
@ -642,12 +687,15 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"tat": "tt",
"tdu": "dtp",
"tel": "te",
"tgg": "bjp",
"tgk": "tg",
"tgl": "fil",
"tha": "th",
"thc": "tpo",
"thw": "ola",
"thx": "oyb",
"tib": "bo",
"tid": "itd",
"tie": "ras",
"tir": "ti",
"tkk": "twm",
@ -667,6 +715,7 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"uig": "ug",
"ukr": "uk",
"umu": "del",
"unp": "wro",
"uok": "ema",
"urd": "ur",
"uzb": "uz",
@ -675,6 +724,9 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"vie": "vi",
"vol": "vo",
"wel": "cy",
"wgw": "wgb",
"wit": "nol",
"wiw": "nwo",
"wln": "wa",
"wol": "wo",
"xba": "cax",
@ -682,11 +734,14 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"xia": "acn",
"xkh": "waw",
"xpe": "kpe",
"xrq": "dmw",
"xsj": "suj",
"xsl": "den",
"ybd": "rki",
"ydd": "yi",
"yen": "ynq",
"yid": "yi",
"yiy": "yrm",
"yma": "lrr",
"ymt": "mtm",
"yor": "yo",
@ -695,6 +750,7 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
"zai": "zap",
"zha": "za",
"zho": "zh",
"zir": "scv",
"zsm": "ms",
"zul": "zu",
"zyb": "za",
@ -1251,11 +1307,8 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
var __variantMappings = {
// property names and values must be in canonical case
"aaland": {type: "region", replacement: "AX"},
"arevela": {type: "language", replacement: "hy"},
"arevmda": {type: "language", replacement: "hyw"},
"heploc": {type: "variant", replacement: "alalc97"},
"polytoni": {type: "variant", replacement: "polyton"},
"polytoni": {type: "language", replacement: "polyton"},
};