Correct the expectation of zh-Hant

It is incorrect to expect the minimize result of "zh-Hant" to be "zh-TW". It should be "zh-Hant". Why?

first, what we have in input for zh-Hant
lang = zh
region = [none]
script = Hant 

Now, look at the AddLikelySubtags algorithm in http://www.unicode.org/reports/tr35/#Likely_Subtags
This commit is contained in:
Frank Yung-Fong Tang 2020-04-25 01:50:01 -07:00 committed by Rick Waldron
parent 76b38918a8
commit e8dfe549a8

View File

@ -34,7 +34,7 @@ var testDataMinimal = {
// https://unicode-org.atlassian.net/browse/ICU-12345
"und-CW": "pap-CW",
"und-US": "en",
"zh-Hant": "zh-TW",
"zh-Hant": "zh-Hant",
"zh-Hani": "zh-Hani",
};