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.
- checksums.yaml +4 -4
- data/lib/twitter_cldr/formatters/list_formatter.rb +7 -1
- data/lib/twitter_cldr/resources/list_formats_importer.rb +37 -5
- data/lib/twitter_cldr/version.rb +1 -1
- data/resources/locales/af/lists.yml +18 -3
- data/resources/locales/ar/lists.yml +12 -0
- data/resources/locales/az/lists.yml +8 -0
- data/resources/locales/be/lists.yml +18 -3
- data/resources/locales/bg/lists.yml +17 -2
- data/resources/locales/bn/lists.yml +14 -2
- data/resources/locales/bo/lists.yml +42 -7
- data/resources/locales/bs/lists.yml +18 -3
- data/resources/locales/ca/lists.yml +12 -2
- data/resources/locales/cs/lists.yml +2 -0
- data/resources/locales/cy/lists.yml +12 -2
- data/resources/locales/da/lists.yml +10 -1
- data/resources/locales/de-AT/lists.yml +18 -3
- data/resources/locales/de-CH/lists.yml +18 -3
- data/resources/locales/de/lists.yml +18 -3
- data/resources/locales/el/lists.yml +14 -2
- data/resources/locales/en-001/lists.yml +8 -0
- data/resources/locales/en-150/lists.yml +8 -0
- data/resources/locales/en-AU/lists.yml +8 -0
- data/resources/locales/en-CA/lists.yml +8 -0
- data/resources/locales/en-GB/lists.yml +8 -0
- data/resources/locales/en-IE/lists.yml +8 -0
- data/resources/locales/en-IN/lists.yml +8 -0
- data/resources/locales/en-NZ/lists.yml +8 -0
- data/resources/locales/en-SG/lists.yml +8 -0
- data/resources/locales/en-US/lists.yml +12 -2
- data/resources/locales/en-ZA/lists.yml +8 -0
- data/resources/locales/en/lists.yml +12 -2
- data/resources/locales/eo/lists.yml +42 -7
- data/resources/locales/es-419/lists.yml +18 -3
- data/resources/locales/es-AR/lists.yml +18 -3
- data/resources/locales/es-CO/lists.yml +18 -3
- data/resources/locales/es-MX/lists.yml +18 -3
- data/resources/locales/es-US/lists.yml +18 -3
- data/resources/locales/es/lists.yml +18 -3
- data/resources/locales/et/lists.yml +14 -2
- data/resources/locales/eu/lists.yml +20 -3
- data/resources/locales/fa/lists.yml +6 -0
- data/resources/locales/fi/lists.yml +18 -3
- data/resources/locales/fil/lists.yml +16 -2
- data/resources/locales/fr-BE/lists.yml +12 -2
- data/resources/locales/fr-CA/lists.yml +12 -2
- data/resources/locales/fr-CH/lists.yml +12 -2
- data/resources/locales/fr/lists.yml +12 -2
- data/resources/locales/ga/lists.yml +8 -0
- data/resources/locales/gl/lists.yml +15 -2
- data/resources/locales/gu/lists.yml +12 -1
- data/resources/locales/he/lists.yml +14 -1
- data/resources/locales/hi/lists.yml +18 -3
- data/resources/locales/hr/lists.yml +21 -3
- data/resources/locales/hu/lists.yml +20 -3
- data/resources/locales/hy/lists.yml +14 -2
- data/resources/locales/id/lists.yml +14 -2
- data/resources/locales/is/lists.yml +13 -2
- data/resources/locales/it-CH/lists.yml +18 -3
- data/resources/locales/it/lists.yml +18 -3
- data/resources/locales/ja/lists.yml +18 -3
- data/resources/locales/ka/lists.yml +18 -3
- data/resources/locales/kk/lists.yml +21 -3
- data/resources/locales/km/lists.yml +17 -2
- data/resources/locales/kn/lists.yml +14 -2
- data/resources/locales/ko/lists.yml +18 -3
- data/resources/locales/lo/lists.yml +16 -2
- data/resources/locales/lt/lists.yml +18 -3
- data/resources/locales/lv/lists.yml +18 -3
- data/resources/locales/mk/lists.yml +15 -2
- data/resources/locales/mr/lists.yml +16 -2
- data/resources/locales/ms/lists.yml +14 -2
- data/resources/locales/mt/lists.yml +24 -4
- data/resources/locales/my/lists.yml +10 -0
- data/resources/locales/nb/lists.yml +20 -3
- data/resources/locales/nl-BE/lists.yml +18 -3
- data/resources/locales/nl/lists.yml +18 -3
- data/resources/locales/pl/lists.yml +18 -2
- data/resources/locales/pt-PT/lists.yml +14 -2
- data/resources/locales/pt/lists.yml +18 -2
- data/resources/locales/ro/lists.yml +14 -2
- data/resources/locales/ru/lists.yml +14 -2
- data/resources/locales/sk/lists.yml +18 -3
- data/resources/locales/sl/lists.yml +20 -3
- data/resources/locales/sq/lists.yml +18 -3
- data/resources/locales/sr-Cyrl-ME/lists.yml +18 -3
- data/resources/locales/sr-Latn-ME/lists.yml +18 -3
- data/resources/locales/sr/lists.yml +18 -3
- data/resources/locales/sv/lists.yml +14 -2
- data/resources/locales/sw/lists.yml +4 -0
- data/resources/locales/ta/lists.yml +18 -2
- data/resources/locales/th/lists.yml +11 -0
- data/resources/locales/tr/lists.yml +14 -2
- data/resources/locales/uk/lists.yml +20 -2
- data/resources/locales/ur/lists.yml +14 -2
- data/resources/locales/vi/lists.yml +22 -3
- data/resources/locales/xh/lists.yml +42 -7
- data/resources/locales/zh-Hant/lists.yml +18 -3
- data/resources/locales/zh/lists.yml +18 -3
- data/resources/locales/zu/lists.yml +13 -2
- data/spec/formatters/list_formatter_spec.rb +20 -0
- 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:
|
17
|
-
|
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.
|
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-
|
11
|
+
date: 2021-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: camertron-eprun
|