twitter_cldr 6.1.0 → 6.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/twitter_cldr/resources/timezones_importer.rb +11 -1
- data/lib/twitter_cldr/timezones/generic_location.rb +6 -1
- data/lib/twitter_cldr/version.rb +1 -1
- data/resources/collation/tailoring/eo.yml +16 -0
- data/resources/collation/tries/eo.dump +0 -0
- data/resources/locales/eo/calendars.yml +245 -0
- data/resources/locales/eo/currencies.yml +211 -0
- data/resources/locales/eo/day_periods.yml +32 -0
- data/resources/locales/eo/fields.yml +140 -0
- data/resources/locales/eo/languages.yml +156 -0
- data/resources/locales/eo/layout.yml +5 -0
- data/resources/locales/eo/lists.yml +22 -0
- data/resources/locales/eo/numbers.yml +367 -0
- data/resources/locales/eo/plural_rules.yml +7 -0
- data/resources/locales/eo/plurals.yml +14 -0
- data/resources/locales/eo/rbnf.yml +112 -0
- data/resources/locales/eo/territories.yml +226 -0
- data/resources/locales/eo/timezones.yml +85 -0
- data/resources/locales/eo/units.yml +429 -0
- data/resources/supported_locales.yml +1 -0
- data/spec/formatters/numbers/rbnf/locales/eo/rbnf_test.yml +706 -0
- data/spec/timezones/tests/eo.yml +12475 -0
- data/spec/timezones/timezone_spec.rb +7 -1
- metadata +20 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a89de031234bf436d6414e0e7b0a154e4367d74232c5203c013f8b2f620d634
|
4
|
+
data.tar.gz: 19d83af16320a3be20657a1f4a5cd5839c316ab511c0f66660ad90961fde2e59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa637557b34ba7fab45ce409cde65e5925ad527d0235f9ea776bb53277615867c7c90fe9f4cfdbf7f0d3b01878f5a2d31ddda9ae62b774291a1ebc02d0e1faac
|
7
|
+
data.tar.gz: 69c47ab9d4817318ffe2320d89fc2d0fbf226c0a9a38233c3e042b150d4f05312c023adf6a25f3b54164f8a86385d4049cba3b1b594d6780b17b6e4db87bf097
|
@@ -103,6 +103,8 @@ module TwitterCldr
|
|
103
103
|
def formats
|
104
104
|
@formats ||= doc.xpath('ldml/dates/timeZoneNames/*').inject({}) do |result, format|
|
105
105
|
if format.name.end_with?('Format')
|
106
|
+
next if unconfirmed_draft?(format)
|
107
|
+
|
106
108
|
underscored_name = format.name.gsub(/([a-z])([A-Z])/, '\1_\2').downcase + 's'
|
107
109
|
result[underscored_name] ||= {}
|
108
110
|
|
@@ -128,7 +130,9 @@ module TwitterCldr
|
|
128
130
|
short = nodes_to_hash(zone.xpath('short/*'))
|
129
131
|
result[type][:short] = short unless short.empty?
|
130
132
|
city = zone.xpath('exemplarCity').first
|
131
|
-
|
133
|
+
if city && !unconfirmed_draft?(city)
|
134
|
+
result[type][:city] = city.content
|
135
|
+
end
|
132
136
|
result
|
133
137
|
end
|
134
138
|
end
|
@@ -155,6 +159,12 @@ module TwitterCldr
|
|
155
159
|
end
|
156
160
|
end
|
157
161
|
|
162
|
+
def unconfirmed_draft?(node)
|
163
|
+
node &&
|
164
|
+
node.attributes['draft'] &&
|
165
|
+
node.attributes['draft'].value == 'unconfirmed'
|
166
|
+
end
|
167
|
+
|
158
168
|
def doc
|
159
169
|
@doc ||= begin
|
160
170
|
locale_fs = locale.to_s.gsub('-', '_')
|
@@ -8,6 +8,7 @@ module TwitterCldr
|
|
8
8
|
class GenericLocation < Location
|
9
9
|
DEFAULT_CITY_EXCLUSION_PATTERN = /Etc\/.*|SystemV\/.*|.*\/Riyadh8[7-9]/
|
10
10
|
DST_CHECK_RANGE = 184 * 24 * 60 * 60
|
11
|
+
UNKNOWN_DEFAULT = 'Unknown'.freeze
|
11
12
|
FORMATS = [
|
12
13
|
:generic_location,
|
13
14
|
:generic_short,
|
@@ -159,7 +160,11 @@ module TwitterCldr
|
|
159
160
|
end
|
160
161
|
|
161
162
|
def exemplar_city
|
162
|
-
@exemplar_city ||=
|
163
|
+
@exemplar_city ||=
|
164
|
+
timezone_data[:city] ||
|
165
|
+
default_exemplar_city ||
|
166
|
+
unknown_city ||
|
167
|
+
UNKNOWN_DEFAULT
|
163
168
|
end
|
164
169
|
|
165
170
|
def tz_name_for(fmt, flavor)
|
data/lib/twitter_cldr/version.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
---
|
2
|
+
:collator_options: {}
|
3
|
+
:tailored_table: |-
|
4
|
+
0063 0302; [2C04, 5, 5]
|
5
|
+
0043 0302; [2C04, 5, 86]
|
6
|
+
0067 0302; [3404, 5, 5]
|
7
|
+
0047 0302; [3404, 5, 86]
|
8
|
+
0068 0302; [3604, 5, 5]
|
9
|
+
0048 0302; [3604, 5, 86]
|
10
|
+
006A 0302; [3A04, 5, 5]
|
11
|
+
004A 0302; [3A04, 5, 86]
|
12
|
+
0073 0302; [4C04, 5, 5]
|
13
|
+
0053 0302; [4C04, 5, 86]
|
14
|
+
0075 0306; [5004, 5, 5]
|
15
|
+
0055 0306; [5004, 5, 86]
|
16
|
+
:suppressed_contractions: ''
|
Binary file
|
@@ -0,0 +1,245 @@
|
|
1
|
+
---
|
2
|
+
:eo:
|
3
|
+
:calendars:
|
4
|
+
:gregorian:
|
5
|
+
:additional_formats:
|
6
|
+
:Bh: "h B"
|
7
|
+
:Bhm: "h:mm B"
|
8
|
+
:Bhms: "h:mm:ss B"
|
9
|
+
:E: ccc
|
10
|
+
:EBhm: "E h:mm B"
|
11
|
+
:EBhms: "E h:mm:ss B"
|
12
|
+
:EHm: "E HH:mm"
|
13
|
+
:EHms: "E HH:mm:ss"
|
14
|
+
:Ed: "E d"
|
15
|
+
:Ehm: "E h:mm a"
|
16
|
+
:Ehms: "E h:mm:ss a"
|
17
|
+
:Gy: "G y"
|
18
|
+
:GyMMM: "G y MMM"
|
19
|
+
:GyMMMEd: "G y MMM d, E"
|
20
|
+
:GyMMMd: "G y MMM d"
|
21
|
+
:H: HH
|
22
|
+
:Hm: "HH:mm"
|
23
|
+
:Hms: "HH:mm:ss"
|
24
|
+
:Hmsv: "HH:mm:ss v"
|
25
|
+
:Hmv: "HH:mm v"
|
26
|
+
:M: L
|
27
|
+
:MEd: "MM-dd, E"
|
28
|
+
:MMM: LLL
|
29
|
+
:MMMEd: "E 'la' d-'an' 'de' MMM"
|
30
|
+
:MMMMW: "'week' W 'of' MMMM"
|
31
|
+
:MMMMd: "MMMM d"
|
32
|
+
:MMMd: "d MMM"
|
33
|
+
:Md: MM-dd
|
34
|
+
:d: d
|
35
|
+
:h: "h a"
|
36
|
+
:hm: "h:mm a"
|
37
|
+
:hms: "h:mm:ss a"
|
38
|
+
:hmsv: "h:mm:ss a v"
|
39
|
+
:hmv: "h:mm a v"
|
40
|
+
:ms: "mm:ss"
|
41
|
+
? !ruby/symbol "y"
|
42
|
+
: "y"
|
43
|
+
:yM: y-MM
|
44
|
+
:yMEd: "y-MM-dd, E"
|
45
|
+
:yMMM: "MMM y"
|
46
|
+
:yMMMEd: "E 'la' d-'an' 'de' MMM y"
|
47
|
+
:yMMMM: "y MMMM"
|
48
|
+
:yMMMd: "d MMM y"
|
49
|
+
:yMd: y-MM-dd
|
50
|
+
:yQQQ: "QQQ y"
|
51
|
+
:yQQQQ: "QQQQ y"
|
52
|
+
:yw: "'week' w 'of' Y"
|
53
|
+
:days:
|
54
|
+
:format:
|
55
|
+
:abbreviated:
|
56
|
+
:fri: ve
|
57
|
+
:mon: lu
|
58
|
+
:sat: sa
|
59
|
+
:sun: di
|
60
|
+
:thu: ĵa
|
61
|
+
:tue: ma
|
62
|
+
:wed: me
|
63
|
+
:narrow: :calendars.gregorian.days.stand-alone.narrow
|
64
|
+
:short: :calendars.gregorian.days.format.abbreviated
|
65
|
+
:wide:
|
66
|
+
:fri: vendredo
|
67
|
+
:mon: lundo
|
68
|
+
:sat: sabato
|
69
|
+
:sun: dimanĉo
|
70
|
+
:thu: ĵaŭdo
|
71
|
+
:tue: mardo
|
72
|
+
:wed: merkredo
|
73
|
+
:stand-alone:
|
74
|
+
:abbreviated: :calendars.gregorian.days.format.abbreviated
|
75
|
+
:narrow:
|
76
|
+
:fri: V
|
77
|
+
:mon: L
|
78
|
+
:sat: S
|
79
|
+
:sun: D
|
80
|
+
:thu: Ĵ
|
81
|
+
:tue: M
|
82
|
+
:wed: M
|
83
|
+
:short: :calendars.gregorian.days.format.short
|
84
|
+
:wide:
|
85
|
+
:fri: vendredo
|
86
|
+
:mon: lundo
|
87
|
+
:sat: sabato
|
88
|
+
:sun: dimanĉo
|
89
|
+
:thu: ĵaŭdo
|
90
|
+
:tue: mardo
|
91
|
+
:wed: merkredo
|
92
|
+
:eras:
|
93
|
+
:abbr:
|
94
|
+
0: a.K.E.
|
95
|
+
1: K.E.
|
96
|
+
:name:
|
97
|
+
0: "antaŭ Komuna Erao"
|
98
|
+
1: "Komuna Erao"
|
99
|
+
:narrow:
|
100
|
+
0: aKE
|
101
|
+
1: KE
|
102
|
+
:fields:
|
103
|
+
:day: tago
|
104
|
+
:dayOfYear: "Day Of Year"
|
105
|
+
:dayperiod: atm/ptm
|
106
|
+
:era: erao
|
107
|
+
:hour: horo
|
108
|
+
:hour-narrow: h
|
109
|
+
:minute: minuto
|
110
|
+
:minute-narrow: m
|
111
|
+
:month: monato
|
112
|
+
:quarter: kvaronjaro
|
113
|
+
:second: sekundo
|
114
|
+
:second-narrow: s
|
115
|
+
:week: semajno
|
116
|
+
:weekOfMonth: "Week Of Month"
|
117
|
+
:weekday: "tago de la semajno"
|
118
|
+
:weekdayOfMonth: "Weekday Of Month"
|
119
|
+
:year: jaro
|
120
|
+
:zone: horzono
|
121
|
+
:formats:
|
122
|
+
:date:
|
123
|
+
:full:
|
124
|
+
:pattern: "EEEE, d-'a' 'de' MMMM y"
|
125
|
+
:long:
|
126
|
+
:pattern: y-MMMM-dd
|
127
|
+
:medium:
|
128
|
+
:pattern: y-MMM-dd
|
129
|
+
:short:
|
130
|
+
:pattern: yy-MM-dd
|
131
|
+
:datetime:
|
132
|
+
:full:
|
133
|
+
:pattern: "{{date}} {{time}}"
|
134
|
+
:long:
|
135
|
+
:pattern: "{{date}} {{time}}"
|
136
|
+
:medium:
|
137
|
+
:pattern: "{{date}} {{time}}"
|
138
|
+
:short:
|
139
|
+
:pattern: "{{date}} {{time}}"
|
140
|
+
:time:
|
141
|
+
:full:
|
142
|
+
:pattern: "H-'a' 'horo' 'kaj' m:ss zzzz"
|
143
|
+
:long:
|
144
|
+
:pattern: "HH:mm:ss z"
|
145
|
+
:medium:
|
146
|
+
:pattern: "HH:mm:ss"
|
147
|
+
:short:
|
148
|
+
:pattern: "HH:mm"
|
149
|
+
:months:
|
150
|
+
:format:
|
151
|
+
:abbreviated:
|
152
|
+
1: jan
|
153
|
+
10: okt
|
154
|
+
11: nov
|
155
|
+
12: dec
|
156
|
+
2: feb
|
157
|
+
3: mar
|
158
|
+
4: apr
|
159
|
+
5: maj
|
160
|
+
6: jun
|
161
|
+
7: jul
|
162
|
+
8: aŭg
|
163
|
+
9: sep
|
164
|
+
:narrow: :calendars.gregorian.months.stand-alone.narrow
|
165
|
+
:wide:
|
166
|
+
1: januaro
|
167
|
+
10: oktobro
|
168
|
+
11: novembro
|
169
|
+
12: decembro
|
170
|
+
2: februaro
|
171
|
+
3: marto
|
172
|
+
4: aprilo
|
173
|
+
5: majo
|
174
|
+
6: junio
|
175
|
+
7: julio
|
176
|
+
8: aŭgusto
|
177
|
+
9: septembro
|
178
|
+
:stand-alone:
|
179
|
+
:abbreviated: :calendars.gregorian.months.format.abbreviated
|
180
|
+
:narrow:
|
181
|
+
1: J
|
182
|
+
10: O
|
183
|
+
11: "N"
|
184
|
+
12: D
|
185
|
+
2: F
|
186
|
+
3: M
|
187
|
+
4: A
|
188
|
+
5: M
|
189
|
+
6: J
|
190
|
+
7: J
|
191
|
+
8: A
|
192
|
+
9: S
|
193
|
+
:wide:
|
194
|
+
1: januaro
|
195
|
+
10: oktobro
|
196
|
+
11: novembro
|
197
|
+
12: decembro
|
198
|
+
2: februaro
|
199
|
+
3: marto
|
200
|
+
4: aprilo
|
201
|
+
5: majo
|
202
|
+
6: junio
|
203
|
+
7: julio
|
204
|
+
8: aŭgusto
|
205
|
+
9: septembro
|
206
|
+
:periods:
|
207
|
+
:format:
|
208
|
+
:abbreviated:
|
209
|
+
:am: atm
|
210
|
+
:pm: ptm
|
211
|
+
:narrow:
|
212
|
+
:am: a
|
213
|
+
:pm: p
|
214
|
+
:wide:
|
215
|
+
:am: atm
|
216
|
+
:pm: ptm
|
217
|
+
:stand-alone:
|
218
|
+
:abbreviated: :calendars.gregorian.dayPeriods.format.abbreviated
|
219
|
+
:narrow: :calendars.gregorian.dayPeriods.stand-alone.abbreviated
|
220
|
+
:wide: :calendars.gregorian.dayPeriods.stand-alone.abbreviated
|
221
|
+
:quarters:
|
222
|
+
:format:
|
223
|
+
:abbreviated:
|
224
|
+
1: K1
|
225
|
+
2: K2
|
226
|
+
3: K3
|
227
|
+
4: K4
|
228
|
+
:narrow: :calendars.gregorian.quarters.stand-alone.narrow
|
229
|
+
:wide:
|
230
|
+
1: "1-a kvaronjaro"
|
231
|
+
2: "2-a kvaronjaro"
|
232
|
+
3: "3-a kvaronjaro"
|
233
|
+
4: "4-a kvaronjaro"
|
234
|
+
:stand-alone:
|
235
|
+
:abbreviated: :calendars.gregorian.quarters.format.abbreviated
|
236
|
+
:narrow:
|
237
|
+
1: "1"
|
238
|
+
2: "2"
|
239
|
+
3: "3"
|
240
|
+
4: "4"
|
241
|
+
:wide:
|
242
|
+
1: "1-a kvaronjaro"
|
243
|
+
2: "2-a kvaronjaro"
|
244
|
+
3: "3-a kvaronjaro"
|
245
|
+
4: "4-a kvaronjaro"
|
@@ -0,0 +1,211 @@
|
|
1
|
+
---
|
2
|
+
:eo:
|
3
|
+
:currencies:
|
4
|
+
:AOA:
|
5
|
+
:symbol: Kz
|
6
|
+
:ARS:
|
7
|
+
:symbol: $
|
8
|
+
:AUD:
|
9
|
+
:symbol: AU$
|
10
|
+
:BAM:
|
11
|
+
:symbol: KM
|
12
|
+
:BBD:
|
13
|
+
:symbol: $
|
14
|
+
:BDT:
|
15
|
+
:symbol: ৳
|
16
|
+
:BMD:
|
17
|
+
:symbol: $
|
18
|
+
:BND:
|
19
|
+
:symbol: $
|
20
|
+
:BOB:
|
21
|
+
:symbol: Bs
|
22
|
+
:BRL:
|
23
|
+
:symbol: R$
|
24
|
+
:BSD:
|
25
|
+
:symbol: $
|
26
|
+
:BWP:
|
27
|
+
:symbol: P
|
28
|
+
:BYN:
|
29
|
+
:symbol: р.
|
30
|
+
:BZD:
|
31
|
+
:symbol: $
|
32
|
+
:CAD:
|
33
|
+
:symbol: CA$
|
34
|
+
:CHF:
|
35
|
+
:symbol: CHF
|
36
|
+
:CLP:
|
37
|
+
:symbol: $
|
38
|
+
:CNY:
|
39
|
+
:symbol: CN¥
|
40
|
+
:COP:
|
41
|
+
:symbol: $
|
42
|
+
:CRC:
|
43
|
+
:symbol: ₡
|
44
|
+
:CUC:
|
45
|
+
:symbol: $
|
46
|
+
:CUP:
|
47
|
+
:symbol: $
|
48
|
+
:CZK:
|
49
|
+
:symbol: Kč
|
50
|
+
:DKK:
|
51
|
+
:symbol: DKK
|
52
|
+
:DOP:
|
53
|
+
:symbol: $
|
54
|
+
:EGP:
|
55
|
+
:symbol: E£
|
56
|
+
:ESP:
|
57
|
+
:symbol: ₧
|
58
|
+
:EUR:
|
59
|
+
:symbol: €
|
60
|
+
:FJD:
|
61
|
+
:symbol: $
|
62
|
+
:FKP:
|
63
|
+
:symbol: £
|
64
|
+
:GBP:
|
65
|
+
:symbol: £
|
66
|
+
:GEL:
|
67
|
+
:symbol: ₾
|
68
|
+
:GIP:
|
69
|
+
:symbol: £
|
70
|
+
:GNF:
|
71
|
+
:symbol: FG
|
72
|
+
:GTQ:
|
73
|
+
:symbol: Q
|
74
|
+
:GYD:
|
75
|
+
:symbol: $
|
76
|
+
:HKD:
|
77
|
+
:symbol: HK$
|
78
|
+
:HNL:
|
79
|
+
:symbol: L
|
80
|
+
:HRK:
|
81
|
+
:symbol: kn
|
82
|
+
:HUF:
|
83
|
+
:symbol: Ft
|
84
|
+
:IDR:
|
85
|
+
:symbol: IDR
|
86
|
+
:ILS:
|
87
|
+
:symbol: ₪
|
88
|
+
:INR:
|
89
|
+
:symbol: ₹
|
90
|
+
:ISK:
|
91
|
+
:symbol: kr
|
92
|
+
:JMD:
|
93
|
+
:symbol: $
|
94
|
+
:JPY:
|
95
|
+
:symbol: JP¥
|
96
|
+
:KHR:
|
97
|
+
:symbol: ៛
|
98
|
+
:KMF:
|
99
|
+
:symbol: CF
|
100
|
+
:KPW:
|
101
|
+
:symbol: ₩
|
102
|
+
:KRW:
|
103
|
+
:symbol: ₩
|
104
|
+
:KYD:
|
105
|
+
:symbol: $
|
106
|
+
:KZT:
|
107
|
+
:symbol: ₸
|
108
|
+
:LAK:
|
109
|
+
:symbol: ₭
|
110
|
+
:LBP:
|
111
|
+
:symbol: L£
|
112
|
+
:LKR:
|
113
|
+
:symbol: Rs
|
114
|
+
:LRD:
|
115
|
+
:symbol: $
|
116
|
+
:LTL:
|
117
|
+
:symbol: Lt
|
118
|
+
:LVL:
|
119
|
+
:symbol: Ls
|
120
|
+
:MGA:
|
121
|
+
:symbol: Ar
|
122
|
+
:MMK:
|
123
|
+
:symbol: K
|
124
|
+
:MNT:
|
125
|
+
:symbol: ₮
|
126
|
+
:MUR:
|
127
|
+
:symbol: Rs
|
128
|
+
:MXN:
|
129
|
+
:symbol: MX$
|
130
|
+
:MYR:
|
131
|
+
:symbol: RM
|
132
|
+
:NAD:
|
133
|
+
:symbol: $
|
134
|
+
:NGN:
|
135
|
+
:symbol: ₦
|
136
|
+
:NIO:
|
137
|
+
:symbol: C$
|
138
|
+
:NOK:
|
139
|
+
:symbol: NOK
|
140
|
+
:NPR:
|
141
|
+
:symbol: Rs
|
142
|
+
:NZD:
|
143
|
+
:symbol: NZ$
|
144
|
+
:PHP:
|
145
|
+
:symbol: ₱
|
146
|
+
:PKR:
|
147
|
+
:symbol: Rs
|
148
|
+
:PLN:
|
149
|
+
:symbol: PLN
|
150
|
+
:PYG:
|
151
|
+
:symbol: ₲
|
152
|
+
:RON:
|
153
|
+
:symbol: lei
|
154
|
+
:RUB:
|
155
|
+
:symbol: RUB
|
156
|
+
:RUR:
|
157
|
+
:symbol: р.
|
158
|
+
:RWF:
|
159
|
+
:symbol: RF
|
160
|
+
:SAR:
|
161
|
+
:symbol: SAR
|
162
|
+
:SBD:
|
163
|
+
:symbol: $
|
164
|
+
:SEK:
|
165
|
+
:symbol: SEK
|
166
|
+
:SGD:
|
167
|
+
:symbol: $
|
168
|
+
:SHP:
|
169
|
+
:symbol: £
|
170
|
+
:SRD:
|
171
|
+
:symbol: $
|
172
|
+
:SSP:
|
173
|
+
:symbol: £
|
174
|
+
:STN:
|
175
|
+
:symbol: Db
|
176
|
+
:SYP:
|
177
|
+
:symbol: £
|
178
|
+
:THB:
|
179
|
+
:symbol: ฿
|
180
|
+
:TOP:
|
181
|
+
:symbol: T$
|
182
|
+
:TRY:
|
183
|
+
:symbol: ₺
|
184
|
+
:TTD:
|
185
|
+
:symbol: $
|
186
|
+
:TWD:
|
187
|
+
:symbol: NT$
|
188
|
+
:UAH:
|
189
|
+
:symbol: ₴
|
190
|
+
:USD:
|
191
|
+
:symbol: US$
|
192
|
+
:UYU:
|
193
|
+
:symbol: $
|
194
|
+
:VEF:
|
195
|
+
:symbol: Bs
|
196
|
+
:VND:
|
197
|
+
:symbol: ₫
|
198
|
+
:XAF:
|
199
|
+
:symbol: FCFA
|
200
|
+
:XCD:
|
201
|
+
:symbol: EC$
|
202
|
+
:XOF:
|
203
|
+
:symbol: CFA
|
204
|
+
:XPF:
|
205
|
+
:symbol: CFPF
|
206
|
+
:XXX:
|
207
|
+
:symbol: ¤
|
208
|
+
:ZAR:
|
209
|
+
:symbol: ZAR
|
210
|
+
:ZMW:
|
211
|
+
:symbol: ZK
|