This repository was archived by the owner on Jul 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathintl.html
More file actions
135 lines (114 loc) · 4.51 KB
/
intl.html
File metadata and controls
135 lines (114 loc) · 4.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<emu-clause id="intl-object">
<h1>The Intl Object</h1>
<p>
The Intl object is the <dfn>%Intl%</dfn> intrinsic object and the initial value of the *"Intl"* property of the global object. The Intl object is a single ordinary object.
</p>
<p>
The value of the [[Prototype]] internal slot of the Intl object is the intrinsic object %ObjectPrototype%.
</p>
<p>
The Intl object is not a function object. It does not have a [[Construct]] internal method; it is not possible to use the Intl object as a constructor with the *new* operator. The Intl object does not have a [[Call]] internal method; it is not possible to invoke the Intl object as a function.
</p>
<p>
The Intl object has an internal slot, [[FallbackSymbol]], which is a new %Symbol% in the current realm with the [[Description]] *"IntlLegacyConstructedSymbol"*.
</p>
<emu-clause id="sec-constructor-properties-of-the-intl-object">
<h1>Constructor Properties of the Intl Object</h1>
<p>
With the exception of Intl.Locale, each of the following constructors is a <dfn id="service-constructor">service constructor</dfn> that creates objects providing locale-sensitive services.
</p>
<emu-clause id="sec-intl.collator-intro">
<h1>Intl.Collator ( . . . )</h1>
<p>
See <emu-xref href="#collator-objects"></emu-xref>.
</p>
</emu-clause>
<emu-clause id="sec-intl.datetimeformat-intro">
<h1>Intl.DateTimeFormat ( . . . )</h1>
<p>
See <emu-xref href="#datetimeformat-objects"></emu-xref>.
</p>
</emu-clause>
<emu-clause id="sec-intl.displaynames-intro">
<h1>Intl.DisplayNames ( . . . )</h1>
<p>
See <emu-xref href="#intl-displaynames-objects"></emu-xref>.
</p>
</emu-clause>
<emu-clause id="sec-intl.listformat-intro">
<h1>Intl.ListFormat ( . . . )</h1>
<p>
See <emu-xref href="#listformat-objects"></emu-xref>.
</p>
</emu-clause>
<emu-clause id="sec-intl.locale-intro">
<h1>Intl.Locale ( . . . )</h1>
<p>
See <emu-xref href="#locale-objects"></emu-xref>.
</p>
</emu-clause>
<emu-clause id="sec-intl.numberformat-intro">
<h1>Intl.NumberFormat ( . . . )</h1>
<p>
See <emu-xref href="#numberformat-objects"></emu-xref>.
</p>
</emu-clause>
<emu-clause id="sec-intl.pluralrules-intro">
<h1>Intl.PluralRules ( . . . )</h1>
<p>
See <emu-xref href="#pluralrules-objects"></emu-xref>.
</p>
</emu-clause>
<emu-clause id="sec-intl.relativetimeformat-intro">
<h1>Intl.RelativeTimeFormat ( . . . )</h1>
<p>
See <emu-xref href="#relativetimeformat-objects"></emu-xref>.
</p>
</emu-clause>
<emu-clause id="sec-intl.segmenter-intro">
<h1>Intl.Segmenter ( . . . )</h1>
<p>
See <emu-xref href="#segmenter-objects"></emu-xref>.
</p>
</emu-clause>
</emu-clause>
<emu-clause id="sec-function-properties-of-the-intl-object">
<h1>Function Properties of the Intl Object</h1>
<emu-clause id="sec-intl.getcanonicallocales">
<h1>Intl.getCanonicalLocales ( _locales_ )</h1>
<p>
When the `getCanonicalLocales` method is called with argument _locales_, the following steps are taken:
</p>
<emu-alg>
1. Let _ll_ be ? CanonicalizeLocaleList(_locales_).
1. Return CreateArrayFromList(_ll_).
</emu-alg>
</emu-clause>
<ins class="block">
<emu-clause id="sec-intl.supportedvaluesof">
<h1>Intl.supportedValuesOf ( _key_ )</h1>
<p>
When the `supportedValuesOf` method is called with argument _key_ , the following steps are taken:
</p>
<emu-alg>
1. Let _key_ be ? ToString(_key_).
1. If _key_ is *"calendar"*, then
1. Let _list_ be AvailableCanonicalCalendars( ).
1. Else if _key_ is *"collation"*, then
1. Let _list_ be AvailableCanonicalCollations( ).
1. Else if _key_ is *"currency"*, then
1. Let _list_ be AvailableCanonicalCurrencies( ).
1. Else if _key_ is *"numberingSystem"*, then
1. Let _list_ be AvailableCanonicalNumberingSystems( ).
1. Else if _key_ is *"timeZone"*, then
1. Let _list_ be AvailableCanonicalTimeZones( ).
1. Else if _key_ is *"unit"*, then
1. Let _list_ be AvailableCanonicalUnits( ).
1. Else,
1. Throw a *RangeError* exception.
1. Return CreateArrayFromList( _list_ ).
</emu-alg>
</emu-clause>
</ins>
</emu-clause>
</emu-clause>