twitter_cldr 6.6.1 → 6.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/lib/twitter_cldr/formatters/list_formatter.rb +7 -1
  3. data/lib/twitter_cldr/resources/list_formats_importer.rb +37 -5
  4. data/lib/twitter_cldr/version.rb +1 -1
  5. data/resources/locales/af/lists.yml +18 -3
  6. data/resources/locales/ar/lists.yml +12 -0
  7. data/resources/locales/az/lists.yml +8 -0
  8. data/resources/locales/be/lists.yml +18 -3
  9. data/resources/locales/bg/lists.yml +17 -2
  10. data/resources/locales/bn/lists.yml +14 -2
  11. data/resources/locales/bo/lists.yml +42 -7
  12. data/resources/locales/bs/lists.yml +18 -3
  13. data/resources/locales/ca/lists.yml +12 -2
  14. data/resources/locales/cs/lists.yml +2 -0
  15. data/resources/locales/cy/lists.yml +12 -2
  16. data/resources/locales/da/lists.yml +10 -1
  17. data/resources/locales/de-AT/lists.yml +18 -3
  18. data/resources/locales/de-CH/lists.yml +18 -3
  19. data/resources/locales/de/lists.yml +18 -3
  20. data/resources/locales/el/lists.yml +14 -2
  21. data/resources/locales/en-001/lists.yml +8 -0
  22. data/resources/locales/en-150/lists.yml +8 -0
  23. data/resources/locales/en-AU/lists.yml +8 -0
  24. data/resources/locales/en-CA/lists.yml +8 -0
  25. data/resources/locales/en-GB/lists.yml +8 -0
  26. data/resources/locales/en-IE/lists.yml +8 -0
  27. data/resources/locales/en-IN/lists.yml +8 -0
  28. data/resources/locales/en-NZ/lists.yml +8 -0
  29. data/resources/locales/en-SG/lists.yml +8 -0
  30. data/resources/locales/en-US/lists.yml +12 -2
  31. data/resources/locales/en-ZA/lists.yml +8 -0
  32. data/resources/locales/en/lists.yml +12 -2
  33. data/resources/locales/eo/lists.yml +42 -7
  34. data/resources/locales/es-419/lists.yml +18 -3
  35. data/resources/locales/es-AR/lists.yml +18 -3
  36. data/resources/locales/es-CO/lists.yml +18 -3
  37. data/resources/locales/es-MX/lists.yml +18 -3
  38. data/resources/locales/es-US/lists.yml +18 -3
  39. data/resources/locales/es/lists.yml +18 -3
  40. data/resources/locales/et/lists.yml +14 -2
  41. data/resources/locales/eu/lists.yml +20 -3
  42. data/resources/locales/fa/lists.yml +6 -0
  43. data/resources/locales/fi/lists.yml +18 -3
  44. data/resources/locales/fil/lists.yml +16 -2
  45. data/resources/locales/fr-BE/lists.yml +12 -2
  46. data/resources/locales/fr-CA/lists.yml +12 -2
  47. data/resources/locales/fr-CH/lists.yml +12 -2
  48. data/resources/locales/fr/lists.yml +12 -2
  49. data/resources/locales/ga/lists.yml +8 -0
  50. data/resources/locales/gl/lists.yml +15 -2
  51. data/resources/locales/gu/lists.yml +12 -1
  52. data/resources/locales/he/lists.yml +14 -1
  53. data/resources/locales/hi/lists.yml +18 -3
  54. data/resources/locales/hr/lists.yml +21 -3
  55. data/resources/locales/hu/lists.yml +20 -3
  56. data/resources/locales/hy/lists.yml +14 -2
  57. data/resources/locales/id/lists.yml +14 -2
  58. data/resources/locales/is/lists.yml +13 -2
  59. data/resources/locales/it-CH/lists.yml +18 -3
  60. data/resources/locales/it/lists.yml +18 -3
  61. data/resources/locales/ja/lists.yml +18 -3
  62. data/resources/locales/ka/lists.yml +18 -3
  63. data/resources/locales/kk/lists.yml +21 -3
  64. data/resources/locales/km/lists.yml +17 -2
  65. data/resources/locales/kn/lists.yml +14 -2
  66. data/resources/locales/ko/lists.yml +18 -3
  67. data/resources/locales/lo/lists.yml +16 -2
  68. data/resources/locales/lt/lists.yml +18 -3
  69. data/resources/locales/lv/lists.yml +18 -3
  70. data/resources/locales/mk/lists.yml +15 -2
  71. data/resources/locales/mr/lists.yml +16 -2
  72. data/resources/locales/ms/lists.yml +14 -2
  73. data/resources/locales/mt/lists.yml +24 -4
  74. data/resources/locales/my/lists.yml +10 -0
  75. data/resources/locales/nb/lists.yml +20 -3
  76. data/resources/locales/nl-BE/lists.yml +18 -3
  77. data/resources/locales/nl/lists.yml +18 -3
  78. data/resources/locales/pl/lists.yml +18 -2
  79. data/resources/locales/pt-PT/lists.yml +14 -2
  80. data/resources/locales/pt/lists.yml +18 -2
  81. data/resources/locales/ro/lists.yml +14 -2
  82. data/resources/locales/ru/lists.yml +14 -2
  83. data/resources/locales/sk/lists.yml +18 -3
  84. data/resources/locales/sl/lists.yml +20 -3
  85. data/resources/locales/sq/lists.yml +18 -3
  86. data/resources/locales/sr-Cyrl-ME/lists.yml +18 -3
  87. data/resources/locales/sr-Latn-ME/lists.yml +18 -3
  88. data/resources/locales/sr/lists.yml +18 -3
  89. data/resources/locales/sv/lists.yml +14 -2
  90. data/resources/locales/sw/lists.yml +4 -0
  91. data/resources/locales/ta/lists.yml +18 -2
  92. data/resources/locales/th/lists.yml +11 -0
  93. data/resources/locales/tr/lists.yml +14 -2
  94. data/resources/locales/uk/lists.yml +20 -2
  95. data/resources/locales/ur/lists.yml +14 -2
  96. data/resources/locales/vi/lists.yml +22 -3
  97. data/resources/locales/xh/lists.yml +42 -7
  98. data/resources/locales/zh-Hant/lists.yml +18 -3
  99. data/resources/locales/zh/lists.yml +18 -3
  100. data/resources/locales/zu/lists.yml +13 -2
  101. data/spec/formatters/list_formatter_spec.rb +20 -0
  102. metadata +2 -2
