Debian Codegraph @

js/src/tests/non262/Intl/unicode-bcp47-locale-ids-variants-sorted.js

raw
1 // |reftest| skip-if(!this.hasOwnProperty("Intl"))
2
3 // UTS 35, 3.2.1 Canonical Unicode Locale Identifiers:
4 // - Any variants are in alphabetical order.
5
6 assertEq(Intl.getCanonicalLocales("en-scouse-fonipa")[0], "en-fonipa-scouse");
7
8 // Sorting in alphabetical order may turn a valid BCP 47 language tag into a
9 // BCP 47 language tag which is only well-formed, but no longer valid. This
10 // means there are potential compatibility issues when converting between
11 // Unicode BCP 47 locale identifiers and BCP 47 language tags.
12 //
13 // Spec: https://tools.ietf.org/html/rfc5646#section-2.2.9
14
15 // <https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry>
16 //
17 // Type: variant
18 // Subtag: 1994
19 // Description: Standardized Resian orthography
20 // Added: 2007-07-28
21 // Prefix: sl-rozaj
22 // Prefix: sl-rozaj-biske
23 // Prefix: sl-rozaj-njiva
24 // Prefix: sl-rozaj-osojs
25 // Prefix: sl-rozaj-solba
26 // Comments: For standardized Resian an orthography was published in 1994.
27
28 assertEq(Intl.getCanonicalLocales("sl-rozaj-biske-1994")[0], "sl-1994-biske-rozaj");
29
30 if (typeof reportCompare === "function")
31 reportCompare(true, true);