twitter_cldr 4.1.0 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/twitter_cldr/data_readers/number_data_reader.rb +2 -0
- data/lib/twitter_cldr/formatters/numbers/currency_formatter.rb +2 -1
- data/lib/twitter_cldr/version.rb +1 -1
- data/resources/locales/ar/currencies.yml +155 -90
- data/resources/locales/ar/plurals.yml +4 -3
- data/resources/locales/be/currencies.yml +806 -82
- data/resources/locales/be/plurals.yml +8 -6
- data/resources/locales/bg/currencies.yml +1 -1
- data/resources/locales/bn/currencies.yml +8 -8
- data/resources/locales/bn/plurals.yml +2 -2
- data/resources/locales/bo/plurals.yml +1 -1
- data/resources/locales/ca/currencies.yml +1 -1
- data/resources/locales/ca/plurals.yml +2 -2
- data/resources/locales/cs/currencies.yml +5 -5
- data/resources/locales/cs/plurals.yml +3 -3
- data/resources/locales/cy/currencies.yml +1485 -782
- data/resources/locales/da/currencies.yml +4 -4
- data/resources/locales/da/plurals.yml +2 -2
- data/resources/locales/de/currencies.yml +2 -2
- data/resources/locales/de/plurals.yml +2 -2
- data/resources/locales/de-CH/currencies.yml +3 -3
- data/resources/locales/de-CH/plurals.yml +2 -2
- data/resources/locales/el/currencies.yml +2 -2
- data/resources/locales/en/currencies.yml +13 -12
- data/resources/locales/en/plurals.yml +5 -5
- data/resources/locales/en-150/calendars.yml +18 -17
- data/resources/locales/en-150/currencies.yml +27 -26
- data/resources/locales/en-150/plurals.yml +5 -5
- data/resources/locales/en-150/units.yml +122 -122
- data/resources/locales/en-AU/calendars.yml +17 -16
- data/resources/locales/en-AU/currencies.yml +68 -66
- data/resources/locales/en-AU/plurals.yml +5 -5
- data/resources/locales/en-AU/units.yml +76 -76
- data/resources/locales/en-CA/calendars.yml +1 -1
- data/resources/locales/en-CA/currencies.yml +26 -25
- data/resources/locales/en-CA/plurals.yml +5 -5
- data/resources/locales/en-CA/units.yml +82 -82
- data/resources/locales/en-GB/calendars.yml +18 -17
- data/resources/locales/en-GB/currencies.yml +106 -252
- data/resources/locales/en-GB/plurals.yml +5 -5
- data/resources/locales/en-GB/units.yml +122 -122
- data/resources/locales/en-IE/calendars.yml +12 -11
- data/resources/locales/en-IE/currencies.yml +27 -26
- data/resources/locales/en-IE/plurals.yml +5 -5
- data/resources/locales/en-IE/units.yml +122 -122
- data/resources/locales/en-SG/calendars.yml +17 -16
- data/resources/locales/en-SG/currencies.yml +27 -26
- data/resources/locales/en-SG/plurals.yml +5 -5
- data/resources/locales/en-SG/units.yml +122 -122
- data/resources/locales/en-ZA/calendars.yml +6 -5
- data/resources/locales/en-ZA/currencies.yml +27 -26
- data/resources/locales/en-ZA/plurals.yml +5 -5
- data/resources/locales/en-ZA/units.yml +122 -122
- data/resources/locales/es/currencies.yml +32 -32
- data/resources/locales/es-419/currencies.yml +25 -25
- data/resources/locales/es-CO/calendars.yml +55 -55
- data/resources/locales/es-CO/currencies.yml +40 -40
- data/resources/locales/es-CO/fields.yml +1 -1
- data/resources/locales/es-CO/languages.yml +6 -6
- data/resources/locales/es-CO/numbers.yml +12 -12
- data/resources/locales/es-CO/territories.yml +3 -3
- data/resources/locales/es-CO/units.yml +23 -23
- data/resources/locales/es-MX/calendars.yml +52 -51
- data/resources/locales/es-MX/currencies.yml +24 -51
- data/resources/locales/es-MX/fields.yml +2 -2
- data/resources/locales/es-MX/languages.yml +5 -5
- data/resources/locales/es-MX/numbers.yml +9 -9
- data/resources/locales/es-MX/territories.yml +1 -1
- data/resources/locales/es-MX/units.yml +15 -15
- data/resources/locales/es-US/calendars.yml +61 -60
- data/resources/locales/es-US/currencies.yml +40 -40
- data/resources/locales/es-US/fields.yml +2 -2
- data/resources/locales/es-US/languages.yml +6 -6
- data/resources/locales/es-US/numbers.yml +15 -15
- data/resources/locales/es-US/territories.yml +3 -3
- data/resources/locales/es-US/units.yml +36 -36
- data/resources/locales/fa/currencies.yml +296 -83
- data/resources/locales/fa/plurals.yml +2 -2
- data/resources/locales/fi/currencies.yml +9 -8
- data/resources/locales/fi/plurals.yml +2 -2
- data/resources/locales/fil/currencies.yml +109 -67
- data/resources/locales/fil/plurals.yml +4 -4
- data/resources/locales/fr/currencies.yml +5 -5
- data/resources/locales/fr-BE/currencies.yml +5 -5
- data/resources/locales/fr-CA/currencies.yml +27 -27
- data/resources/locales/fr-CH/currencies.yml +5 -5
- data/resources/locales/ga/plurals.yml +3 -3
- data/resources/locales/gl/currencies.yml +2 -2
- data/resources/locales/gl/plurals.yml +2 -2
- data/resources/locales/gu/currencies.yml +8 -8
- data/resources/locales/gu/plurals.yml +2 -2
- data/resources/locales/he/currencies.yml +4 -4
- data/resources/locales/he/plurals.yml +4 -3
- data/resources/locales/hi/currencies.yml +18 -18
- data/resources/locales/hi/plurals.yml +2 -2
- data/resources/locales/hr/plurals.yml +7 -4
- data/resources/locales/hu/currencies.yml +3 -3
- data/resources/locales/id/currencies.yml +5 -5
- data/resources/locales/is/currencies.yml +11 -11
- data/resources/locales/is/plurals.yml +2 -2
- data/resources/locales/it/currencies.yml +154 -154
- data/resources/locales/it/plurals.yml +2 -2
- data/resources/locales/it-CH/currencies.yml +154 -154
- data/resources/locales/it-CH/plurals.yml +2 -2
- data/resources/locales/ja/currencies.yml +30 -30
- data/resources/locales/kn/currencies.yml +27 -27
- data/resources/locales/kn/plurals.yml +2 -2
- data/resources/locales/ko/currencies.yml +3 -3
- data/resources/locales/lv/currencies.yml +3 -3
- data/resources/locales/lv/plurals.yml +6 -4
- data/resources/locales/mr/currencies.yml +31 -31
- data/resources/locales/mr/plurals.yml +2 -2
- data/resources/locales/ms/currencies.yml +3 -3
- data/resources/locales/nb/currencies.yml +13 -13
- data/resources/locales/nl/currencies.yml +11 -11
- data/resources/locales/nl/plurals.yml +2 -2
- data/resources/locales/pl/currencies.yml +3 -1
- data/resources/locales/pl/plurals.yml +8 -4
- data/resources/locales/pt/currencies.yml +3 -3
- data/resources/locales/pt/plurals.yml +2 -2
- data/resources/locales/ro/plurals.yml +4 -3
- data/resources/locales/ru/currencies.yml +2 -2
- data/resources/locales/ru/plurals.yml +8 -4
- data/resources/locales/sk/currencies.yml +17 -16
- data/resources/locales/sk/plurals.yml +3 -3
- data/resources/locales/sq/currencies.yml +22 -21
- data/resources/locales/sq/plurals.yml +2 -2
- data/resources/locales/sr/currencies.yml +53 -53
- data/resources/locales/sr/plurals.yml +7 -4
- data/resources/locales/sv/currencies.yml +4 -4
- data/resources/locales/sv/plurals.yml +4 -4
- data/resources/locales/ta/currencies.yml +34 -34
- data/resources/locales/uk/currencies.yml +12 -9
- data/resources/locales/uk/plurals.yml +10 -6
- data/resources/locales/ur/currencies.yml +8 -8
- data/resources/locales/ur/plurals.yml +2 -2
- data/resources/locales/vi/currencies.yml +155 -155
- data/resources/locales/zh/currencies.yml +1 -1
- data/resources/locales/zh-Hant/calendars.yml +0 -4
- data/resources/locales/zh-Hant/currencies.yml +16 -16
- data/resources/locales/zh-Hant/languages.yml +0 -13
- data/resources/locales/zh-Hant/units.yml +1 -2
- data/spec/localized/localized_number_spec.rb +7 -1
- metadata +2 -2
@@ -296,13 +296,11 @@
|
|
296
296
|
:abbreviated:
|
297
297
|
:afternoon1: 中午
|
298
298
|
:afternoon2: 下午
|
299
|
-
:am: 上午
|
300
299
|
:evening1: 晚上
|
301
300
|
:midnight: 午夜
|
302
301
|
:morning1: 清晨
|
303
302
|
:morning2: 上午
|
304
303
|
:night1: 凌晨
|
305
|
-
:pm: 下午
|
306
304
|
:narrow:
|
307
305
|
:afternoon1: 中午
|
308
306
|
:afternoon2: 下午
|
@@ -316,13 +314,11 @@
|
|
316
314
|
:wide:
|
317
315
|
:afternoon1: 中午
|
318
316
|
:afternoon2: 下午
|
319
|
-
:am: 上午
|
320
317
|
:evening1: 晚上
|
321
318
|
:midnight: 午夜
|
322
319
|
:morning1: 清晨
|
323
320
|
:morning2: 上午
|
324
321
|
:night1: 凌晨
|
325
|
-
:pm: 下午
|
326
322
|
:quarters:
|
327
323
|
:format:
|
328
324
|
:abbreviated:
|
@@ -684,8 +684,8 @@
|
|
684
684
|
:other: 馬爾他鎊
|
685
685
|
:symbol: MTP
|
686
686
|
:MUR:
|
687
|
-
:one:
|
688
|
-
:other:
|
687
|
+
:one: 模里西斯盧比
|
688
|
+
:other: 模里西斯盧比
|
689
689
|
:symbol: MUR
|
690
690
|
:MVP:
|
691
691
|
:one: 馬爾地夫盧比
|
@@ -760,8 +760,8 @@
|
|
760
760
|
:other: 紐西蘭幣
|
761
761
|
:symbol: NZ$
|
762
762
|
:OMR:
|
763
|
-
:one:
|
764
|
-
:other:
|
763
|
+
:one: 阿曼里亞爾
|
764
|
+
:other: 阿曼里亞爾
|
765
765
|
:symbol: OMR
|
766
766
|
:PAB:
|
767
767
|
:one: 巴拿馬巴波亞
|
@@ -808,8 +808,8 @@
|
|
808
808
|
:other: 巴拉圭瓜拉尼
|
809
809
|
:symbol: PYG
|
810
810
|
:QAR:
|
811
|
-
:one:
|
812
|
-
:other:
|
811
|
+
:one: 卡達里亞爾
|
812
|
+
:other: 卡達里亞爾
|
813
813
|
:symbol: QAR
|
814
814
|
:RHD:
|
815
815
|
:one: 羅德西亞元
|
@@ -840,8 +840,8 @@
|
|
840
840
|
:other: 盧安達法郎
|
841
841
|
:symbol: RWF
|
842
842
|
:SAR:
|
843
|
-
:one:
|
844
|
-
:other:
|
843
|
+
:one: 沙烏地里亞爾
|
844
|
+
:other: 沙烏地里亞爾
|
845
845
|
:symbol: SAR
|
846
846
|
:SBD:
|
847
847
|
:one: 索羅門群島元
|
@@ -926,7 +926,7 @@
|
|
926
926
|
:THB:
|
927
927
|
:one: 泰銖
|
928
928
|
:other: 泰銖
|
929
|
-
:symbol:
|
929
|
+
:symbol: THB
|
930
930
|
:TJR:
|
931
931
|
:one: 塔吉克盧布
|
932
932
|
:other: 塔吉克盧布
|
@@ -968,9 +968,9 @@
|
|
968
968
|
:other: 千里達及托巴哥元
|
969
969
|
:symbol: TTD
|
970
970
|
:TWD:
|
971
|
-
:one:
|
972
|
-
:other:
|
973
|
-
:symbol:
|
971
|
+
:one: 新台幣
|
972
|
+
:other: 新台幣
|
973
|
+
:symbol: $
|
974
974
|
:TZS:
|
975
975
|
:one: 坦尚尼亞先令
|
976
976
|
:other: 坦尚尼亞先令
|
@@ -994,7 +994,7 @@
|
|
994
994
|
:USD:
|
995
995
|
:one: 美元
|
996
996
|
:other: 美元
|
997
|
-
:symbol: $
|
997
|
+
:symbol: US$
|
998
998
|
:USN:
|
999
999
|
:one: 美元(次日)
|
1000
1000
|
:other: 美元(次日)
|
@@ -1125,15 +1125,15 @@
|
|
1125
1125
|
:symbol: XUA
|
1126
1126
|
:XXX:
|
1127
1127
|
:one: 未知貨幣
|
1128
|
-
:other:
|
1128
|
+
:other: (未知貨幣)
|
1129
1129
|
:symbol: XXX
|
1130
1130
|
:YDD:
|
1131
1131
|
:one: 葉門第納爾
|
1132
1132
|
:other: 葉門第納爾
|
1133
1133
|
:symbol: YDD
|
1134
1134
|
:YER:
|
1135
|
-
:one:
|
1136
|
-
:other:
|
1135
|
+
:one: 葉門里亞爾
|
1136
|
+
:other: 葉門里亞爾
|
1137
1137
|
:symbol: YER
|
1138
1138
|
:YUD:
|
1139
1139
|
:one: 南斯拉夫第納爾硬幣
|
@@ -42,7 +42,6 @@
|
|
42
42
|
:awa: 阿瓦文
|
43
43
|
:ay: 艾馬拉文
|
44
44
|
:az: 亞塞拜然文
|
45
|
-
:az-Arab: 南阿塞拜疆文
|
46
45
|
:ba: 巴什客爾文
|
47
46
|
:bal: 俾路支文
|
48
47
|
:ban: 峇里文
|
@@ -117,7 +116,6 @@
|
|
117
116
|
:dar: 達爾格瓦文
|
118
117
|
:dav: 台塔文
|
119
118
|
:de: 德文
|
120
|
-
:de-AT: 奥地利德文
|
121
119
|
:de-CH: 高地德文(瑞士)
|
122
120
|
:del: 德拉瓦文
|
123
121
|
:den: 斯拉夫
|
@@ -143,16 +141,9 @@
|
|
143
141
|
:el: 希臘文
|
144
142
|
:elx: 埃蘭文
|
145
143
|
:en: 英文
|
146
|
-
:en-AU: 澳大利亚英文
|
147
|
-
:en-CA: 加拿大英文
|
148
|
-
:en-GB: 英式英文
|
149
|
-
:en-US: 美式英文
|
150
144
|
:enm: 中古英文
|
151
145
|
:eo: 世界文
|
152
146
|
:es: 西班牙文
|
153
|
-
:es-419: 拉丁美洲西班牙文
|
154
|
-
:es-ES: 欧洲西班牙文
|
155
|
-
:es-MX: 墨西哥西班牙文
|
156
147
|
:esu: 中尤皮克文
|
157
148
|
:et: 愛沙尼亞文
|
158
149
|
:eu: 巴斯克文
|
@@ -169,8 +160,6 @@
|
|
169
160
|
:fo: 法羅文
|
170
161
|
:fon: 豐文
|
171
162
|
:fr: 法文
|
172
|
-
:fr-CA: 加拿大法文
|
173
|
-
:fr-CH: 瑞士法文
|
174
163
|
:frc: 卡真法文
|
175
164
|
:frm: 中古法文
|
176
165
|
:fro: 古法文
|
@@ -437,8 +426,6 @@
|
|
437
426
|
:pro: 古普羅旺斯文
|
438
427
|
:ps: 普什圖文
|
439
428
|
:pt: 葡萄牙文
|
440
|
-
:pt-BR: 巴西葡萄牙文
|
441
|
-
:pt-PT: 欧洲葡萄牙文
|
442
429
|
:qu: 蓋楚瓦文
|
443
430
|
:quc: 基切文
|
444
431
|
:qug: 欽博拉索海蘭蓋丘亞文
|
@@ -112,6 +112,12 @@ describe LocalizedNumber do
|
|
112
112
|
it 'should not overwrite precision when explicitly passed' do
|
113
113
|
expect(number.to_s(precision: 1)).to eq("$10.0")
|
114
114
|
end
|
115
|
+
|
116
|
+
let(:number) { LocalizedNumber.new(10, :"en-AU", type: :currency) }
|
117
|
+
|
118
|
+
it "it should respect number's locale when picking currency symbol" do
|
119
|
+
expect(number.to_s(currency: "USD", use_cldr_symbol: true)).to eq("USD10.00")
|
120
|
+
end
|
115
121
|
end
|
116
122
|
|
117
123
|
context 'percentages' do
|
@@ -198,4 +204,4 @@ describe LocalizedNumber do
|
|
198
204
|
end
|
199
205
|
end
|
200
206
|
|
201
|
-
end
|
207
|
+
end
|
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: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cameron Dutro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: camertron-eprun
|