unicode-bcp47-locale-ids-sign-languages.js (736B)
1 // |reftest| skip-if(!this.hasOwnProperty("Intl")) 2 3 // The IANA language subtag registry contains replacements for sign language 4 // codes marked as redundant. For example: 5 // 6 // Type: redundant 7 // Tag: sgn-DE 8 // Description: German Sign Language 9 // Added: 2001-11-11 10 // Deprecated: 2009-07-29 11 // Preferred-Value: gsg 12 // 13 // CLDR 38 added these mappings to CLDR, too. 14 15 assertEq(Intl.getCanonicalLocales("sgn-DE")[0], "gsg"); 16 assertEq(Intl.getCanonicalLocales("sgn-DD")[0], "gsg"); 17 18 assertEq(Intl.getCanonicalLocales("sgn-276")[0], "gsg"); 19 assertEq(Intl.getCanonicalLocales("sgn-278")[0], "gsg"); 20 assertEq(Intl.getCanonicalLocales("sgn-280")[0], "gsg"); 21 22 if (typeof reportCompare === "function") 23 reportCompare(true, true);