@@ -13,13 +13,24 @@
13
13
  :end: "{0}, or {1}"
14
14
  :middle: "{0}, {1}"
15
15
  :start: "{0}, {1}"
16
- :or-narrow: :lists.or-short
17
- :or-short: :lists.or
16
+ :or-narrow:
17
+ ? !ruby/symbol "2"
18
+ : "{0} or {1}"
19
+ :end: "{0}, or {1}"
20
+ :middle: "{0}, {1}"
21
+ :start: "{0}, {1}"
22
+ :or-short:
23
+ ? !ruby/symbol "2"
24
+ : "{0} or {1}"
25
+ :end: "{0}, or {1}"
26
+ :middle: "{0}, {1}"
27
+ :start: "{0}, {1}"
18
28
  :standard-narrow:
19
29
  ? !ruby/symbol "2"
20
30
  : "{0}, {1}"
21
31
  :end: "{0}, {1}"
22
32
  :middle: "{0}, {1}"
33
+ :start: "{0}, {1}"
23
34
  :standard-short:
24
35
  ? !ruby/symbol "2"
25
36
  : "{0} ne-{1}"
@@ -49,6 +49,16 @@ describe TwitterCldr::Formatters::ListFormatter do
49
49
  expect(formatter.format(list, :"unit-narrow")).to eq('larrycurly')
50
50
  end
51
51
  end
52
+
53
+ context 'with a Portuguese list formatter' do
54
+ let(:formatter) { described_class.new(:pt) }
55
+
56
+ it 'formats correctly' do
57
+ expect(formatter.format(list)).to eq('larry e curly')
58
+ expect(formatter.format(list, :unit)).to eq('larry e curly')
59
+ expect(formatter.format(list, :"unit-narrow")).to eq('larry curly')
60
+ end
61
+ end
52
62
  end
53
63
 
54
64
  context 'with three elements' do
@@ -83,6 +93,16 @@ describe TwitterCldr::Formatters::ListFormatter do
83
93
  expect(formatter.format(list, :"unit-narrow")).to eq('larrycurlymoe')
84
94
  end
85
95
  end
96
+
97
+ context 'with a Portuguese list formatter' do
98
+ let(:formatter) { described_class.new(:pt) }
99
+
100
+ it 'formats correctly' do
101
+ expect(formatter.format(list)).to eq('larry, curly e moe')
102
+ expect(formatter.format(list, :unit)).to eq('larry, curly e moe')
103
+ expect(formatter.format(list, :"unit-narrow")).to eq('larry curly moe')
104
+ end
105
+ end
86
106
  end
87
107
  end
88
108
  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: 6.6.1
4
+ version: 6.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-30 00:00:00.000000000 Z
11
+ date: 2021-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: camertron-eprun