Debian Codegraph @

third_party/rust/icu_locid/tests/fixtures/locale.json

raw
1 [
2 {
3 "input": {
4 "type": "Locale",
5 "identifier": "en-u-hc-h12"
6 },
7 "output": {
8 "type": "Locale",
9 "language": "en",
10 "extensions": {
11 "unicode": {
12 "keywords": {
13 "hc": "h12"
14 }
15 }
16 }
17 }
18 },
19 {
20 "input": {
21 "type": "Locale",
22 "identifier": "en-US-u-hc-h23"
23 },
24 "output": {
25 "type": "Locale",
26 "language": "en",
27 "region": "US",
28 "extensions": {
29 "unicode": {
30 "keywords": {
31 "hc": "h23"
32 }
33 }
34 }
35 }
36 },
37 {
38 "input": {
39 "type": "Locale",
40 "identifier": "en-US-u-foo"
41 },
42 "output": {
43 "type": "Locale",
44 "language": "en",
45 "region": "US",
46 "extensions": {
47 "unicode": {
48 "attributes": [
49 "foo"
50 ]
51 }
52 }
53 }
54 },
55 {
56 "input": {
57 "type": "Locale",
58 "identifier": "en-US-u-hc-h23-ca-islamic-civil-ss-true"
59 },
60 "output": {
61 "type": "Locale",
62 "language": "en",
63 "region": "US",
64 "extensions": {
65 "unicode": {
66 "keywords": {
67 "hc": "h23",
68 "ca": "islamic-civil",
69 "ss": "true"
70 }
71 }
72 }
73 }
74 },
75 {
76 "input": {
77 "type": "Locale",
78 "identifier": "en-US-t-pl-latn-de"
79 },
80 "output": {
81 "type": "Locale",
82 "language": "en",
83 "region": "US",
84 "extensions": {
85 "transform": {
86 "tlang": "pl-Latn-DE"
87 }
88 }
89 }
90 },
91 {
92 "input": {
93 "type": "Locale",
94 "identifier": "en-US-x-private-foobar"
95 },
96 "output": {
97 "type": "Locale",
98 "language": "en",
99 "region": "US",
100 "extensions": {
101 "private": ["private", "foobar"]
102 }
103 }
104 },
105 {
106 "input": {
107 "type": "Locale",
108 "identifier": "en-US-t-h0-hybrid-k0-platform-s0-true"
109 },
110 "output": {
111 "type": "Locale",
112 "language": "en",
113 "region": "US",
114 "extensions": {
115 "transform": {
116 "tfields": {
117 "h0": "hybrid",
118 "k0": "platform",
119 "s0": "true"
120 }
121 }
122 }
123 }
124 },
125 {
126 "input": {
127 "type": "Locale",
128 "identifier": "en-US-t-es-ar-x-foo"
129 },
130 "output": {
131 "type": "Locale",
132 "language": "en",
133 "region": "US",
134 "extensions": {
135 "transform": {
136 "tlang": "es-AR"
137 },
138 "private": ["foo"]
139 }
140 }
141 },
142 {
143 "input": {
144 "type": "Locale",
145 "identifier": "en-US-u-ca-buddhist-hc-h12-t-es-ar-h0-hybrid-x-private-foobar"
146 },
147 "output": {
148 "type": "Locale",
149 "language": "en",
150 "region": "US",
151 "extensions": {
152 "unicode": {
153 "keywords": {
154 "ca": "buddhist",
155 "hc": "h12"
156 }
157 },
158 "transform": {
159 "tlang": "es-AR",
160 "tfields": {
161 "h0": "hybrid"
162 }
163 },
164 "private": ["private", "foobar"]
165 }
166 }
167 },
168 {
169 "input": {
170 "type": "Locale",
171 "language": "es",
172 "region": "MX",
173 "extensions": {
174 "unicode": {
175 "keywords": {
176 "ca": "islamic",
177 "co": "search",
178 "nu": "roman"
179 }
180 }
181 }
182 },
183 "output": {
184 "type": "Locale",
185 "identifier": "es-MX-u-ca-islamic-co-search-nu-roman"
186 }
187 },
188 {
189 "input": {
190 "type": "Locale",
191 "identifier": "und-u-kn"
192 },
193 "output": {
194 "type": "Locale",
195 "identifier": "und-u-kn"
196 }
197 },
198 {
199 "input": {
200 "type": "Locale",
201 "identifier": "und-u-kn-ca-calendar"
202 },
203 "output": {
204 "type": "Locale",
205 "identifier": "und-u-ca-calendar-kn"
206 }
207 },
208 {
209 "input": {
210 "type": "Locale",
211 "identifier": "und-u-kn-nu-arab"
212 },
213 "output": {
214 "type": "Locale",
215 "identifier": "und-u-kn-nu-arab"
216 }
217 },
218 {
219 "input": {
220 "type": "Locale",
221 "identifier": "und-t-m0-true"
222 },
223 "output": {
224 "type": "Locale",
225 "identifier": "und-t-m0-true"
226 }
227 },
228 {
229 "input": {
230 "type": "Locale",
231 "identifier": "und-t-m0-true-n0-mixed"
232 },
233 "output": {
234 "type": "Locale",
235 "identifier": "und-t-m0-true-n0-mixed"
236 }
237 },
238 {
239 "input": {
240 "type": "Locale",
241 "identifier": "und-t-m0-true-c0-mixed"
242 },
243 "output": {
244 "type": "Locale",
245 "identifier": "und-t-c0-mixed-m0-true"
246 }
247 },
248 {
249 "input": {
250 "type": "Locale",
251 "identifier": "da-u-ca-gregory-ca-buddhist"
252 },
253 "output": {
254 "type": "Locale",
255 "identifier": "da-u-ca-gregory"
256 }
257 },
258 {
259 "input": {
260 "type": "Locale",
261 "identifier": "pt-u-attr2-attr1-ca-gregory"
262 },
263 "output": {
264 "type": "Locale",
265 "identifier": "pt-u-attr1-attr2-ca-gregory"
266 }
267 },
268 {
269 "input": {
270 "type": "Locale",
271 "identifier": "pt-u-attr1-attr2-attr1-ca-gregory"
272 },
273 "output": {
274 "type": "Locale",
275 "identifier": "pt-u-attr1-attr2-ca-gregory"
276 }
277 },
278 {
279 "input": {
280 "type": "Locale",
281 "identifier": "en-a-not-assigned"
282 },
283 "output": {
284 "type": "Locale",
285 "identifier": "en-a-not-assigned"
286 }
287 },
288 {
289 "input": {
290 "type": "Locale",
291 "identifier": "en-w-bar-u-foo-a-bar-x-u-foo"
292 },
293 "output": {
294 "type": "Locale",
295 "identifier": "en-a-bar-u-foo-w-bar-x-u-foo"
296 }
297 }
298 ]