-
Notifications
You must be signed in to change notification settings - Fork 0
/
Intl.cljs
171 lines (118 loc) · 5.25 KB
/
Intl.cljs
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
(ns js.Intl
"The Intl object is the namespace for the ECMAScript Internationalization
which provides language sensitive string comparison, number formatting,
date and time formatting. The INTL object provides access to
constructors as well as functionality common to the internationalization
and other language sensitive functions."
(:refer-clojure :exclude []))
(defn get-canonical-locales
"Method.
The Intl.getCanonicalLocales() method returns an array containing
canonical locale names. Duplicates will be omitted and elements
be validated as structurally valid language tags.
`Intl.getCanonicalLocales(locales)`
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales`"
[this locales]
(-> this (.getCanonicalLocales locales)))
(defn collator
"Property.
The Intl.Collator object is a constructor for collators, objects
enable language sensitive string comparison.
`new Intl.Collator([locales[, options]])
Intl.Collator.call(this[, locales[, options]])`
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Collator`"
[this]
(-> this (.-Collator)))
(defn set-collator!
"Property.
The Intl.Collator object is a constructor for collators, objects
enable language sensitive string comparison.
`new Intl.Collator([locales[, options]])
Intl.Collator.call(this[, locales[, options]])`
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Collator`"
[this val]
(aset this "Collator" val))
(defn date-time-format
"Property.
The Intl.DateTimeFormat object is a constructor for objects that
language-sensitive date and time formatting.
`new Intl.DateTimeFormat([locales[, options]])
Intl.DateTimeFormat.call(this[, locales[, options]])`
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat`"
[this]
(-> this (.-DateTimeFormat)))
(defn set-date-time-format!
"Property.
The Intl.DateTimeFormat object is a constructor for objects that
language-sensitive date and time formatting.
`new Intl.DateTimeFormat([locales[, options]])
Intl.DateTimeFormat.call(this[, locales[, options]])`
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat`"
[this val]
(aset this "DateTimeFormat" val))
(defn list-format
"Property.
The Intl.ListFormat object is a constructor for objects that
language-sensitive list formatting.
`new Intl.ListFormat([locales[, options]])`
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ListFormat`"
[this]
(-> this (.-ListFormat)))
(defn set-list-format!
"Property.
The Intl.ListFormat object is a constructor for objects that
language-sensitive list formatting.
`new Intl.ListFormat([locales[, options]])`
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ListFormat`"
[this val]
(aset this "ListFormat" val))
(defn number-format
"Property.
The Intl.NumberFormat object is a constructor for objects that
language sensitive number formatting.
`new Intl.NumberFormat([locales[, options]])
Intl.NumberFormat.call(this[, locales[, options]])`
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat`"
[this]
(-> this (.-NumberFormat)))
(defn set-number-format!
"Property.
The Intl.NumberFormat object is a constructor for objects that
language sensitive number formatting.
`new Intl.NumberFormat([locales[, options]])
Intl.NumberFormat.call(this[, locales[, options]])`
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat`"
[this val]
(aset this "NumberFormat" val))
(defn plural-rules
"Property.
The Intl.PluralRules object is a constructor for objects that
plural sensitive formatting and plural language rules.
`new Intl.PluralRules([locales[, options]])`
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/PluralRules`"
[this]
(-> this (.-PluralRules)))
(defn set-plural-rules!
"Property.
The Intl.PluralRules object is a constructor for objects that
plural sensitive formatting and plural language rules.
`new Intl.PluralRules([locales[, options]])`
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/PluralRules`"
[this val]
(aset this "PluralRules" val))
(defn relative-time-format
"Property.
The Intl.RelativeTimeFormat object is a constructor for objects
enable language-sensitive relative time formatting.
`new Intl.RelativeTimeFormat([locales[, options]])`
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat`"
[this]
(-> this (.-RelativeTimeFormat)))
(defn set-relative-time-format!
"Property.
The Intl.RelativeTimeFormat object is a constructor for objects
enable language-sensitive relative time formatting.
`new Intl.RelativeTimeFormat([locales[, options]])`
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat`"
[this val]
(aset this "RelativeTimeFormat" val))