worldwide 1.26.2 → 1.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/CHANGELOG.md +11 -0
- data/Gemfile.lock +6 -5
- data/data/regions/BR.yml +1 -0
- data/data/regions/CL.yml +0 -1
- data/data/regions/TR.yml +493 -1
- data/lib/worldwide/cldr.rb +2 -6
- data/lib/worldwide/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 49d1675cfafac47dc58a9af5c3fc11bf4f3926b81acae2475136046642c762a2
|
|
4
|
+
data.tar.gz: bacfd6668d53c592656ed70c1fddff894a748b4009e7a9934e55a58dd7a47408
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4715015cdf99318440751f709a90fea983674a52564f1fc2d8c6b9e67bbac388222c0664fba5ceaefe5dfe0ccce2fb0b315400357665b53b554a670a01de25cc
|
|
7
|
+
data.tar.gz: b2921509899d3dd2f249d258315f5ea97c186b05a65eb92a57007fb75a61fe9be02a8340d96f3182a21baf5849e9555ab6a0ac50f24b839c5e90c0e88d92fb66
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -22,7 +22,7 @@ jobs:
|
|
|
22
22
|
- name: Check out code
|
|
23
23
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
24
24
|
- name: Set up Ruby ${{ matrix.ruby }}
|
|
25
|
-
uses: ruby/setup-ruby@
|
|
25
|
+
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
|
|
26
26
|
with:
|
|
27
27
|
ruby-version: ${{ matrix.ruby }}
|
|
28
28
|
bundler-cache: true
|
data/CHANGELOG.md
CHANGED
|
@@ -29,6 +29,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
29
29
|
|
|
30
30
|
---
|
|
31
31
|
|
|
32
|
+
## [1.27.0] - 2026-09-11
|
|
33
|
+
- Add the 81 province (il) zones for Türkiye (`TR-01`..`TR-81`), staged behind `ignore_provinces` and `hide_provinces_from_addresses`. Each zone carries its plaka number as a `zip_prefix`, so a province can be inferred from the postal code. Address forms and validation are unchanged until the flags are removed.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## [1.26.3] - 2026-09-01
|
|
38
|
+
- Select CLDR storage based on i18n's config behavior instead of Ruby's Fiber API. [#586](https://github.com/Shopify/worldwide/pull/586)
|
|
39
|
+
- No longer require building number for Chile. [#585](https://github.com/Shopify/worldwide/pull/585)
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
32
43
|
## [1.26.2] - 2026-08-05
|
|
33
44
|
- Fix `address1_regex` for NL/BE/DE so house numbers with uppercase unit letters (`Voltastraat 2 A`), hyphenated ranges (`Philippusweg 3-5`), roman-numeral suffixes (`Kerkstraat 12-II`), and NL streets starting with an ordinal (`1e Helmersstraat 5`) split correctly instead of dumping the whole value into `streetName`. [#565](https://github.com/Shopify/worldwide/pull/565)
|
|
34
45
|
|
data/Gemfile.lock
CHANGED
|
@@ -13,7 +13,7 @@ GIT
|
|
|
13
13
|
PATH
|
|
14
14
|
remote: .
|
|
15
15
|
specs:
|
|
16
|
-
worldwide (1.
|
|
16
|
+
worldwide (1.27.0)
|
|
17
17
|
activesupport (>= 7.0)
|
|
18
18
|
i18n (>= 1.15)
|
|
19
19
|
phonelib (~> 0.8)
|
|
@@ -21,7 +21,7 @@ PATH
|
|
|
21
21
|
GEM
|
|
22
22
|
remote: https://rubygems.org/
|
|
23
23
|
specs:
|
|
24
|
-
activesupport (7.2.3.
|
|
24
|
+
activesupport (7.2.3.2)
|
|
25
25
|
base64
|
|
26
26
|
benchmark (>= 0.3)
|
|
27
27
|
bigdecimal
|
|
@@ -46,7 +46,7 @@ GEM
|
|
|
46
46
|
drb (2.2.3)
|
|
47
47
|
i18n (1.15.2)
|
|
48
48
|
concurrent-ruby (~> 1.0)
|
|
49
|
-
json (2.21.
|
|
49
|
+
json (2.21.2)
|
|
50
50
|
language_server-protocol (3.17.0.6)
|
|
51
51
|
lint_roller (1.1.0)
|
|
52
52
|
logger (1.7.0)
|
|
@@ -69,7 +69,7 @@ GEM
|
|
|
69
69
|
parser (3.3.12.0)
|
|
70
70
|
ast (~> 2.4.1)
|
|
71
71
|
racc
|
|
72
|
-
phonelib (0.10.
|
|
72
|
+
phonelib (0.10.23)
|
|
73
73
|
prism (1.9.0)
|
|
74
74
|
pry (0.15.2)
|
|
75
75
|
coderay (~> 1.1)
|
|
@@ -88,7 +88,7 @@ GEM
|
|
|
88
88
|
logger
|
|
89
89
|
tsort
|
|
90
90
|
regexp_parser (2.12.0)
|
|
91
|
-
rubocop (1.
|
|
91
|
+
rubocop (1.89.0)
|
|
92
92
|
json (~> 2.3)
|
|
93
93
|
language_server-protocol (~> 3.17.0.2)
|
|
94
94
|
lint_roller (~> 1.1.0)
|
|
@@ -137,6 +137,7 @@ PLATFORMS
|
|
|
137
137
|
arm64-darwin-22
|
|
138
138
|
arm64-darwin-23
|
|
139
139
|
arm64-darwin-24
|
|
140
|
+
arm64-darwin-25
|
|
140
141
|
x86_64-linux
|
|
141
142
|
|
|
142
143
|
DEPENDENCIES
|
data/data/regions/BR.yml
CHANGED
|
@@ -31,6 +31,7 @@ format_extended:
|
|
|
31
31
|
address1_regex:
|
|
32
32
|
- "^(?<streetName>.+?),\\s*(?<streetNumber>(?:\\d+[a-zà-öø-ÿ]?|\\d+(?:[-/]\\d+[a-zà-öø-ÿ]?)+|\\d+(?:\\s+\\d+)+|s\\/?n|sem n[úu]mero))$"
|
|
33
33
|
- "^(?<streetName>.+?),\\s*(?<streetNumber>(?:\\d+[a-zà-öø-ÿ]?|\\d+(?:[-/]\\d+[a-zà-öø-ÿ]?)+|\\d+(?:\\s+\\d+)+|s\\/?n|sem n[úu]mero))\\s*,\\s*(?<line2>.+)$"
|
|
34
|
+
- "^(?<streetName>.+?),\\s*(?<streetNumber>(?:\\d+[a-zà-öø-ÿ]?|\\d+(?:[-/]\\d+[a-zà-öø-ÿ]?)+|\\d+(?:\\s+\\d+)+|s\\/?n|sem n[úu]mero))\\s+(?<line2>(?:apt(?:o|\\.)?|apartamento|bloco|casa|sala|fundos|loja|condom[ií]nio)\\b.+)$"
|
|
34
35
|
- "^(?<streetName>(?:[^\\d,\\s]+\\s)*[^\\d,\\s]+)\\s+(?<streetNumber>\\d+(?: ?[a-z])?)\\s+(?<line2>(?:apt(?:o|\\.)?|apartamento|bloco|casa|sala|fundos|loja)\\b.+)$"
|
|
35
36
|
- "^(?<streetName>(?:[^\\d,\\s]+\\s)*[^\\d,\\s]+)(?:,? ?)(?<streetNumber>\\d+(?: ?[a-z])?)\\s*,\\s*(?<line2>.+)$"
|
|
36
37
|
- "^(?<streetName>(?:[^\\d,\\s]+\\s)*[^\\d,\\s]+)(?:,? ?)(?<streetNumber>\\d+(?: ?[a-z])?)$"
|
data/data/regions/CL.yml
CHANGED
|
@@ -10,7 +10,6 @@ group: South American Countries
|
|
|
10
10
|
group_name: South America
|
|
11
11
|
zip_example: '8340457'
|
|
12
12
|
phone_number_prefix: 56
|
|
13
|
-
building_number_required: true
|
|
14
13
|
week_start_day: sunday
|
|
15
14
|
format:
|
|
16
15
|
edit: "{country}_{firstName}{lastName}_{company}_{address1}_{address2}_{zip}{city}_{province}_{phone}"
|
data/data/regions/TR.yml
CHANGED
|
@@ -6,6 +6,8 @@ currency: TRY
|
|
|
6
6
|
unit_system: metric
|
|
7
7
|
tax_name: KDV
|
|
8
8
|
tax_inclusive: true
|
|
9
|
+
ignore_provinces: true
|
|
10
|
+
hide_provinces_from_addresses: true
|
|
9
11
|
group: European Countries
|
|
10
12
|
group_name: Europe
|
|
11
13
|
zip_example: '01960'
|
|
@@ -34,7 +36,497 @@ languages:
|
|
|
34
36
|
example_address:
|
|
35
37
|
address1: Küçük Ayasofya Mahallesi
|
|
36
38
|
address2: Camii Sokagi No:20 Küçük Ayasofya
|
|
37
|
-
city: Fatih
|
|
39
|
+
city: Fatih
|
|
38
40
|
zip: '34122'
|
|
41
|
+
province_code: TR-34
|
|
39
42
|
phone: "+90 212 491 16 63"
|
|
40
43
|
timezone: Europe/Istanbul
|
|
44
|
+
zones:
|
|
45
|
+
- name: Adana
|
|
46
|
+
code: TR-01
|
|
47
|
+
iso_code: TR-01
|
|
48
|
+
tax: 0.0
|
|
49
|
+
zip_prefixes:
|
|
50
|
+
- '01'
|
|
51
|
+
- name: Adıyaman
|
|
52
|
+
code: TR-02
|
|
53
|
+
iso_code: TR-02
|
|
54
|
+
tax: 0.0
|
|
55
|
+
zip_prefixes:
|
|
56
|
+
- '02'
|
|
57
|
+
- name: Afyonkarahisar
|
|
58
|
+
code: TR-03
|
|
59
|
+
iso_code: TR-03
|
|
60
|
+
tax: 0.0
|
|
61
|
+
zip_prefixes:
|
|
62
|
+
- '03'
|
|
63
|
+
- name: Ağrı
|
|
64
|
+
code: TR-04
|
|
65
|
+
iso_code: TR-04
|
|
66
|
+
tax: 0.0
|
|
67
|
+
zip_prefixes:
|
|
68
|
+
- '04'
|
|
69
|
+
- name: Aksaray
|
|
70
|
+
code: TR-68
|
|
71
|
+
iso_code: TR-68
|
|
72
|
+
tax: 0.0
|
|
73
|
+
zip_prefixes:
|
|
74
|
+
- '68'
|
|
75
|
+
- name: Amasya
|
|
76
|
+
code: TR-05
|
|
77
|
+
iso_code: TR-05
|
|
78
|
+
tax: 0.0
|
|
79
|
+
zip_prefixes:
|
|
80
|
+
- '05'
|
|
81
|
+
- name: Ankara
|
|
82
|
+
code: TR-06
|
|
83
|
+
iso_code: TR-06
|
|
84
|
+
tax: 0.0
|
|
85
|
+
zip_prefixes:
|
|
86
|
+
- '06'
|
|
87
|
+
- name: Antalya
|
|
88
|
+
code: TR-07
|
|
89
|
+
iso_code: TR-07
|
|
90
|
+
tax: 0.0
|
|
91
|
+
zip_prefixes:
|
|
92
|
+
- '07'
|
|
93
|
+
- name: Ardahan
|
|
94
|
+
code: TR-75
|
|
95
|
+
iso_code: TR-75
|
|
96
|
+
tax: 0.0
|
|
97
|
+
zip_prefixes:
|
|
98
|
+
- '75'
|
|
99
|
+
- name: Artvin
|
|
100
|
+
code: TR-08
|
|
101
|
+
iso_code: TR-08
|
|
102
|
+
tax: 0.0
|
|
103
|
+
zip_prefixes:
|
|
104
|
+
- '08'
|
|
105
|
+
- name: Aydın
|
|
106
|
+
code: TR-09
|
|
107
|
+
iso_code: TR-09
|
|
108
|
+
tax: 0.0
|
|
109
|
+
zip_prefixes:
|
|
110
|
+
- '09'
|
|
111
|
+
- name: Balıkesir
|
|
112
|
+
code: TR-10
|
|
113
|
+
iso_code: TR-10
|
|
114
|
+
tax: 0.0
|
|
115
|
+
zip_prefixes:
|
|
116
|
+
- '10'
|
|
117
|
+
- name: Bartın
|
|
118
|
+
code: TR-74
|
|
119
|
+
iso_code: TR-74
|
|
120
|
+
tax: 0.0
|
|
121
|
+
zip_prefixes:
|
|
122
|
+
- '74'
|
|
123
|
+
- name: Batman
|
|
124
|
+
code: TR-72
|
|
125
|
+
iso_code: TR-72
|
|
126
|
+
tax: 0.0
|
|
127
|
+
zip_prefixes:
|
|
128
|
+
- '72'
|
|
129
|
+
- name: Bayburt
|
|
130
|
+
code: TR-69
|
|
131
|
+
iso_code: TR-69
|
|
132
|
+
tax: 0.0
|
|
133
|
+
zip_prefixes:
|
|
134
|
+
- '69'
|
|
135
|
+
- name: Bilecik
|
|
136
|
+
code: TR-11
|
|
137
|
+
iso_code: TR-11
|
|
138
|
+
tax: 0.0
|
|
139
|
+
zip_prefixes:
|
|
140
|
+
- '11'
|
|
141
|
+
- name: Bingöl
|
|
142
|
+
code: TR-12
|
|
143
|
+
iso_code: TR-12
|
|
144
|
+
tax: 0.0
|
|
145
|
+
zip_prefixes:
|
|
146
|
+
- '12'
|
|
147
|
+
- name: Bitlis
|
|
148
|
+
code: TR-13
|
|
149
|
+
iso_code: TR-13
|
|
150
|
+
tax: 0.0
|
|
151
|
+
zip_prefixes:
|
|
152
|
+
- '13'
|
|
153
|
+
- name: Bolu
|
|
154
|
+
code: TR-14
|
|
155
|
+
iso_code: TR-14
|
|
156
|
+
tax: 0.0
|
|
157
|
+
zip_prefixes:
|
|
158
|
+
- '14'
|
|
159
|
+
- name: Burdur
|
|
160
|
+
code: TR-15
|
|
161
|
+
iso_code: TR-15
|
|
162
|
+
tax: 0.0
|
|
163
|
+
zip_prefixes:
|
|
164
|
+
- '15'
|
|
165
|
+
- name: Bursa
|
|
166
|
+
code: TR-16
|
|
167
|
+
iso_code: TR-16
|
|
168
|
+
tax: 0.0
|
|
169
|
+
zip_prefixes:
|
|
170
|
+
- '16'
|
|
171
|
+
- name: Çanakkale
|
|
172
|
+
code: TR-17
|
|
173
|
+
iso_code: TR-17
|
|
174
|
+
tax: 0.0
|
|
175
|
+
zip_prefixes:
|
|
176
|
+
- '17'
|
|
177
|
+
- name: Çankırı
|
|
178
|
+
code: TR-18
|
|
179
|
+
iso_code: TR-18
|
|
180
|
+
tax: 0.0
|
|
181
|
+
zip_prefixes:
|
|
182
|
+
- '18'
|
|
183
|
+
- name: Çorum
|
|
184
|
+
code: TR-19
|
|
185
|
+
iso_code: TR-19
|
|
186
|
+
tax: 0.0
|
|
187
|
+
zip_prefixes:
|
|
188
|
+
- '19'
|
|
189
|
+
- name: Denizli
|
|
190
|
+
code: TR-20
|
|
191
|
+
iso_code: TR-20
|
|
192
|
+
tax: 0.0
|
|
193
|
+
zip_prefixes:
|
|
194
|
+
- '20'
|
|
195
|
+
- name: Diyarbakır
|
|
196
|
+
code: TR-21
|
|
197
|
+
iso_code: TR-21
|
|
198
|
+
tax: 0.0
|
|
199
|
+
zip_prefixes:
|
|
200
|
+
- '21'
|
|
201
|
+
- name: Düzce
|
|
202
|
+
code: TR-81
|
|
203
|
+
iso_code: TR-81
|
|
204
|
+
tax: 0.0
|
|
205
|
+
zip_prefixes:
|
|
206
|
+
- '81'
|
|
207
|
+
- name: Edirne
|
|
208
|
+
code: TR-22
|
|
209
|
+
iso_code: TR-22
|
|
210
|
+
tax: 0.0
|
|
211
|
+
zip_prefixes:
|
|
212
|
+
- '22'
|
|
213
|
+
- name: Elazığ
|
|
214
|
+
code: TR-23
|
|
215
|
+
iso_code: TR-23
|
|
216
|
+
tax: 0.0
|
|
217
|
+
zip_prefixes:
|
|
218
|
+
- '23'
|
|
219
|
+
- name: Erzincan
|
|
220
|
+
code: TR-24
|
|
221
|
+
iso_code: TR-24
|
|
222
|
+
tax: 0.0
|
|
223
|
+
zip_prefixes:
|
|
224
|
+
- '24'
|
|
225
|
+
- name: Erzurum
|
|
226
|
+
code: TR-25
|
|
227
|
+
iso_code: TR-25
|
|
228
|
+
tax: 0.0
|
|
229
|
+
zip_prefixes:
|
|
230
|
+
- '25'
|
|
231
|
+
- name: Eskişehir
|
|
232
|
+
code: TR-26
|
|
233
|
+
iso_code: TR-26
|
|
234
|
+
tax: 0.0
|
|
235
|
+
zip_prefixes:
|
|
236
|
+
- '26'
|
|
237
|
+
- name: Gaziantep
|
|
238
|
+
code: TR-27
|
|
239
|
+
iso_code: TR-27
|
|
240
|
+
tax: 0.0
|
|
241
|
+
zip_prefixes:
|
|
242
|
+
- '27'
|
|
243
|
+
- name: Giresun
|
|
244
|
+
code: TR-28
|
|
245
|
+
iso_code: TR-28
|
|
246
|
+
tax: 0.0
|
|
247
|
+
zip_prefixes:
|
|
248
|
+
- '28'
|
|
249
|
+
- name: Gümüşhane
|
|
250
|
+
code: TR-29
|
|
251
|
+
iso_code: TR-29
|
|
252
|
+
tax: 0.0
|
|
253
|
+
zip_prefixes:
|
|
254
|
+
- '29'
|
|
255
|
+
- name: Hakkâri
|
|
256
|
+
code: TR-30
|
|
257
|
+
iso_code: TR-30
|
|
258
|
+
tax: 0.0
|
|
259
|
+
zip_prefixes:
|
|
260
|
+
- '30'
|
|
261
|
+
- name: Hatay
|
|
262
|
+
code: TR-31
|
|
263
|
+
iso_code: TR-31
|
|
264
|
+
tax: 0.0
|
|
265
|
+
zip_prefixes:
|
|
266
|
+
- '31'
|
|
267
|
+
- name: Iğdır
|
|
268
|
+
code: TR-76
|
|
269
|
+
iso_code: TR-76
|
|
270
|
+
tax: 0.0
|
|
271
|
+
zip_prefixes:
|
|
272
|
+
- '76'
|
|
273
|
+
- name: Isparta
|
|
274
|
+
code: TR-32
|
|
275
|
+
iso_code: TR-32
|
|
276
|
+
tax: 0.0
|
|
277
|
+
zip_prefixes:
|
|
278
|
+
- '32'
|
|
279
|
+
- name: Istanbul
|
|
280
|
+
code: TR-34
|
|
281
|
+
iso_code: TR-34
|
|
282
|
+
tax: 0.0
|
|
283
|
+
zip_prefixes:
|
|
284
|
+
- '34'
|
|
285
|
+
- name: Izmir
|
|
286
|
+
code: TR-35
|
|
287
|
+
iso_code: TR-35
|
|
288
|
+
tax: 0.0
|
|
289
|
+
zip_prefixes:
|
|
290
|
+
- '35'
|
|
291
|
+
- name: Kahramanmaraş
|
|
292
|
+
code: TR-46
|
|
293
|
+
iso_code: TR-46
|
|
294
|
+
tax: 0.0
|
|
295
|
+
zip_prefixes:
|
|
296
|
+
- '46'
|
|
297
|
+
- name: Karabük
|
|
298
|
+
code: TR-78
|
|
299
|
+
iso_code: TR-78
|
|
300
|
+
tax: 0.0
|
|
301
|
+
zip_prefixes:
|
|
302
|
+
- '78'
|
|
303
|
+
- name: Karaman
|
|
304
|
+
code: TR-70
|
|
305
|
+
iso_code: TR-70
|
|
306
|
+
tax: 0.0
|
|
307
|
+
zip_prefixes:
|
|
308
|
+
- '70'
|
|
309
|
+
- name: Kars
|
|
310
|
+
code: TR-36
|
|
311
|
+
iso_code: TR-36
|
|
312
|
+
tax: 0.0
|
|
313
|
+
zip_prefixes:
|
|
314
|
+
- '36'
|
|
315
|
+
- name: Kastamonu
|
|
316
|
+
code: TR-37
|
|
317
|
+
iso_code: TR-37
|
|
318
|
+
tax: 0.0
|
|
319
|
+
zip_prefixes:
|
|
320
|
+
- '37'
|
|
321
|
+
- name: Kayseri
|
|
322
|
+
code: TR-38
|
|
323
|
+
iso_code: TR-38
|
|
324
|
+
tax: 0.0
|
|
325
|
+
zip_prefixes:
|
|
326
|
+
- '38'
|
|
327
|
+
- name: Kilis
|
|
328
|
+
code: TR-79
|
|
329
|
+
iso_code: TR-79
|
|
330
|
+
tax: 0.0
|
|
331
|
+
zip_prefixes:
|
|
332
|
+
- '79'
|
|
333
|
+
- name: Kırıkkale
|
|
334
|
+
code: TR-71
|
|
335
|
+
iso_code: TR-71
|
|
336
|
+
tax: 0.0
|
|
337
|
+
zip_prefixes:
|
|
338
|
+
- '71'
|
|
339
|
+
- name: Kırklareli
|
|
340
|
+
code: TR-39
|
|
341
|
+
iso_code: TR-39
|
|
342
|
+
tax: 0.0
|
|
343
|
+
zip_prefixes:
|
|
344
|
+
- '39'
|
|
345
|
+
- name: Kırşehir
|
|
346
|
+
code: TR-40
|
|
347
|
+
iso_code: TR-40
|
|
348
|
+
tax: 0.0
|
|
349
|
+
zip_prefixes:
|
|
350
|
+
- '40'
|
|
351
|
+
- name: Kocaeli
|
|
352
|
+
code: TR-41
|
|
353
|
+
iso_code: TR-41
|
|
354
|
+
tax: 0.0
|
|
355
|
+
zip_prefixes:
|
|
356
|
+
- '41'
|
|
357
|
+
- name: Konya
|
|
358
|
+
code: TR-42
|
|
359
|
+
iso_code: TR-42
|
|
360
|
+
tax: 0.0
|
|
361
|
+
zip_prefixes:
|
|
362
|
+
- '42'
|
|
363
|
+
- name: Kütahya
|
|
364
|
+
code: TR-43
|
|
365
|
+
iso_code: TR-43
|
|
366
|
+
tax: 0.0
|
|
367
|
+
zip_prefixes:
|
|
368
|
+
- '43'
|
|
369
|
+
- name: Malatya
|
|
370
|
+
code: TR-44
|
|
371
|
+
iso_code: TR-44
|
|
372
|
+
tax: 0.0
|
|
373
|
+
zip_prefixes:
|
|
374
|
+
- '44'
|
|
375
|
+
- name: Manisa
|
|
376
|
+
code: TR-45
|
|
377
|
+
iso_code: TR-45
|
|
378
|
+
tax: 0.0
|
|
379
|
+
zip_prefixes:
|
|
380
|
+
- '45'
|
|
381
|
+
- name: Mardin
|
|
382
|
+
code: TR-47
|
|
383
|
+
iso_code: TR-47
|
|
384
|
+
tax: 0.0
|
|
385
|
+
zip_prefixes:
|
|
386
|
+
- '47'
|
|
387
|
+
- name: Mersin
|
|
388
|
+
code: TR-33
|
|
389
|
+
iso_code: TR-33
|
|
390
|
+
tax: 0.0
|
|
391
|
+
zip_prefixes:
|
|
392
|
+
- '33'
|
|
393
|
+
# Northern Cyprus is addressed via Türkiye as "Mersin 10" and uses the 99xxx postal code range
|
|
394
|
+
- '99'
|
|
395
|
+
- name: Muğla
|
|
396
|
+
code: TR-48
|
|
397
|
+
iso_code: TR-48
|
|
398
|
+
tax: 0.0
|
|
399
|
+
zip_prefixes:
|
|
400
|
+
- '48'
|
|
401
|
+
- name: Muş
|
|
402
|
+
code: TR-49
|
|
403
|
+
iso_code: TR-49
|
|
404
|
+
tax: 0.0
|
|
405
|
+
zip_prefixes:
|
|
406
|
+
- '49'
|
|
407
|
+
- name: Nevşehir
|
|
408
|
+
code: TR-50
|
|
409
|
+
iso_code: TR-50
|
|
410
|
+
tax: 0.0
|
|
411
|
+
zip_prefixes:
|
|
412
|
+
- '50'
|
|
413
|
+
- name: Niğde
|
|
414
|
+
code: TR-51
|
|
415
|
+
iso_code: TR-51
|
|
416
|
+
tax: 0.0
|
|
417
|
+
zip_prefixes:
|
|
418
|
+
- '51'
|
|
419
|
+
- name: Ordu
|
|
420
|
+
code: TR-52
|
|
421
|
+
iso_code: TR-52
|
|
422
|
+
tax: 0.0
|
|
423
|
+
zip_prefixes:
|
|
424
|
+
- '52'
|
|
425
|
+
- name: Osmaniye
|
|
426
|
+
code: TR-80
|
|
427
|
+
iso_code: TR-80
|
|
428
|
+
tax: 0.0
|
|
429
|
+
zip_prefixes:
|
|
430
|
+
- '80'
|
|
431
|
+
- name: Rize
|
|
432
|
+
code: TR-53
|
|
433
|
+
iso_code: TR-53
|
|
434
|
+
tax: 0.0
|
|
435
|
+
zip_prefixes:
|
|
436
|
+
- '53'
|
|
437
|
+
- name: Sakarya
|
|
438
|
+
code: TR-54
|
|
439
|
+
iso_code: TR-54
|
|
440
|
+
tax: 0.0
|
|
441
|
+
zip_prefixes:
|
|
442
|
+
- '54'
|
|
443
|
+
- name: Samsun
|
|
444
|
+
code: TR-55
|
|
445
|
+
iso_code: TR-55
|
|
446
|
+
tax: 0.0
|
|
447
|
+
zip_prefixes:
|
|
448
|
+
- '55'
|
|
449
|
+
- name: Şanlıurfa
|
|
450
|
+
code: TR-63
|
|
451
|
+
iso_code: TR-63
|
|
452
|
+
tax: 0.0
|
|
453
|
+
zip_prefixes:
|
|
454
|
+
- '63'
|
|
455
|
+
- name: Siirt
|
|
456
|
+
code: TR-56
|
|
457
|
+
iso_code: TR-56
|
|
458
|
+
tax: 0.0
|
|
459
|
+
zip_prefixes:
|
|
460
|
+
- '56'
|
|
461
|
+
- name: Sinop
|
|
462
|
+
code: TR-57
|
|
463
|
+
iso_code: TR-57
|
|
464
|
+
tax: 0.0
|
|
465
|
+
zip_prefixes:
|
|
466
|
+
- '57'
|
|
467
|
+
- name: Şırnak
|
|
468
|
+
code: TR-73
|
|
469
|
+
iso_code: TR-73
|
|
470
|
+
tax: 0.0
|
|
471
|
+
zip_prefixes:
|
|
472
|
+
- '73'
|
|
473
|
+
- name: Sivas
|
|
474
|
+
code: TR-58
|
|
475
|
+
iso_code: TR-58
|
|
476
|
+
tax: 0.0
|
|
477
|
+
zip_prefixes:
|
|
478
|
+
- '58'
|
|
479
|
+
- name: Tekirdağ
|
|
480
|
+
code: TR-59
|
|
481
|
+
iso_code: TR-59
|
|
482
|
+
tax: 0.0
|
|
483
|
+
zip_prefixes:
|
|
484
|
+
- '59'
|
|
485
|
+
- name: Tokat
|
|
486
|
+
code: TR-60
|
|
487
|
+
iso_code: TR-60
|
|
488
|
+
tax: 0.0
|
|
489
|
+
zip_prefixes:
|
|
490
|
+
- '60'
|
|
491
|
+
- name: Trabzon
|
|
492
|
+
code: TR-61
|
|
493
|
+
iso_code: TR-61
|
|
494
|
+
tax: 0.0
|
|
495
|
+
zip_prefixes:
|
|
496
|
+
- '61'
|
|
497
|
+
- name: Tunceli
|
|
498
|
+
code: TR-62
|
|
499
|
+
iso_code: TR-62
|
|
500
|
+
tax: 0.0
|
|
501
|
+
zip_prefixes:
|
|
502
|
+
- '62'
|
|
503
|
+
- name: Uşak
|
|
504
|
+
code: TR-64
|
|
505
|
+
iso_code: TR-64
|
|
506
|
+
tax: 0.0
|
|
507
|
+
zip_prefixes:
|
|
508
|
+
- '64'
|
|
509
|
+
- name: Van
|
|
510
|
+
code: TR-65
|
|
511
|
+
iso_code: TR-65
|
|
512
|
+
tax: 0.0
|
|
513
|
+
zip_prefixes:
|
|
514
|
+
- '65'
|
|
515
|
+
- name: Yalova
|
|
516
|
+
code: TR-77
|
|
517
|
+
iso_code: TR-77
|
|
518
|
+
tax: 0.0
|
|
519
|
+
zip_prefixes:
|
|
520
|
+
- '77'
|
|
521
|
+
- name: Yozgat
|
|
522
|
+
code: TR-66
|
|
523
|
+
iso_code: TR-66
|
|
524
|
+
tax: 0.0
|
|
525
|
+
zip_prefixes:
|
|
526
|
+
- '66'
|
|
527
|
+
- name: Zonguldak
|
|
528
|
+
code: TR-67
|
|
529
|
+
iso_code: TR-67
|
|
530
|
+
tax: 0.0
|
|
531
|
+
zip_prefixes:
|
|
532
|
+
- '67'
|
data/lib/worldwide/cldr.rb
CHANGED
|
@@ -11,11 +11,7 @@ module Worldwide
|
|
|
11
11
|
cldr_config.exception_handler = Worldwide::Config.exception_handler
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
# i18n
|
|
15
|
-
# 3.2+ and in thread-local storage otherwise. We must write the same slots
|
|
16
|
-
# i18n reads back, so a Thread.current[:i18n_config] write is not silently
|
|
17
|
-
# ignored on Ruby 3.2+. These strategies mirror i18n's own storage; the one
|
|
18
|
-
# matching the runtime is selected once into STORAGE.
|
|
14
|
+
# Match i18n's config storage behavior, not Ruby's Fiber API.
|
|
19
15
|
module FiberStorage
|
|
20
16
|
class << self
|
|
21
17
|
def config
|
|
@@ -57,7 +53,7 @@ module Worldwide
|
|
|
57
53
|
end
|
|
58
54
|
end
|
|
59
55
|
|
|
60
|
-
STORAGE =
|
|
56
|
+
STORAGE = I18n::Config.method_defined?(:owned_by?) ? FiberStorage : ThreadStorage
|
|
61
57
|
|
|
62
58
|
class << self
|
|
63
59
|
def fallbacks
|
data/lib/worldwide/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: worldwide
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.27.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shopify
|
|
@@ -8736,7 +8736,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
8736
8736
|
- !ruby/object:Gem::Version
|
|
8737
8737
|
version: '0'
|
|
8738
8738
|
requirements: []
|
|
8739
|
-
rubygems_version: 4.0.
|
|
8739
|
+
rubygems_version: 4.0.19
|
|
8740
8740
|
specification_version: 4
|
|
8741
8741
|
summary: Internationalization and localization APIs
|
|
8742
8742
|
test_files: []
|