twitter_cldr 6.11.0 → 6.11.3
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/README.md +5 -5
- data/lib/twitter_cldr/formatters/numbers/rbnf/rule_set.rb +1 -1
- data/lib/twitter_cldr/resources/cldr_document_set.rb +9 -1
- data/lib/twitter_cldr/resources/loader.rb +3 -1
- data/lib/twitter_cldr/shared/currencies.rb +1 -1
- data/lib/twitter_cldr/version.rb +1 -1
- data/resources/locales/bo/calendars.yml +56 -56
- data/resources/locales/en/calendars.yml +75 -69
- data/resources/locales/en-001/calendars.yml +65 -59
- data/resources/locales/en-150/calendars.yml +65 -59
- data/resources/locales/en-AU/calendars.yml +4 -4
- data/resources/locales/en-CA/calendars.yml +61 -59
- data/resources/locales/en-GB/calendars.yml +7 -3
- data/resources/locales/en-IE/calendars.yml +65 -59
- data/resources/locales/en-IN/calendars.yml +65 -59
- data/resources/locales/en-NZ/calendars.yml +65 -59
- data/resources/locales/en-SG/calendars.yml +65 -59
- data/resources/locales/en-US/calendars.yml +75 -69
- data/resources/locales/en-ZA/calendars.yml +65 -59
- data/resources/locales/eo/calendars.yml +82 -82
- data/resources/locales/ga/calendars.yml +4 -4
- data/resources/locales/pt/calendars.yml +33 -33
- data/resources/locales/pt-PT/calendars.yml +19 -19
- data/resources/locales/ru/calendars.yml +7 -7
- data/resources/locales/xh/calendars.yml +14 -14
- data/resources/locales/zh-Hant/calendars.yml +4 -4
- data/resources/locales/zu/calendars.yml +1 -1
- data/spec/shared/calendar_spec.rb +17 -0
- data/spec/shared/currencies_spec.rb +2 -2
- metadata +6 -7
@@ -62,21 +62,21 @@
|
|
62
62
|
:tue: ma
|
63
63
|
:wed: me
|
64
64
|
:narrow:
|
65
|
-
:fri:
|
66
|
-
:mon:
|
65
|
+
:fri: V
|
66
|
+
:mon: L
|
67
67
|
:sat: S
|
68
|
-
:sun:
|
69
|
-
:thu:
|
70
|
-
:tue:
|
71
|
-
:wed:
|
68
|
+
:sun: D
|
69
|
+
:thu: Ĵ
|
70
|
+
:tue: M
|
71
|
+
:wed: M
|
72
72
|
:short:
|
73
|
-
:fri:
|
74
|
-
:mon:
|
75
|
-
:sat:
|
76
|
-
:sun:
|
77
|
-
:thu:
|
78
|
-
:tue:
|
79
|
-
:wed:
|
73
|
+
:fri: ve
|
74
|
+
:mon: lu
|
75
|
+
:sat: sa
|
76
|
+
:sun: di
|
77
|
+
:thu: ĵa
|
78
|
+
:tue: ma
|
79
|
+
:wed: me
|
80
80
|
:wide:
|
81
81
|
:fri: vendredo
|
82
82
|
:mon: lundo
|
@@ -87,13 +87,13 @@
|
|
87
87
|
:wed: merkredo
|
88
88
|
:stand-alone:
|
89
89
|
:abbreviated:
|
90
|
-
:fri:
|
91
|
-
:mon:
|
92
|
-
:sat:
|
93
|
-
:sun:
|
94
|
-
:thu:
|
95
|
-
:tue:
|
96
|
-
:wed:
|
90
|
+
:fri: ve
|
91
|
+
:mon: lu
|
92
|
+
:sat: sa
|
93
|
+
:sun: di
|
94
|
+
:thu: ĵa
|
95
|
+
:tue: ma
|
96
|
+
:wed: me
|
97
97
|
:narrow:
|
98
98
|
:fri: V
|
99
99
|
:mon: L
|
@@ -103,13 +103,13 @@
|
|
103
103
|
:tue: M
|
104
104
|
:wed: M
|
105
105
|
:short:
|
106
|
-
:fri:
|
107
|
-
:mon:
|
108
|
-
:sat:
|
109
|
-
:sun:
|
110
|
-
:thu:
|
111
|
-
:tue:
|
112
|
-
:wed:
|
106
|
+
:fri: ve
|
107
|
+
:mon: lu
|
108
|
+
:sat: sa
|
109
|
+
:sun: di
|
110
|
+
:thu: ĵa
|
111
|
+
:tue: ma
|
112
|
+
:wed: me
|
113
113
|
:wide:
|
114
114
|
:fri: vendredo
|
115
115
|
:mon: lundo
|
@@ -130,50 +130,50 @@
|
|
130
130
|
1: KE
|
131
131
|
:fields:
|
132
132
|
:day: tago
|
133
|
-
:day-narrow:
|
134
|
-
:day-short:
|
133
|
+
:day-narrow: tago
|
134
|
+
:day-short: tago
|
135
135
|
:dayOfYear: "Day Of Year"
|
136
136
|
:dayOfYear-narrow: "Day Of Year"
|
137
137
|
:dayOfYear-short: "Day Of Year"
|
138
138
|
:dayperiod: atm/ptm
|
139
|
-
:dayperiod-narrow:
|
140
|
-
:dayperiod-short:
|
139
|
+
:dayperiod-narrow: atm/ptm
|
140
|
+
:dayperiod-short: atm/ptm
|
141
141
|
:era: erao
|
142
|
-
:era-narrow:
|
143
|
-
:era-short:
|
142
|
+
:era-narrow: erao
|
143
|
+
:era-short: erao
|
144
144
|
:hour: horo
|
145
145
|
:hour-narrow: h
|
146
|
-
:hour-short:
|
146
|
+
:hour-short: horo
|
147
147
|
:minute: minuto
|
148
148
|
:minute-narrow: m
|
149
|
-
:minute-short:
|
149
|
+
:minute-short: minuto
|
150
150
|
:month: monato
|
151
|
-
:month-narrow:
|
152
|
-
:month-short:
|
151
|
+
:month-narrow: monato
|
152
|
+
:month-short: monato
|
153
153
|
:quarter: kvaronjaro
|
154
|
-
:quarter-narrow:
|
155
|
-
:quarter-short:
|
154
|
+
:quarter-narrow: kvaronjaro
|
155
|
+
:quarter-short: kvaronjaro
|
156
156
|
:second: sekundo
|
157
157
|
:second-narrow: s
|
158
|
-
:second-short:
|
158
|
+
:second-short: sekundo
|
159
159
|
:week: semajno
|
160
|
-
:week-narrow:
|
161
|
-
:week-short:
|
160
|
+
:week-narrow: semajno
|
161
|
+
:week-short: semajno
|
162
162
|
:weekOfMonth: "Week Of Month"
|
163
163
|
:weekOfMonth-narrow: "Week Of Month"
|
164
164
|
:weekOfMonth-short: "Week Of Month"
|
165
165
|
:weekday: "tago de la semajno"
|
166
|
-
:weekday-narrow: "
|
167
|
-
:weekday-short: "
|
166
|
+
:weekday-narrow: "tago de la semajno"
|
167
|
+
:weekday-short: "tago de la semajno"
|
168
168
|
:weekdayOfMonth: "Weekday Of Month"
|
169
169
|
:weekdayOfMonth-narrow: "Weekday Of Month"
|
170
170
|
:weekdayOfMonth-short: "Weekday Of Month"
|
171
171
|
:year: jaro
|
172
|
-
:year-narrow:
|
173
|
-
:year-short:
|
172
|
+
:year-narrow: jaro
|
173
|
+
:year-short: jaro
|
174
174
|
:zone: horzono
|
175
|
-
:zone-narrow:
|
176
|
-
:zone-short:
|
175
|
+
:zone-narrow: horzono
|
176
|
+
:zone-short: horzono
|
177
177
|
:formats:
|
178
178
|
:date:
|
179
179
|
:full:
|
@@ -218,18 +218,18 @@
|
|
218
218
|
8: aŭg
|
219
219
|
9: sep
|
220
220
|
:narrow:
|
221
|
-
1:
|
222
|
-
10:
|
223
|
-
11: "
|
224
|
-
12:
|
225
|
-
2:
|
226
|
-
3:
|
227
|
-
4:
|
228
|
-
5:
|
229
|
-
6:
|
230
|
-
7:
|
231
|
-
8:
|
232
|
-
9:
|
221
|
+
1: J
|
222
|
+
10: O
|
223
|
+
11: "N"
|
224
|
+
12: D
|
225
|
+
2: F
|
226
|
+
3: M
|
227
|
+
4: A
|
228
|
+
5: M
|
229
|
+
6: J
|
230
|
+
7: J
|
231
|
+
8: A
|
232
|
+
9: S
|
233
233
|
:wide:
|
234
234
|
1: januaro
|
235
235
|
10: oktobro
|
@@ -245,18 +245,18 @@
|
|
245
245
|
9: septembro
|
246
246
|
:stand-alone:
|
247
247
|
:abbreviated:
|
248
|
-
1:
|
249
|
-
10:
|
250
|
-
11:
|
251
|
-
12:
|
252
|
-
2:
|
253
|
-
3:
|
254
|
-
4:
|
255
|
-
5:
|
256
|
-
6:
|
257
|
-
7:
|
258
|
-
8:
|
259
|
-
9:
|
248
|
+
1: jan
|
249
|
+
10: okt
|
250
|
+
11: nov
|
251
|
+
12: dec
|
252
|
+
2: feb
|
253
|
+
3: mar
|
254
|
+
4: apr
|
255
|
+
5: maj
|
256
|
+
6: jun
|
257
|
+
7: jul
|
258
|
+
8: aŭg
|
259
|
+
9: sep
|
260
260
|
:narrow:
|
261
261
|
1: J
|
262
262
|
10: O
|
@@ -296,14 +296,14 @@
|
|
296
296
|
:pm: ptm
|
297
297
|
:stand-alone:
|
298
298
|
:abbreviated:
|
299
|
-
:am:
|
300
|
-
:pm:
|
299
|
+
:am: atm
|
300
|
+
:pm: ptm
|
301
301
|
:narrow:
|
302
|
-
:am:
|
303
|
-
:pm:
|
302
|
+
:am: atm
|
303
|
+
:pm: ptm
|
304
304
|
:wide:
|
305
|
-
:am:
|
306
|
-
:pm:
|
305
|
+
:am: atm
|
306
|
+
:pm: ptm
|
307
307
|
:quarters:
|
308
308
|
:format:
|
309
309
|
:abbreviated:
|
@@ -323,10 +323,10 @@
|
|
323
323
|
4: "4-a kvaronjaro"
|
324
324
|
:stand-alone:
|
325
325
|
:abbreviated:
|
326
|
-
1:
|
327
|
-
2:
|
328
|
-
3:
|
329
|
-
4:
|
326
|
+
1: K1
|
327
|
+
2: K2
|
328
|
+
3: K3
|
329
|
+
4: K4
|
330
330
|
:narrow:
|
331
331
|
1: "1"
|
332
332
|
2: "2"
|
@@ -289,15 +289,15 @@
|
|
289
289
|
:am: r.n.
|
290
290
|
:pm: i.n.
|
291
291
|
:narrow:
|
292
|
-
:am:
|
293
|
-
:pm:
|
292
|
+
:am: r.n.
|
293
|
+
:pm: i.n.
|
294
294
|
:wide:
|
295
295
|
:am: r.n.
|
296
296
|
:pm: i.n.
|
297
297
|
:stand-alone:
|
298
298
|
:abbreviated:
|
299
|
-
:am:
|
300
|
-
:pm:
|
299
|
+
:am: r.n.
|
300
|
+
:pm: i.n.
|
301
301
|
:narrow:
|
302
302
|
:am: r.n.
|
303
303
|
:pm: i.n.
|
@@ -75,13 +75,13 @@
|
|
75
75
|
:tue: T
|
76
76
|
:wed: Q
|
77
77
|
:short:
|
78
|
-
:fri:
|
79
|
-
:mon:
|
80
|
-
:sat:
|
81
|
-
:sun:
|
82
|
-
:thu:
|
83
|
-
:tue:
|
84
|
-
:wed:
|
78
|
+
:fri: sex.
|
79
|
+
:mon: seg.
|
80
|
+
:sat: sáb.
|
81
|
+
:sun: dom.
|
82
|
+
:thu: qui.
|
83
|
+
:tue: ter.
|
84
|
+
:wed: qua.
|
85
85
|
:wide:
|
86
86
|
:fri: sexta-feira
|
87
87
|
:mon: segunda-feira
|
@@ -92,13 +92,13 @@
|
|
92
92
|
:wed: quarta-feira
|
93
93
|
:stand-alone:
|
94
94
|
:abbreviated:
|
95
|
-
:fri:
|
96
|
-
:mon:
|
97
|
-
:sat:
|
98
|
-
:sun:
|
99
|
-
:thu:
|
100
|
-
:tue:
|
101
|
-
:wed:
|
95
|
+
:fri: sex.
|
96
|
+
:mon: seg.
|
97
|
+
:sat: sáb.
|
98
|
+
:sun: dom.
|
99
|
+
:thu: qui.
|
100
|
+
:tue: ter.
|
101
|
+
:wed: qua.
|
102
102
|
:narrow:
|
103
103
|
:fri: S
|
104
104
|
:mon: S
|
@@ -108,13 +108,13 @@
|
|
108
108
|
:tue: T
|
109
109
|
:wed: Q
|
110
110
|
:short:
|
111
|
-
:fri:
|
112
|
-
:mon:
|
113
|
-
:sat:
|
114
|
-
:sun:
|
115
|
-
:thu:
|
116
|
-
:tue:
|
117
|
-
:wed:
|
111
|
+
:fri: sex.
|
112
|
+
:mon: seg.
|
113
|
+
:sat: sáb.
|
114
|
+
:sun: dom.
|
115
|
+
:thu: qui.
|
116
|
+
:tue: ter.
|
117
|
+
:wed: qua.
|
118
118
|
:wide:
|
119
119
|
:fri: sexta-feira
|
120
120
|
:mon: segunda-feira
|
@@ -250,18 +250,18 @@
|
|
250
250
|
9: setembro
|
251
251
|
:stand-alone:
|
252
252
|
:abbreviated:
|
253
|
-
1:
|
254
|
-
10:
|
255
|
-
11:
|
256
|
-
12:
|
257
|
-
2:
|
258
|
-
3:
|
259
|
-
4:
|
260
|
-
5:
|
261
|
-
6:
|
262
|
-
7:
|
263
|
-
8:
|
264
|
-
9:
|
253
|
+
1: jan.
|
254
|
+
10: out.
|
255
|
+
11: nov.
|
256
|
+
12: dez.
|
257
|
+
2: fev.
|
258
|
+
3: mar.
|
259
|
+
4: abr.
|
260
|
+
5: mai.
|
261
|
+
6: jun.
|
262
|
+
7: jul.
|
263
|
+
8: ago.
|
264
|
+
9: set.
|
265
265
|
:narrow:
|
266
266
|
1: J
|
267
267
|
10: O
|
@@ -109,13 +109,13 @@
|
|
109
109
|
:tue: T
|
110
110
|
:wed: Q
|
111
111
|
:short:
|
112
|
-
:fri:
|
113
|
-
:mon:
|
114
|
-
:sat:
|
115
|
-
:sun:
|
116
|
-
:thu:
|
117
|
-
:tue:
|
118
|
-
:wed:
|
112
|
+
:fri: sex.
|
113
|
+
:mon: seg.
|
114
|
+
:sat: sáb.
|
115
|
+
:sun: dom.
|
116
|
+
:thu: qui.
|
117
|
+
:tue: ter.
|
118
|
+
:wed: qua.
|
119
119
|
:wide:
|
120
120
|
:fri: sexta-feira
|
121
121
|
:mon: segunda-feira
|
@@ -251,18 +251,18 @@
|
|
251
251
|
9: setembro
|
252
252
|
:stand-alone:
|
253
253
|
:abbreviated:
|
254
|
-
1:
|
255
|
-
10:
|
256
|
-
11:
|
257
|
-
12:
|
258
|
-
2:
|
259
|
-
3:
|
260
|
-
4:
|
261
|
-
5:
|
262
|
-
6:
|
263
|
-
7:
|
264
|
-
8:
|
265
|
-
9:
|
254
|
+
1: jan.
|
255
|
+
10: out.
|
256
|
+
11: nov.
|
257
|
+
12: dez.
|
258
|
+
2: fev.
|
259
|
+
3: mar.
|
260
|
+
4: abr.
|
261
|
+
5: mai.
|
262
|
+
6: jun.
|
263
|
+
7: jul.
|
264
|
+
8: ago.
|
265
|
+
9: set.
|
266
266
|
:narrow:
|
267
267
|
1: J
|
268
268
|
10: O
|
@@ -70,13 +70,13 @@
|
|
70
70
|
:tue: T
|
71
71
|
:wed: W
|
72
72
|
:short:
|
73
|
-
:fri:
|
74
|
-
:mon:
|
75
|
-
:sat:
|
76
|
-
:sun:
|
77
|
-
:thu:
|
78
|
-
:tue:
|
79
|
-
:wed:
|
73
|
+
:fri: Hla
|
74
|
+
:mon: Mvu
|
75
|
+
:sat: Mgq
|
76
|
+
:sun: Caw
|
77
|
+
:thu: Sin
|
78
|
+
:tue: Bin
|
79
|
+
:wed: Tha
|
80
80
|
:wide:
|
81
81
|
:fri: Lwesihlanu
|
82
82
|
:mon: Mvulo
|
@@ -103,13 +103,13 @@
|
|
103
103
|
:tue: T
|
104
104
|
:wed: W
|
105
105
|
:short:
|
106
|
-
:fri:
|
107
|
-
:mon:
|
108
|
-
:sat:
|
109
|
-
:sun:
|
110
|
-
:thu:
|
111
|
-
:tue:
|
112
|
-
:wed:
|
106
|
+
:fri: Hla
|
107
|
+
:mon: Mvu
|
108
|
+
:sat: Mgq
|
109
|
+
:sun: Caw
|
110
|
+
:thu: Sin
|
111
|
+
:tue: Bin
|
112
|
+
:wed: Tha
|
113
113
|
:wide:
|
114
114
|
:fri: Lwesihlanu
|
115
115
|
:mon: Mvulo
|
@@ -167,7 +167,7 @@
|
|
167
167
|
:weekday-short: "Usuku evikini"
|
168
168
|
:weekdayOfMonth: "usuku lwenyanga"
|
169
169
|
:weekdayOfMonth-narrow: "usuku lwenyanga"
|
170
|
-
:weekdayOfMonth-short: "
|
170
|
+
:weekdayOfMonth-short: "usuku lwenyanga"
|
171
171
|
:year: Unyaka
|
172
172
|
:year-narrow: Unyaka
|
173
173
|
:year-short: Unyaka
|
@@ -13,6 +13,7 @@ describe TwitterCldr::Shared::Calendar do
|
|
13
13
|
# clear cache for each test
|
14
14
|
described_class.send(:class_variable_set, :@@calendar_cache, {})
|
15
15
|
described_class.send(:class_variable_set, :@@field_cache, {})
|
16
|
+
described_class.send(:class_variable_set, :@@day_periods_cache, {})
|
16
17
|
end
|
17
18
|
|
18
19
|
before(:each) { clear_cache }
|
@@ -62,6 +63,22 @@ describe TwitterCldr::Shared::Calendar do
|
|
62
63
|
it 'returns nil if invalid names form is passed' do
|
63
64
|
expect(calendar.months(:wat)).to eq(nil)
|
64
65
|
end
|
66
|
+
|
67
|
+
context 'with English locale' do
|
68
|
+
let(:calendar) { described_class.new(:en) }
|
69
|
+
|
70
|
+
it 'supports wide names form' do
|
71
|
+
expect(calendar.months(:wide)).to eq(%w[January February March April May June July August September October November December])
|
72
|
+
end
|
73
|
+
|
74
|
+
it 'supports narrow names form' do
|
75
|
+
expect(calendar.months(:narrow)).to eq(%w[J F M A M J J A S O N D])
|
76
|
+
end
|
77
|
+
|
78
|
+
it 'supports abbreviated names form' do
|
79
|
+
expect(calendar.months(:abbreviated)).to eq(%w[Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec])
|
80
|
+
end
|
81
|
+
end
|
65
82
|
end
|
66
83
|
|
67
84
|
context 'when some data is missing' do
|
@@ -23,7 +23,7 @@ describe TwitterCldr::Shared::Currencies do
|
|
23
23
|
data = described_class.for_code("PEN")
|
24
24
|
expect(data).to be_a(Hash)
|
25
25
|
expect(data).to include(
|
26
|
-
name: "Peruvian
|
26
|
+
name: "Peruvian Sol",
|
27
27
|
currency: :PEN,
|
28
28
|
symbol: "S/.",
|
29
29
|
cldr_symbol: "PEN"
|
@@ -34,7 +34,7 @@ describe TwitterCldr::Shared::Currencies do
|
|
34
34
|
data = described_class.for_code("CAD")
|
35
35
|
expect(data).to be_a(Hash)
|
36
36
|
expect(data).to include(
|
37
|
-
name: "Canadian
|
37
|
+
name: "Canadian Dollar",
|
38
38
|
currency: :CAD,
|
39
39
|
symbol: "$",
|
40
40
|
cldr_symbol: "CA$"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitter_cldr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.11.
|
4
|
+
version: 6.11.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cameron Dutro
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: camertron-eprun
|
@@ -3987,7 +3987,7 @@ homepage: https://twitter.com
|
|
3987
3987
|
licenses:
|
3988
3988
|
- Apache-2.0
|
3989
3989
|
metadata: {}
|
3990
|
-
post_install_message:
|
3990
|
+
post_install_message:
|
3991
3991
|
rdoc_options: []
|
3992
3992
|
require_paths:
|
3993
3993
|
- lib
|
@@ -4002,9 +4002,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
4002
4002
|
- !ruby/object:Gem::Version
|
4003
4003
|
version: '0'
|
4004
4004
|
requirements: []
|
4005
|
-
|
4006
|
-
|
4007
|
-
signing_key:
|
4005
|
+
rubygems_version: 3.3.3
|
4006
|
+
signing_key:
|
4008
4007
|
specification_version: 4
|
4009
4008
|
summary: Ruby implementation of the ICU (International Components for Unicode) that
|
4010
4009
|
uses the Common Locale Data Repository to format dates, plurals, and more.
|