Skip to content

Commit

Permalink
Improved handling of alias locales. Fixes #78
Browse files Browse the repository at this point in the history
  • Loading branch information
JCEmmons committed Dec 12, 2014
1 parent 0487497 commit 3dd6ba8
Show file tree
Hide file tree
Showing 19 changed files with 142 additions and 3,159 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/bower_components/
/node_modules/
5 changes: 1 addition & 4 deletions cldr/config/availableLocales.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,7 @@
"zh",
"zh-Hans",
"zh-Hans-SG",
"zh-SG",
"zh-Hant",
"zh-Hant-HK",
"zh-HK",
"zh-TW"
"zh-Hant-HK"
]
}
116 changes: 116 additions & 0 deletions cldr/supplemental/aliases.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@
"_replacement": "ay",
"_reason": "macrolanguage"
},
"az-AZ": {
"_replacement": "az-Latn-AZ",
"_reason": "legacy"
},
"aze": {
"_replacement": "az",
"_reason": "overlong"
Expand Down Expand Up @@ -135,6 +139,10 @@
"_replacement": "br",
"_reason": "overlong"
},
"bs-BA": {
"_replacement": "bs-Latn-BA",
"_reason": "legacy"
},
"bul": {
"_replacement": "bg",
"_reason": "overlong"
Expand Down Expand Up @@ -379,6 +387,18 @@
"_replacement": "gba",
"_reason": "macrolanguage"
},
"ha-GH": {
"_replacement": "ha-Latn-GH",
"_reason": "legacy"
},
"ha-NE": {
"_replacement": "ha-Latn-NE",
"_reason": "legacy"
},
"ha-NG": {
"_replacement": "ha-Latn-NG",
"_reason": "legacy"
},
"hat": {
"_replacement": "ht",
"_reason": "overlong"
Expand Down Expand Up @@ -587,6 +607,10 @@
"_replacement": "ky",
"_reason": "overlong"
},
"kk-KZ": {
"_replacement": "kk-Cyrl-KZ",
"_reason": "legacy"
},
"kmr": {
"_replacement": "ku",
"_reason": "macrolanguage"
Expand Down Expand Up @@ -619,6 +643,10 @@
"_replacement": "kv",
"_reason": "macrolanguage"
},
"ks-IN": {
"_replacement": "ks-Arab-IN",
"_reason": "legacy"
},
"kua": {
"_replacement": "kj",
"_reason": "overlong"
Expand All @@ -627,6 +655,10 @@
"_replacement": "ku",
"_reason": "overlong"
},
"ky-KG": {
"_replacement": "ky-Cyrl-KG",
"_reason": "legacy"
},
"lao": {
"_replacement": "lo",
"_reason": "overlong"
Expand Down Expand Up @@ -711,6 +743,10 @@
"_replacement": "mt",
"_reason": "overlong"
},
"mn-MN": {
"_replacement": "mn-Cyrl-MN",
"_reason": "legacy"
},
"mnk": {
"_replacement": "man",
"_reason": "macrolanguage"
Expand All @@ -731,6 +767,18 @@
"_replacement": "mi",
"_reason": "overlong"
},
"ms-BN": {
"_replacement": "ms-Latn-BN",
"_reason": "legacy"
},
"ms-MY": {
"_replacement": "ms-Latn-MY",
"_reason": "legacy"
},
"ms-SG": {
"_replacement": "ms-Latn-SG",
"_reason": "legacy"
},
"msa": {
"_replacement": "ms",
"_reason": "overlong"
Expand Down Expand Up @@ -839,6 +887,14 @@
"_replacement": "os",
"_reason": "overlong"
},
"pa-IN": {
"_replacement": "pa-Guru-IN",
"_reason": "legacy"
},
"pa-PK": {
"_replacement": "pa-Arab-PK",
"_reason": "legacy"
},
"pan": {
"_replacement": "pa",
"_reason": "overlong"
Expand Down Expand Up @@ -935,6 +991,10 @@
"_replacement": "sr-Latn",
"_reason": "legacy"
},
"shi-MA": {
"_replacement": "shi-Tfng-MA",
"_reason": "legacy"
},
"sin": {
"_replacement": "si",
"_reason": "overlong"
Expand Down Expand Up @@ -987,6 +1047,22 @@
"_replacement": "sq",
"_reason": "overlong"
},
"sr-BA": {
"_replacement": "sr-Cyrl-BA",
"_reason": "legacy"
},
"sr-ME": {
"_replacement": "sr-Latn-ME",
"_reason": "legacy"
},
"sr-RS": {
"_replacement": "sr-Cyrl-RS",
"_reason": "legacy"
},
"sr-XK": {
"_replacement": "sr-Cyrl-XK",
"_reason": "legacy"
},
"src": {
"_replacement": "sc",
"_reason": "macrolanguage"
Expand Down Expand Up @@ -1091,6 +1167,14 @@
"_replacement": "ak",
"_reason": "overlong"
},
"tzm-MA": {
"_replacement": "tzm-Latn-MA",
"_reason": "legacy"
},
"ug-CN": {
"_replacement": "ug-Arab-CN",
"_reason": "legacy"
},
"uig": {
"_replacement": "ug",
"_reason": "overlong"
Expand All @@ -1107,6 +1191,14 @@
"_replacement": "ur",
"_reason": "overlong"
},
"uz-AF": {
"_replacement": "uz-Arab-AF",
"_reason": "legacy"
},
"uz-UZ": {
"_replacement": "uz-Latn-UZ",
"_reason": "legacy"
},
"uzb": {
"_replacement": "uz",
"_reason": "overlong"
Expand All @@ -1115,6 +1207,10 @@
"_replacement": "uz",
"_reason": "macrolanguage"
},
"vai-LR": {
"_replacement": "vai-Vaii-LR",
"_reason": "legacy"
},
"ven": {
"_replacement": "ve",
"_reason": "overlong"
Expand Down Expand Up @@ -1167,6 +1263,26 @@
"_replacement": "zap",
"_reason": "macrolanguage"
},
"zh-CN": {
"_replacement": "zh-Hans-CN",
"_reason": "legacy"
},
"zh-HK": {
"_replacement": "zh-Hant-HK",
"_reason": "legacy"
},
"zh-MO": {
"_replacement": "zh-Hant-MO",
"_reason": "legacy"
},
"zh-SG": {
"_replacement": "zh-Hans-SG",
"_reason": "legacy"
},
"zh-TW": {
"_replacement": "zh-Hant-TW",
"_reason": "legacy"
},
"zh-guoyu": {
"_replacement": "zh",
"_reason": "deprecated"
Expand Down
40 changes: 0 additions & 40 deletions cldr/supplemental/localeAliases.json

This file was deleted.

Loading

0 comments on commit 3dd6ba8

Please sign in to comment.