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.
Files changed (146) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/lib/twitter_cldr/data_readers/number_data_reader.rb +2 -0
  4. data/lib/twitter_cldr/formatters/numbers/currency_formatter.rb +2 -1
  5. data/lib/twitter_cldr/version.rb +1 -1
  6. data/resources/locales/ar/currencies.yml +155 -90
  7. data/resources/locales/ar/plurals.yml +4 -3
  8. data/resources/locales/be/currencies.yml +806 -82
  9. data/resources/locales/be/plurals.yml +8 -6
  10. data/resources/locales/bg/currencies.yml +1 -1
  11. data/resources/locales/bn/currencies.yml +8 -8
  12. data/resources/locales/bn/plurals.yml +2 -2
  13. data/resources/locales/bo/plurals.yml +1 -1
  14. data/resources/locales/ca/currencies.yml +1 -1
  15. data/resources/locales/ca/plurals.yml +2 -2
  16. data/resources/locales/cs/currencies.yml +5 -5
  17. data/resources/locales/cs/plurals.yml +3 -3
  18. data/resources/locales/cy/currencies.yml +1485 -782
  19. data/resources/locales/da/currencies.yml +4 -4
  20. data/resources/locales/da/plurals.yml +2 -2
  21. data/resources/locales/de/currencies.yml +2 -2
  22. data/resources/locales/de/plurals.yml +2 -2
  23. data/resources/locales/de-CH/currencies.yml +3 -3
  24. data/resources/locales/de-CH/plurals.yml +2 -2
  25. data/resources/locales/el/currencies.yml +2 -2
  26. data/resources/locales/en/currencies.yml +13 -12
  27. data/resources/locales/en/plurals.yml +5 -5
  28. data/resources/locales/en-150/calendars.yml +18 -17
  29. data/resources/locales/en-150/currencies.yml +27 -26
  30. data/resources/locales/en-150/plurals.yml +5 -5
  31. data/resources/locales/en-150/units.yml +122 -122
  32. data/resources/locales/en-AU/calendars.yml +17 -16
  33. data/resources/locales/en-AU/currencies.yml +68 -66
  34. data/resources/locales/en-AU/plurals.yml +5 -5
  35. data/resources/locales/en-AU/units.yml +76 -76
  36. data/resources/locales/en-CA/calendars.yml +1 -1
  37. data/resources/locales/en-CA/currencies.yml +26 -25
  38. data/resources/locales/en-CA/plurals.yml +5 -5
  39. data/resources/locales/en-CA/units.yml +82 -82
  40. data/resources/locales/en-GB/calendars.yml +18 -17
  41. data/resources/locales/en-GB/currencies.yml +106 -252
  42. data/resources/locales/en-GB/plurals.yml +5 -5
  43. data/resources/locales/en-GB/units.yml +122 -122
  44. data/resources/locales/en-IE/calendars.yml +12 -11
  45. data/resources/locales/en-IE/currencies.yml +27 -26
  46. data/resources/locales/en-IE/plurals.yml +5 -5
  47. data/resources/locales/en-IE/units.yml +122 -122
  48. data/resources/locales/en-SG/calendars.yml +17 -16
  49. data/resources/locales/en-SG/currencies.yml +27 -26
  50. data/resources/locales/en-SG/plurals.yml +5 -5
  51. data/resources/locales/en-SG/units.yml +122 -122
  52. data/resources/locales/en-ZA/calendars.yml +6 -5
  53. data/resources/locales/en-ZA/currencies.yml +27 -26
  54. data/resources/locales/en-ZA/plurals.yml +5 -5
  55. data/resources/locales/en-ZA/units.yml +122 -122
  56. data/resources/locales/es/currencies.yml +32 -32
  57. data/resources/locales/es-419/currencies.yml +25 -25
  58. data/resources/locales/es-CO/calendars.yml +55 -55
  59. data/resources/locales/es-CO/currencies.yml +40 -40
  60. data/resources/locales/es-CO/fields.yml +1 -1
  61. data/resources/locales/es-CO/languages.yml +6 -6
  62. data/resources/locales/es-CO/numbers.yml +12 -12
  63. data/resources/locales/es-CO/territories.yml +3 -3
  64. data/resources/locales/es-CO/units.yml +23 -23
  65. data/resources/locales/es-MX/calendars.yml +52 -51
  66. data/resources/locales/es-MX/currencies.yml +24 -51
  67. data/resources/locales/es-MX/fields.yml +2 -2
  68. data/resources/locales/es-MX/languages.yml +5 -5
  69. data/resources/locales/es-MX/numbers.yml +9 -9
  70. data/resources/locales/es-MX/territories.yml +1 -1
  71. data/resources/locales/es-MX/units.yml +15 -15
  72. data/resources/locales/es-US/calendars.yml +61 -60
  73. data/resources/locales/es-US/currencies.yml +40 -40
  74. data/resources/locales/es-US/fields.yml +2 -2
  75. data/resources/locales/es-US/languages.yml +6 -6
  76. data/resources/locales/es-US/numbers.yml +15 -15
  77. data/resources/locales/es-US/territories.yml +3 -3
  78. data/resources/locales/es-US/units.yml +36 -36
  79. data/resources/locales/fa/currencies.yml +296 -83
  80. data/resources/locales/fa/plurals.yml +2 -2
  81. data/resources/locales/fi/currencies.yml +9 -8
  82. data/resources/locales/fi/plurals.yml +2 -2
  83. data/resources/locales/fil/currencies.yml +109 -67
  84. data/resources/locales/fil/plurals.yml +4 -4
  85. data/resources/locales/fr/currencies.yml +5 -5
  86. data/resources/locales/fr-BE/currencies.yml +5 -5
  87. data/resources/locales/fr-CA/currencies.yml +27 -27
  88. data/resources/locales/fr-CH/currencies.yml +5 -5
  89. data/resources/locales/ga/plurals.yml +3 -3
  90. data/resources/locales/gl/currencies.yml +2 -2
  91. data/resources/locales/gl/plurals.yml +2 -2
  92. data/resources/locales/gu/currencies.yml +8 -8
  93. data/resources/locales/gu/plurals.yml +2 -2
  94. data/resources/locales/he/currencies.yml +4 -4
  95. data/resources/locales/he/plurals.yml +4 -3
  96. data/resources/locales/hi/currencies.yml +18 -18
  97. data/resources/locales/hi/plurals.yml +2 -2
  98. data/resources/locales/hr/plurals.yml +7 -4
  99. data/resources/locales/hu/currencies.yml +3 -3
  100. data/resources/locales/id/currencies.yml +5 -5
  101. data/resources/locales/is/currencies.yml +11 -11
  102. data/resources/locales/is/plurals.yml +2 -2
  103. data/resources/locales/it/currencies.yml +154 -154
  104. data/resources/locales/it/plurals.yml +2 -2
  105. data/resources/locales/it-CH/currencies.yml +154 -154
  106. data/resources/locales/it-CH/plurals.yml +2 -2
  107. data/resources/locales/ja/currencies.yml +30 -30
  108. data/resources/locales/kn/currencies.yml +27 -27
  109. data/resources/locales/kn/plurals.yml +2 -2
  110. data/resources/locales/ko/currencies.yml +3 -3
  111. data/resources/locales/lv/currencies.yml +3 -3
  112. data/resources/locales/lv/plurals.yml +6 -4
  113. data/resources/locales/mr/currencies.yml +31 -31
  114. data/resources/locales/mr/plurals.yml +2 -2
  115. data/resources/locales/ms/currencies.yml +3 -3
  116. data/resources/locales/nb/currencies.yml +13 -13
  117. data/resources/locales/nl/currencies.yml +11 -11
  118. data/resources/locales/nl/plurals.yml +2 -2
  119. data/resources/locales/pl/currencies.yml +3 -1
  120. data/resources/locales/pl/plurals.yml +8 -4
  121. data/resources/locales/pt/currencies.yml +3 -3
  122. data/resources/locales/pt/plurals.yml +2 -2
  123. data/resources/locales/ro/plurals.yml +4 -3
  124. data/resources/locales/ru/currencies.yml +2 -2
  125. data/resources/locales/ru/plurals.yml +8 -4
  126. data/resources/locales/sk/currencies.yml +17 -16
  127. data/resources/locales/sk/plurals.yml +3 -3
  128. data/resources/locales/sq/currencies.yml +22 -21
  129. data/resources/locales/sq/plurals.yml +2 -2
  130. data/resources/locales/sr/currencies.yml +53 -53
  131. data/resources/locales/sr/plurals.yml +7 -4
  132. data/resources/locales/sv/currencies.yml +4 -4
  133. data/resources/locales/sv/plurals.yml +4 -4
  134. data/resources/locales/ta/currencies.yml +34 -34
  135. data/resources/locales/uk/currencies.yml +12 -9
  136. data/resources/locales/uk/plurals.yml +10 -6
  137. data/resources/locales/ur/currencies.yml +8 -8
  138. data/resources/locales/ur/plurals.yml +2 -2
  139. data/resources/locales/vi/currencies.yml +155 -155
  140. data/resources/locales/zh/currencies.yml +1 -1
  141. data/resources/locales/zh-Hant/calendars.yml +0 -4
  142. data/resources/locales/zh-Hant/currencies.yml +16 -16
  143. data/resources/locales/zh-Hant/languages.yml +0 -13
  144. data/resources/locales/zh-Hant/units.yml +1 -2
  145. data/spec/localized/localized_number_spec.rb +7 -1
  146. metadata +2 -2
@@ -912,7 +912,7 @@
912
912
  :THB:
913
913
  :one: 泰铢
914
914
  :other: 泰铢
915
- :symbol: ฿
915
+ :symbol: THB
916
916
  :TJR:
917
917
  :one: 塔吉克斯坦卢布
918
918
  :other: 塔吉克斯坦卢布
@@ -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: NT$
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: 欽博拉索海蘭蓋丘亞文
@@ -239,8 +239,7 @@
239
239
  :other: "{0} 立方碼"
240
240
  :volume-cup:
241
241
  :other: "{0} 杯"
242
- :volume-cup-metric:
243
- :other: "{0}公制杯"
242
+ :volume-cup-metric: {}
244
243
  :volume-deciliter:
245
244
  :other: "{0} 公合"
246
245
  :volume-fluid-ounce:
@@ -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.1.0
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-17 00:00:00.000000000 Z
11
+ date: 2016-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: camertron-eprun