You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Compare codes, ignoring any demarcation or casing
76
107
// undefined does not match undefined
77
108
exportfunctioncodeMatches(
@@ -126,13 +157,26 @@ const ANCIENT_LANGUAGE_ENTRY_CODES = new Set([
126
157
// Filter for deprecated, historical languages etc.
127
158
]);
128
159
160
+
constSPECIAL_CASE_EXCLUDED_ENTRY_CODES=newSet([
161
+
"zhx",// I don't understand why this entry is in langtags.json. It is an ISO-639-5 (language collection) code covering the zho macrolanguage, has no Ethnologue entry, only listed script is Nshu
162
+
"cmn",// TODO when we implement macrolanguage handling, see if the situation is taken care of and we can remove this exception.
163
+
// In langtags.json, most chinese entries have iso639_3_code "zho" (which is the macrolanguage code) except zh-Brai-CN and zh-Hant-ES which have "cmn"
164
+
// so we end up with two search results and don't want to keep the "cmn" one
0 commit comments