twitter_cldr 3.3.0 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +3 -1
- data/README.md +44 -10
- data/lib/twitter_cldr/data_readers/timespan_data_reader.rb +6 -4
- data/lib/twitter_cldr/localized/localized_number.rb +5 -1
- data/lib/twitter_cldr/localized/localized_object.rb +1 -7
- data/lib/twitter_cldr/localized/localized_string.rb +1 -1
- data/lib/twitter_cldr/shared.rb +1 -0
- data/lib/twitter_cldr/shared/unit.rb +126 -0
- data/lib/twitter_cldr/version.rb +1 -1
- data/resources/custom/locales/af/fields.yml +19 -0
- data/resources/custom/locales/ar/fields.yml +35 -0
- data/resources/custom/locales/be/fields.yml +27 -0
- data/resources/custom/locales/bg/fields.yml +19 -0
- data/resources/custom/locales/bn/fields.yml +15 -0
- data/resources/custom/locales/ca/fields.yml +19 -0
- data/resources/custom/locales/cs/fields.yml +23 -0
- data/resources/custom/locales/cy/fields.yml +35 -0
- data/resources/custom/locales/da/fields.yml +19 -0
- data/resources/custom/locales/de/fields.yml +19 -0
- data/resources/custom/locales/el/fields.yml +19 -0
- data/resources/custom/locales/en-GB/fields.yml +19 -0
- data/resources/custom/locales/en/fields.yml +19 -0
- data/resources/custom/locales/es/fields.yml +19 -0
- data/resources/custom/locales/eu/fields.yml +19 -0
- data/resources/custom/locales/fa/fields.yml +15 -0
- data/resources/custom/locales/fi/fields.yml +19 -0
- data/resources/custom/locales/fil/fields.yml +19 -0
- data/resources/custom/locales/fr/fields.yml +19 -0
- data/resources/custom/locales/ga/fields.yml +24 -0
- data/resources/custom/locales/gl/fields.yml +19 -0
- data/resources/custom/locales/he/fields.yml +164 -0
- data/resources/custom/locales/hi/fields.yml +19 -0
- data/resources/custom/locales/hr/fields.yml +9 -0
- data/resources/custom/locales/hu/fields.yml +19 -0
- data/resources/custom/locales/id/{units.yml → fields.yml} +5 -5
- data/resources/custom/locales/it/fields.yml +19 -0
- data/resources/custom/locales/ja/{units.yml → fields.yml} +5 -5
- data/resources/custom/locales/ko/{units.yml → fields.yml} +5 -5
- data/resources/custom/locales/lv/fields.yml +23 -0
- data/resources/custom/locales/ms/{units.yml → fields.yml} +5 -5
- data/resources/custom/locales/nb/fields.yml +19 -0
- data/resources/custom/locales/nl/fields.yml +19 -0
- data/resources/custom/locales/pl/fields.yml +27 -0
- data/resources/custom/locales/pt/fields.yml +19 -0
- data/resources/custom/locales/ro/fields.yml +23 -0
- data/resources/custom/locales/ru/fields.yml +27 -0
- data/resources/custom/locales/sk/fields.yml +23 -0
- data/resources/custom/locales/sr/fields.yml +27 -0
- data/resources/custom/locales/sv/{units.yml → fields.yml} +9 -9
- data/resources/custom/locales/ta/fields.yml +11 -0
- data/resources/custom/locales/th/fields.yml +15 -0
- data/resources/custom/locales/tr/{units.yml → fields.yml} +5 -5
- data/resources/custom/locales/uk/fields.yml +27 -0
- data/resources/custom/locales/ur/fields.yml +19 -0
- data/resources/custom/locales/vi/{units.yml → fields.yml} +5 -5
- data/resources/custom/locales/zh-Hant/{units.yml → fields.yml} +5 -5
- data/resources/custom/locales/zh/{units.yml → fields.yml} +5 -5
- data/resources/locales/af/fields.yml +108 -0
- data/resources/locales/af/units.yml +855 -104
- data/resources/locales/ar/fields.yml +220 -0
- data/resources/locales/ar/units.yml +1975 -216
- data/resources/locales/be/fields.yml +122 -0
- data/resources/locales/be/units.yml +284 -118
- data/resources/locales/bg/fields.yml +108 -0
- data/resources/locales/bg/units.yml +855 -104
- data/resources/locales/bn/fields.yml +108 -0
- data/resources/locales/bn/units.yml +855 -104
- data/resources/locales/ca/fields.yml +108 -0
- data/resources/locales/ca/units.yml +879 -104
- data/resources/locales/cs/fields.yml +136 -0
- data/resources/locales/cs/units.yml +1822 -132
- data/resources/locales/cy/fields.yml +108 -0
- data/resources/locales/cy/units.yml +1193 -104
- data/resources/locales/da/fields.yml +108 -0
- data/resources/locales/da/units.yml +883 -104
- data/resources/locales/de-CH/fields.yml +108 -0
- data/resources/locales/de-CH/units.yml +1096 -104
- data/resources/locales/de/fields.yml +108 -0
- data/resources/locales/de/units.yml +1096 -104
- data/resources/locales/el/fields.yml +108 -0
- data/resources/locales/el/units.yml +855 -104
- data/resources/locales/en-150/fields.yml +108 -0
- data/resources/locales/en-150/units.yml +1090 -104
- data/resources/locales/en-AU/fields.yml +108 -0
- data/resources/locales/en-AU/units.yml +1090 -104
- data/resources/locales/en-CA/fields.yml +108 -0
- data/resources/locales/en-CA/units.yml +1090 -104
- data/resources/locales/en-GB/fields.yml +108 -0
- data/resources/locales/en-GB/units.yml +1090 -104
- data/resources/locales/en-IE/fields.yml +108 -0
- data/resources/locales/en-IE/units.yml +1090 -104
- data/resources/locales/en-SG/fields.yml +108 -0
- data/resources/locales/en-SG/units.yml +1090 -104
- data/resources/locales/en-ZA/fields.yml +108 -0
- data/resources/locales/en-ZA/units.yml +1090 -104
- data/resources/locales/en/fields.yml +108 -0
- data/resources/locales/en/units.yml +1090 -104
- data/resources/locales/es-419/fields.yml +108 -0
- data/resources/locales/es-419/units.yml +855 -104
- data/resources/locales/es-CO/fields.yml +108 -0
- data/resources/locales/es-CO/units.yml +855 -104
- data/resources/locales/es-MX/fields.yml +108 -0
- data/resources/locales/es-MX/units.yml +855 -104
- data/resources/locales/es-US/fields.yml +108 -0
- data/resources/locales/es-US/units.yml +855 -104
- data/resources/locales/es/fields.yml +108 -0
- data/resources/locales/es/units.yml +855 -104
- data/resources/locales/eu/fields.yml +108 -0
- data/resources/locales/eu/units.yml +855 -104
- data/resources/locales/fa/fields.yml +108 -0
- data/resources/locales/fa/units.yml +865 -104
- data/resources/locales/fi/fields.yml +108 -0
- data/resources/locales/fi/units.yml +1096 -104
- data/resources/locales/fil/fields.yml +108 -0
- data/resources/locales/fil/units.yml +855 -104
- data/resources/locales/fr-BE/fields.yml +108 -0
- data/resources/locales/fr-BE/units.yml +944 -104
- data/resources/locales/fr-CA/fields.yml +108 -0
- data/resources/locales/fr-CA/units.yml +944 -104
- data/resources/locales/fr-CH/fields.yml +108 -0
- data/resources/locales/fr-CH/units.yml +944 -104
- data/resources/locales/fr/fields.yml +108 -0
- data/resources/locales/fr/units.yml +944 -104
- data/resources/locales/ga/fields.yml +108 -0
- data/resources/locales/ga/units.yml +2013 -104
- data/resources/locales/gl/fields.yml +108 -0
- data/resources/locales/gl/units.yml +774 -104
- data/resources/locales/gu/fields.yml +108 -0
- data/resources/locales/gu/units.yml +855 -104
- data/resources/locales/he/fields.yml +164 -0
- data/resources/locales/he/units.yml +1420 -160
- data/resources/locales/hi/fields.yml +108 -0
- data/resources/locales/hi/units.yml +855 -104
- data/resources/locales/hr/fields.yml +164 -0
- data/resources/locales/hr/units.yml +1459 -160
- data/resources/locales/hu/fields.yml +108 -0
- data/resources/locales/hu/units.yml +855 -104
- data/resources/locales/id/fields.yml +108 -0
- data/resources/locales/id/units.yml +575 -104
- data/resources/locales/is/fields.yml +108 -0
- data/resources/locales/is/units.yml +854 -104
- data/resources/locales/it-CH/fields.yml +108 -0
- data/resources/locales/it-CH/units.yml +855 -104
- data/resources/locales/it/fields.yml +108 -0
- data/resources/locales/it/units.yml +855 -104
- data/resources/locales/ja/fields.yml +108 -0
- data/resources/locales/ja/units.yml +733 -104
- data/resources/locales/kn/fields.yml +108 -0
- data/resources/locales/kn/units.yml +855 -104
- data/resources/locales/ko/fields.yml +108 -0
- data/resources/locales/ko/units.yml +575 -104
- data/resources/locales/lv/fields.yml +136 -0
- data/resources/locales/lv/units.yml +1135 -132
- data/resources/locales/mr/fields.yml +108 -0
- data/resources/locales/mr/units.yml +855 -104
- data/resources/locales/ms/fields.yml +108 -0
- data/resources/locales/ms/units.yml +575 -104
- data/resources/locales/nb/fields.yml +108 -0
- data/resources/locales/nb/units.yml +886 -104
- data/resources/locales/nl/fields.yml +108 -0
- data/resources/locales/nl/units.yml +1096 -104
- data/resources/locales/pl/fields.yml +164 -0
- data/resources/locales/pl/units.yml +1415 -160
- data/resources/locales/pt/fields.yml +108 -0
- data/resources/locales/pt/units.yml +855 -104
- data/resources/locales/ro/fields.yml +136 -0
- data/resources/locales/ro/units.yml +1135 -132
- data/resources/locales/ru/fields.yml +164 -0
- data/resources/locales/ru/units.yml +1415 -160
- data/resources/locales/sk/fields.yml +136 -0
- data/resources/locales/sk/units.yml +1635 -132
- data/resources/locales/sq/fields.yml +108 -0
- data/resources/locales/sq/units.yml +870 -104
- data/resources/locales/sr/fields.yml +164 -0
- data/resources/locales/sr/units.yml +1135 -160
- data/resources/locales/sv/fields.yml +108 -0
- data/resources/locales/sv/units.yml +1081 -104
- data/resources/locales/ta/fields.yml +108 -0
- data/resources/locales/ta/units.yml +855 -104
- data/resources/locales/th/fields.yml +108 -0
- data/resources/locales/th/units.yml +575 -104
- data/resources/locales/tr/fields.yml +108 -0
- data/resources/locales/tr/units.yml +1096 -104
- data/resources/locales/uk/fields.yml +164 -0
- data/resources/locales/uk/units.yml +1425 -160
- data/resources/locales/ur/fields.yml +108 -0
- data/resources/locales/ur/units.yml +855 -104
- data/resources/locales/vi/fields.yml +108 -0
- data/resources/locales/vi/units.yml +575 -104
- data/resources/locales/zh-Hant/fields.yml +108 -0
- data/resources/locales/zh-Hant/units.yml +733 -104
- data/resources/locales/zh/fields.yml +108 -0
- data/resources/locales/zh/units.yml +575 -104
- data/spec/resources/loader_spec.rb +4 -4
- data/spec/shared/unit_spec.rb +283 -0
- data/twitter_cldr.gemspec +1 -1
- metadata +124 -54
- data/resources/custom/locales/af/units.yml +0 -19
- data/resources/custom/locales/ar/units.yml +0 -35
- data/resources/custom/locales/be/units.yml +0 -27
- data/resources/custom/locales/bg/units.yml +0 -19
- data/resources/custom/locales/bn/units.yml +0 -15
- data/resources/custom/locales/ca/units.yml +0 -19
- data/resources/custom/locales/cs/units.yml +0 -23
- data/resources/custom/locales/cy/units.yml +0 -35
- data/resources/custom/locales/da/units.yml +0 -19
- data/resources/custom/locales/de/units.yml +0 -19
- data/resources/custom/locales/el/units.yml +0 -19
- data/resources/custom/locales/en-GB/units.yml +0 -19
- data/resources/custom/locales/en/units.yml +0 -19
- data/resources/custom/locales/es/units.yml +0 -19
- data/resources/custom/locales/eu/units.yml +0 -19
- data/resources/custom/locales/fa/units.yml +0 -15
- data/resources/custom/locales/fi/units.yml +0 -19
- data/resources/custom/locales/fil/units.yml +0 -19
- data/resources/custom/locales/fr/units.yml +0 -19
- data/resources/custom/locales/ga/units.yml +0 -24
- data/resources/custom/locales/gl/units.yml +0 -19
- data/resources/custom/locales/he/units.yml +0 -164
- data/resources/custom/locales/hi/units.yml +0 -19
- data/resources/custom/locales/hr/units.yml +0 -9
- data/resources/custom/locales/hu/units.yml +0 -19
- data/resources/custom/locales/it/units.yml +0 -19
- data/resources/custom/locales/lv/units.yml +0 -23
- data/resources/custom/locales/nb/units.yml +0 -19
- data/resources/custom/locales/nl/units.yml +0 -19
- data/resources/custom/locales/pl/units.yml +0 -27
- data/resources/custom/locales/pt/units.yml +0 -19
- data/resources/custom/locales/ro/units.yml +0 -23
- data/resources/custom/locales/ru/units.yml +0 -27
- data/resources/custom/locales/sk/units.yml +0 -23
- data/resources/custom/locales/sr/units.yml +0 -27
- data/resources/custom/locales/ta/units.yml +0 -11
- data/resources/custom/locales/th/units.yml +0 -15
- data/resources/custom/locales/uk/units.yml +0 -27
- data/resources/custom/locales/ur/units.yml +0 -19
@@ -117,16 +117,16 @@ describe Loader do
|
|
117
117
|
expect(types).to be_a(Array)
|
118
118
|
expect(types).to include(:calendars)
|
119
119
|
expect(types).to include(:numbers)
|
120
|
-
expect(types).to include(:
|
120
|
+
expect(types).to include(:fields)
|
121
121
|
end
|
122
122
|
end
|
123
123
|
|
124
124
|
describe '#preload_resources_for_locale' do
|
125
125
|
it 'loads potentially multiple resources into the cache' do
|
126
|
-
loader.preload_resources_for_locale(:ar, :calendars, :
|
126
|
+
loader.preload_resources_for_locale(:ar, :calendars, :fields)
|
127
127
|
expect(loader.locale_resource_loaded?(:ar, :calendars)).to be_true
|
128
|
-
expect(loader.locale_resource_loaded?(:ar, :
|
129
|
-
expect(loader.locale_resource_loaded?(:en, :
|
128
|
+
expect(loader.locale_resource_loaded?(:ar, :fields)).to be_true
|
129
|
+
expect(loader.locale_resource_loaded?(:en, :fields)).to be_false
|
130
130
|
end
|
131
131
|
|
132
132
|
it 'loads all resources for the locale if the :all resource type is specified' do
|
@@ -0,0 +1,283 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
# Copyright 2012 Twitter, Inc
|
4
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
|
6
|
+
require 'spec_helper'
|
7
|
+
|
8
|
+
include TwitterCldr::Shared
|
9
|
+
|
10
|
+
describe Unit do
|
11
|
+
describe '.create' do
|
12
|
+
it 'instantiates a new unit object' do
|
13
|
+
unit = Unit.create(1234, :en)
|
14
|
+
expect(unit).to be_a(Unit)
|
15
|
+
expect(unit).to respond_to(:length_mile)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
describe '#unit_types' do
|
20
|
+
let(:unit) { Unit.create(42, :en) }
|
21
|
+
|
22
|
+
it 'lists all possible unit types' do
|
23
|
+
expect(unit.unit_types).to include(:mass_kilogram)
|
24
|
+
expect(unit.unit_types).to include(:length_mile)
|
25
|
+
expect(unit.unit_types).to include(:temperature_celsius)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'en' do
|
30
|
+
let(:locale) { :en }
|
31
|
+
|
32
|
+
it 'uses number formatting rules when appropriate' do
|
33
|
+
expect(Unit.create(1234, locale).volume_liter).to eq('1,234 liters')
|
34
|
+
end
|
35
|
+
|
36
|
+
it 'does not format numbers if given a string' do
|
37
|
+
expect(Unit.create('1234', locale).volume_liter).to eq('1234 liters')
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'long form' do
|
41
|
+
describe '#length_mile' do
|
42
|
+
it 'produces the correct results' do
|
43
|
+
expect(Unit.create(1, locale).length_mile).to eq('1 mile')
|
44
|
+
expect(Unit.create(2, locale).length_mile).to eq('2 miles')
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe '#temperature_celsius' do
|
49
|
+
it 'produces the correct results' do
|
50
|
+
expect(Unit.create(1, locale).temperature_celsius).to eq('1 degree Celsius')
|
51
|
+
expect(Unit.create(2, locale).temperature_celsius).to eq('2 degrees Celsius')
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
describe '#mass_kilogram' do
|
56
|
+
it 'produces the correct results' do
|
57
|
+
expect(Unit.create(1, locale).mass_kilogram).to eq('1 kilogram')
|
58
|
+
expect(Unit.create(2, locale).mass_kilogram).to eq('2 kilograms')
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
describe 'narrow form' do
|
64
|
+
let(:options) { { form: :narrow } }
|
65
|
+
|
66
|
+
describe '#length_mile' do
|
67
|
+
it 'produces the correct results' do
|
68
|
+
expect(Unit.create(1, locale).length_mile(options)).to eq('1mi')
|
69
|
+
expect(Unit.create(2, locale).length_mile(options)).to eq('2mi')
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
describe '#temperature_celsius' do
|
74
|
+
it 'produces the correct results' do
|
75
|
+
expect(Unit.create(1, locale).temperature_celsius(options)).to eq('1°C')
|
76
|
+
expect(Unit.create(2, locale).temperature_celsius(options)).to eq('2°C')
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
describe '#mass_kilogram' do
|
81
|
+
it 'produces the correct results' do
|
82
|
+
expect(Unit.create(1, locale).mass_kilogram(options)).to eq('1kg')
|
83
|
+
expect(Unit.create(2, locale).mass_kilogram(options)).to eq('2kg')
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
describe 'short form' do
|
89
|
+
let(:options) { { form: :short } }
|
90
|
+
|
91
|
+
describe '#length_mile' do
|
92
|
+
it 'produces the correct results' do
|
93
|
+
expect(Unit.create(1, locale).length_mile(options)).to eq('1 mi')
|
94
|
+
expect(Unit.create(2, locale).length_mile(options)).to eq('2 mi')
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
describe '#temperature_celsius' do
|
99
|
+
it 'produces the correct results' do
|
100
|
+
expect(Unit.create(1, locale).temperature_celsius(options)).to eq('1°C')
|
101
|
+
expect(Unit.create(2, locale).temperature_celsius(options)).to eq('2°C')
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
describe '#mass_kilogram' do
|
106
|
+
it 'produces the correct results' do
|
107
|
+
expect(Unit.create(1, locale).mass_kilogram(options)).to eq('1 kg')
|
108
|
+
expect(Unit.create(2, locale).mass_kilogram(options)).to eq('2 kg')
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
describe 'ru' do
|
115
|
+
let(:locale) { :ru }
|
116
|
+
|
117
|
+
it 'uses number formatting rules when appropriate' do
|
118
|
+
expect(Unit.create(1234, locale).volume_liter).to eq('1 234 литра')
|
119
|
+
end
|
120
|
+
|
121
|
+
it 'does not format numbers if given a string' do
|
122
|
+
expect(Unit.create('1234', locale).volume_liter).to eq('1234 литра')
|
123
|
+
end
|
124
|
+
|
125
|
+
describe 'long form' do
|
126
|
+
describe '#length_mile' do
|
127
|
+
it 'produces the correct results' do
|
128
|
+
expect(Unit.create(1, locale).length_mile).to eq('1 миля')
|
129
|
+
expect(Unit.create(2, locale).length_mile).to eq('2 мили')
|
130
|
+
expect(Unit.create(7, locale).length_mile).to eq('7 миль')
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
describe '#temperature_celsius' do
|
135
|
+
it 'produces the correct results' do
|
136
|
+
expect(Unit.create(1, locale).temperature_celsius).to eq('1градус Цельсия')
|
137
|
+
expect(Unit.create(2, locale).temperature_celsius).to eq('2 градуса Цельсия')
|
138
|
+
expect(Unit.create(7, locale).temperature_celsius).to eq('7градусов Цельсия')
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
describe '#mass_kilogram' do
|
143
|
+
it 'produces the correct results' do
|
144
|
+
expect(Unit.create(1, locale).mass_kilogram).to eq('1 килограмм')
|
145
|
+
expect(Unit.create(2, locale).mass_kilogram).to eq('2 килограмма')
|
146
|
+
expect(Unit.create(7, locale).mass_kilogram).to eq('7 килограмм')
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
describe 'narrow form' do
|
152
|
+
let(:options) { { form: :narrow } }
|
153
|
+
|
154
|
+
describe '#length_mile' do
|
155
|
+
it 'produces the correct results' do
|
156
|
+
expect(Unit.create(1, locale).length_mile(options)).to eq('1 миля')
|
157
|
+
expect(Unit.create(2, locale).length_mile(options)).to eq('2 миль')
|
158
|
+
expect(Unit.create(7, locale).length_mile(options)).to eq('7 миль')
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
describe '#temperature_celsius' do
|
163
|
+
it 'produces the correct results' do
|
164
|
+
expect(Unit.create(1, locale).temperature_celsius(options)).to eq('1 °C')
|
165
|
+
expect(Unit.create(2, locale).temperature_celsius(options)).to eq('2 °C')
|
166
|
+
expect(Unit.create(7, locale).temperature_celsius(options)).to eq('7 °C')
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
describe '#mass_kilogram' do
|
171
|
+
it 'produces the correct results' do
|
172
|
+
expect(Unit.create(1, locale).mass_kilogram(options)).to eq('1 кг')
|
173
|
+
expect(Unit.create(2, locale).mass_kilogram(options)).to eq('2 кг')
|
174
|
+
expect(Unit.create(7, locale).mass_kilogram(options)).to eq('7 кг')
|
175
|
+
end
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
describe 'short form' do
|
180
|
+
let(:options) { { form: :short } }
|
181
|
+
|
182
|
+
describe '#length_mile' do
|
183
|
+
it 'produces the correct results' do
|
184
|
+
expect(Unit.create(1, locale).length_mile(options)).to eq('1 миля')
|
185
|
+
expect(Unit.create(2, locale).length_mile(options)).to eq('2 мили')
|
186
|
+
expect(Unit.create(7, locale).length_mile(options)).to eq('7 миль')
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
describe '#temperature_celsius' do
|
191
|
+
it 'produces the correct results' do
|
192
|
+
expect(Unit.create(1, locale).temperature_celsius(options)).to eq('1 °C')
|
193
|
+
expect(Unit.create(2, locale).temperature_celsius(options)).to eq('2 °C')
|
194
|
+
expect(Unit.create(7, locale).temperature_celsius(options)).to eq('7 °C')
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
describe '#mass_kilogram' do
|
199
|
+
it 'produces the correct results' do
|
200
|
+
expect(Unit.create(1, locale).mass_kilogram(options)).to eq('1 кг')
|
201
|
+
expect(Unit.create(2, locale).mass_kilogram(options)).to eq('2 кг')
|
202
|
+
expect(Unit.create(7, locale).mass_kilogram(options)).to eq('7 кг')
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
describe 'ko' do
|
209
|
+
let(:locale) { :ko }
|
210
|
+
|
211
|
+
it 'uses number formatting rules when appropriate' do
|
212
|
+
expect(Unit.create(1234, locale).volume_liter).to eq('1,234리터')
|
213
|
+
end
|
214
|
+
|
215
|
+
it 'does not format numbers if given a string' do
|
216
|
+
expect(Unit.create('1234', locale).volume_liter).to eq('1234리터')
|
217
|
+
end
|
218
|
+
|
219
|
+
describe 'long form' do
|
220
|
+
describe '#length_mile' do
|
221
|
+
it 'produces the correct results' do
|
222
|
+
expect(Unit.create(1, locale).length_mile).to eq('1마일')
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
describe '#temperature_celsius' do
|
227
|
+
it 'produces the correct results' do
|
228
|
+
expect(Unit.create(1, locale).temperature_celsius).to eq('섭씨 1도')
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
describe '#mass_kilogram' do
|
233
|
+
it 'produces the correct results' do
|
234
|
+
expect(Unit.create(1, locale).mass_kilogram).to eq('1킬로그램')
|
235
|
+
end
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
describe 'narrow form' do
|
240
|
+
let(:options) { { form: :narrow } }
|
241
|
+
|
242
|
+
describe '#length_mile' do
|
243
|
+
it 'produces the correct results' do
|
244
|
+
expect(Unit.create(1, locale).length_mile(options)).to eq('1mi')
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
describe '#temperature_celsius' do
|
249
|
+
it 'produces the correct results' do
|
250
|
+
expect(Unit.create(1, locale).temperature_celsius(options)).to eq('1°C')
|
251
|
+
end
|
252
|
+
end
|
253
|
+
|
254
|
+
describe '#mass_kilogram' do
|
255
|
+
it 'produces the correct results' do
|
256
|
+
expect(Unit.create(1, locale).mass_kilogram(options)).to eq('1kg')
|
257
|
+
end
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
describe 'short form' do
|
262
|
+
let(:options) { { form: :short } }
|
263
|
+
|
264
|
+
describe '#length_mile' do
|
265
|
+
it 'produces the correct results' do
|
266
|
+
expect(Unit.create(1, locale).length_mile(options)).to eq('1mil')
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
describe '#temperature_celsius' do
|
271
|
+
it 'produces the correct results' do
|
272
|
+
expect(Unit.create(1, locale).temperature_celsius(options)).to eq('1°C')
|
273
|
+
end
|
274
|
+
end
|
275
|
+
|
276
|
+
describe '#mass_kilogram' do
|
277
|
+
it 'produces the correct results' do
|
278
|
+
expect(Unit.create(1, locale).mass_kilogram(options)).to eq('1kg')
|
279
|
+
end
|
280
|
+
end
|
281
|
+
end
|
282
|
+
end
|
283
|
+
end
|
data/twitter_cldr.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.has_rdoc = true
|
15
15
|
s.summary = "Ruby implementation of the ICU (International Components for Unicode) that uses the Common Locale Data Repository to format dates, plurals, and more."
|
16
16
|
|
17
|
-
s.add_dependency 'json'
|
17
|
+
s.add_dependency 'json', '~> 1.0'
|
18
18
|
s.add_dependency 'camertron-eprun'
|
19
19
|
s.add_dependency 'tzinfo'
|
20
20
|
s.add_dependency 'cldr-plurals-runtime-rb', '~> 1.0.0'
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitter_cldr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.4.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
|
+
date: 2016-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '1.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
26
|
+
version: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: camertron-eprun
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -230,6 +230,7 @@ files:
|
|
230
230
|
- lib/twitter_cldr/shared/territory.rb
|
231
231
|
- lib/twitter_cldr/shared/timezones.rb
|
232
232
|
- lib/twitter_cldr/shared/unicode_regex.rb
|
233
|
+
- lib/twitter_cldr/shared/unit.rb
|
233
234
|
- lib/twitter_cldr/tokenizers.rb
|
234
235
|
- lib/twitter_cldr/tokenizers/calendars/date_time_tokenizer.rb
|
235
236
|
- lib/twitter_cldr/tokenizers/calendars/date_tokenizer.rb
|
@@ -390,57 +391,58 @@ files:
|
|
390
391
|
- resources/collation/tries/vi.dump
|
391
392
|
- resources/collation/tries/zh-Hant.dump
|
392
393
|
- resources/collation/tries/zh.dump
|
393
|
-
- resources/custom/locales/af/
|
394
|
-
- resources/custom/locales/ar/
|
395
|
-
- resources/custom/locales/be/
|
396
|
-
- resources/custom/locales/bg/
|
397
|
-
- resources/custom/locales/bn/
|
398
|
-
- resources/custom/locales/ca/
|
399
|
-
- resources/custom/locales/cs/
|
400
|
-
- resources/custom/locales/cy/
|
401
|
-
- resources/custom/locales/da/
|
402
|
-
- resources/custom/locales/de/
|
403
|
-
- resources/custom/locales/el/
|
404
|
-
- resources/custom/locales/en-GB/
|
405
|
-
- resources/custom/locales/en/
|
406
|
-
- resources/custom/locales/es/
|
407
|
-
- resources/custom/locales/eu/
|
408
|
-
- resources/custom/locales/fa/
|
409
|
-
- resources/custom/locales/fi/
|
410
|
-
- resources/custom/locales/fil/
|
411
|
-
- resources/custom/locales/fr/
|
412
|
-
- resources/custom/locales/ga/
|
413
|
-
- resources/custom/locales/gl/
|
414
|
-
- resources/custom/locales/he/
|
415
|
-
- resources/custom/locales/hi/
|
416
|
-
- resources/custom/locales/hr/
|
417
|
-
- resources/custom/locales/hu/
|
418
|
-
- resources/custom/locales/id/
|
419
|
-
- resources/custom/locales/it/
|
420
|
-
- resources/custom/locales/ja/
|
421
|
-
- resources/custom/locales/ko/
|
422
|
-
- resources/custom/locales/lv/
|
423
|
-
- resources/custom/locales/ms/
|
424
|
-
- resources/custom/locales/nb/
|
425
|
-
- resources/custom/locales/nl/
|
426
|
-
- resources/custom/locales/pl/
|
427
|
-
- resources/custom/locales/pt/
|
428
|
-
- resources/custom/locales/ro/
|
429
|
-
- resources/custom/locales/ru/
|
430
|
-
- resources/custom/locales/sk/
|
431
|
-
- resources/custom/locales/sr/
|
432
|
-
- resources/custom/locales/sv/
|
433
|
-
- resources/custom/locales/ta/
|
394
|
+
- resources/custom/locales/af/fields.yml
|
395
|
+
- resources/custom/locales/ar/fields.yml
|
396
|
+
- resources/custom/locales/be/fields.yml
|
397
|
+
- resources/custom/locales/bg/fields.yml
|
398
|
+
- resources/custom/locales/bn/fields.yml
|
399
|
+
- resources/custom/locales/ca/fields.yml
|
400
|
+
- resources/custom/locales/cs/fields.yml
|
401
|
+
- resources/custom/locales/cy/fields.yml
|
402
|
+
- resources/custom/locales/da/fields.yml
|
403
|
+
- resources/custom/locales/de/fields.yml
|
404
|
+
- resources/custom/locales/el/fields.yml
|
405
|
+
- resources/custom/locales/en-GB/fields.yml
|
406
|
+
- resources/custom/locales/en/fields.yml
|
407
|
+
- resources/custom/locales/es/fields.yml
|
408
|
+
- resources/custom/locales/eu/fields.yml
|
409
|
+
- resources/custom/locales/fa/fields.yml
|
410
|
+
- resources/custom/locales/fi/fields.yml
|
411
|
+
- resources/custom/locales/fil/fields.yml
|
412
|
+
- resources/custom/locales/fr/fields.yml
|
413
|
+
- resources/custom/locales/ga/fields.yml
|
414
|
+
- resources/custom/locales/gl/fields.yml
|
415
|
+
- resources/custom/locales/he/fields.yml
|
416
|
+
- resources/custom/locales/hi/fields.yml
|
417
|
+
- resources/custom/locales/hr/fields.yml
|
418
|
+
- resources/custom/locales/hu/fields.yml
|
419
|
+
- resources/custom/locales/id/fields.yml
|
420
|
+
- resources/custom/locales/it/fields.yml
|
421
|
+
- resources/custom/locales/ja/fields.yml
|
422
|
+
- resources/custom/locales/ko/fields.yml
|
423
|
+
- resources/custom/locales/lv/fields.yml
|
424
|
+
- resources/custom/locales/ms/fields.yml
|
425
|
+
- resources/custom/locales/nb/fields.yml
|
426
|
+
- resources/custom/locales/nl/fields.yml
|
427
|
+
- resources/custom/locales/pl/fields.yml
|
428
|
+
- resources/custom/locales/pt/fields.yml
|
429
|
+
- resources/custom/locales/ro/fields.yml
|
430
|
+
- resources/custom/locales/ru/fields.yml
|
431
|
+
- resources/custom/locales/sk/fields.yml
|
432
|
+
- resources/custom/locales/sr/fields.yml
|
433
|
+
- resources/custom/locales/sv/fields.yml
|
434
|
+
- resources/custom/locales/ta/fields.yml
|
434
435
|
- resources/custom/locales/th/calendars.yml
|
435
|
-
- resources/custom/locales/th/
|
436
|
-
- resources/custom/locales/tr/
|
437
|
-
- resources/custom/locales/uk/
|
438
|
-
- resources/custom/locales/ur/
|
439
|
-
- resources/custom/locales/vi/
|
440
|
-
- resources/custom/locales/zh-Hant/
|
441
|
-
- resources/custom/locales/zh/
|
436
|
+
- resources/custom/locales/th/fields.yml
|
437
|
+
- resources/custom/locales/tr/fields.yml
|
438
|
+
- resources/custom/locales/uk/fields.yml
|
439
|
+
- resources/custom/locales/ur/fields.yml
|
440
|
+
- resources/custom/locales/vi/fields.yml
|
441
|
+
- resources/custom/locales/zh-Hant/fields.yml
|
442
|
+
- resources/custom/locales/zh/fields.yml
|
442
443
|
- resources/locales/af/calendars.yml
|
443
444
|
- resources/locales/af/currencies.yml
|
445
|
+
- resources/locales/af/fields.yml
|
444
446
|
- resources/locales/af/languages.yml
|
445
447
|
- resources/locales/af/layout.yml
|
446
448
|
- resources/locales/af/lists.yml
|
@@ -452,6 +454,7 @@ files:
|
|
452
454
|
- resources/locales/af/units.yml
|
453
455
|
- resources/locales/ar/calendars.yml
|
454
456
|
- resources/locales/ar/currencies.yml
|
457
|
+
- resources/locales/ar/fields.yml
|
455
458
|
- resources/locales/ar/languages.yml
|
456
459
|
- resources/locales/ar/layout.yml
|
457
460
|
- resources/locales/ar/lists.yml
|
@@ -463,6 +466,7 @@ files:
|
|
463
466
|
- resources/locales/ar/units.yml
|
464
467
|
- resources/locales/be/calendars.yml
|
465
468
|
- resources/locales/be/currencies.yml
|
469
|
+
- resources/locales/be/fields.yml
|
466
470
|
- resources/locales/be/languages.yml
|
467
471
|
- resources/locales/be/layout.yml
|
468
472
|
- resources/locales/be/lists.yml
|
@@ -474,6 +478,7 @@ files:
|
|
474
478
|
- resources/locales/be/units.yml
|
475
479
|
- resources/locales/bg/calendars.yml
|
476
480
|
- resources/locales/bg/currencies.yml
|
481
|
+
- resources/locales/bg/fields.yml
|
477
482
|
- resources/locales/bg/languages.yml
|
478
483
|
- resources/locales/bg/layout.yml
|
479
484
|
- resources/locales/bg/lists.yml
|
@@ -485,6 +490,7 @@ files:
|
|
485
490
|
- resources/locales/bg/units.yml
|
486
491
|
- resources/locales/bn/calendars.yml
|
487
492
|
- resources/locales/bn/currencies.yml
|
493
|
+
- resources/locales/bn/fields.yml
|
488
494
|
- resources/locales/bn/languages.yml
|
489
495
|
- resources/locales/bn/layout.yml
|
490
496
|
- resources/locales/bn/lists.yml
|
@@ -496,6 +502,7 @@ files:
|
|
496
502
|
- resources/locales/bn/units.yml
|
497
503
|
- resources/locales/ca/calendars.yml
|
498
504
|
- resources/locales/ca/currencies.yml
|
505
|
+
- resources/locales/ca/fields.yml
|
499
506
|
- resources/locales/ca/languages.yml
|
500
507
|
- resources/locales/ca/layout.yml
|
501
508
|
- resources/locales/ca/lists.yml
|
@@ -507,6 +514,7 @@ files:
|
|
507
514
|
- resources/locales/ca/units.yml
|
508
515
|
- resources/locales/cs/calendars.yml
|
509
516
|
- resources/locales/cs/currencies.yml
|
517
|
+
- resources/locales/cs/fields.yml
|
510
518
|
- resources/locales/cs/languages.yml
|
511
519
|
- resources/locales/cs/layout.yml
|
512
520
|
- resources/locales/cs/lists.yml
|
@@ -518,6 +526,7 @@ files:
|
|
518
526
|
- resources/locales/cs/units.yml
|
519
527
|
- resources/locales/cy/calendars.yml
|
520
528
|
- resources/locales/cy/currencies.yml
|
529
|
+
- resources/locales/cy/fields.yml
|
521
530
|
- resources/locales/cy/languages.yml
|
522
531
|
- resources/locales/cy/layout.yml
|
523
532
|
- resources/locales/cy/lists.yml
|
@@ -529,6 +538,7 @@ files:
|
|
529
538
|
- resources/locales/cy/units.yml
|
530
539
|
- resources/locales/da/calendars.yml
|
531
540
|
- resources/locales/da/currencies.yml
|
541
|
+
- resources/locales/da/fields.yml
|
532
542
|
- resources/locales/da/languages.yml
|
533
543
|
- resources/locales/da/layout.yml
|
534
544
|
- resources/locales/da/lists.yml
|
@@ -540,6 +550,7 @@ files:
|
|
540
550
|
- resources/locales/da/units.yml
|
541
551
|
- resources/locales/de-CH/calendars.yml
|
542
552
|
- resources/locales/de-CH/currencies.yml
|
553
|
+
- resources/locales/de-CH/fields.yml
|
543
554
|
- resources/locales/de-CH/languages.yml
|
544
555
|
- resources/locales/de-CH/layout.yml
|
545
556
|
- resources/locales/de-CH/lists.yml
|
@@ -551,6 +562,7 @@ files:
|
|
551
562
|
- resources/locales/de-CH/units.yml
|
552
563
|
- resources/locales/de/calendars.yml
|
553
564
|
- resources/locales/de/currencies.yml
|
565
|
+
- resources/locales/de/fields.yml
|
554
566
|
- resources/locales/de/languages.yml
|
555
567
|
- resources/locales/de/layout.yml
|
556
568
|
- resources/locales/de/lists.yml
|
@@ -562,6 +574,7 @@ files:
|
|
562
574
|
- resources/locales/de/units.yml
|
563
575
|
- resources/locales/el/calendars.yml
|
564
576
|
- resources/locales/el/currencies.yml
|
577
|
+
- resources/locales/el/fields.yml
|
565
578
|
- resources/locales/el/languages.yml
|
566
579
|
- resources/locales/el/layout.yml
|
567
580
|
- resources/locales/el/lists.yml
|
@@ -573,6 +586,7 @@ files:
|
|
573
586
|
- resources/locales/el/units.yml
|
574
587
|
- resources/locales/en-150/calendars.yml
|
575
588
|
- resources/locales/en-150/currencies.yml
|
589
|
+
- resources/locales/en-150/fields.yml
|
576
590
|
- resources/locales/en-150/languages.yml
|
577
591
|
- resources/locales/en-150/layout.yml
|
578
592
|
- resources/locales/en-150/lists.yml
|
@@ -584,6 +598,7 @@ files:
|
|
584
598
|
- resources/locales/en-150/units.yml
|
585
599
|
- resources/locales/en-AU/calendars.yml
|
586
600
|
- resources/locales/en-AU/currencies.yml
|
601
|
+
- resources/locales/en-AU/fields.yml
|
587
602
|
- resources/locales/en-AU/languages.yml
|
588
603
|
- resources/locales/en-AU/layout.yml
|
589
604
|
- resources/locales/en-AU/lists.yml
|
@@ -595,6 +610,7 @@ files:
|
|
595
610
|
- resources/locales/en-AU/units.yml
|
596
611
|
- resources/locales/en-CA/calendars.yml
|
597
612
|
- resources/locales/en-CA/currencies.yml
|
613
|
+
- resources/locales/en-CA/fields.yml
|
598
614
|
- resources/locales/en-CA/languages.yml
|
599
615
|
- resources/locales/en-CA/layout.yml
|
600
616
|
- resources/locales/en-CA/lists.yml
|
@@ -606,6 +622,7 @@ files:
|
|
606
622
|
- resources/locales/en-CA/units.yml
|
607
623
|
- resources/locales/en-GB/calendars.yml
|
608
624
|
- resources/locales/en-GB/currencies.yml
|
625
|
+
- resources/locales/en-GB/fields.yml
|
609
626
|
- resources/locales/en-GB/languages.yml
|
610
627
|
- resources/locales/en-GB/layout.yml
|
611
628
|
- resources/locales/en-GB/lists.yml
|
@@ -617,6 +634,7 @@ files:
|
|
617
634
|
- resources/locales/en-GB/units.yml
|
618
635
|
- resources/locales/en-IE/calendars.yml
|
619
636
|
- resources/locales/en-IE/currencies.yml
|
637
|
+
- resources/locales/en-IE/fields.yml
|
620
638
|
- resources/locales/en-IE/languages.yml
|
621
639
|
- resources/locales/en-IE/layout.yml
|
622
640
|
- resources/locales/en-IE/lists.yml
|
@@ -628,6 +646,7 @@ files:
|
|
628
646
|
- resources/locales/en-IE/units.yml
|
629
647
|
- resources/locales/en-SG/calendars.yml
|
630
648
|
- resources/locales/en-SG/currencies.yml
|
649
|
+
- resources/locales/en-SG/fields.yml
|
631
650
|
- resources/locales/en-SG/languages.yml
|
632
651
|
- resources/locales/en-SG/layout.yml
|
633
652
|
- resources/locales/en-SG/lists.yml
|
@@ -639,6 +658,7 @@ files:
|
|
639
658
|
- resources/locales/en-SG/units.yml
|
640
659
|
- resources/locales/en-ZA/calendars.yml
|
641
660
|
- resources/locales/en-ZA/currencies.yml
|
661
|
+
- resources/locales/en-ZA/fields.yml
|
642
662
|
- resources/locales/en-ZA/languages.yml
|
643
663
|
- resources/locales/en-ZA/layout.yml
|
644
664
|
- resources/locales/en-ZA/lists.yml
|
@@ -650,6 +670,7 @@ files:
|
|
650
670
|
- resources/locales/en-ZA/units.yml
|
651
671
|
- resources/locales/en/calendars.yml
|
652
672
|
- resources/locales/en/currencies.yml
|
673
|
+
- resources/locales/en/fields.yml
|
653
674
|
- resources/locales/en/languages.yml
|
654
675
|
- resources/locales/en/layout.yml
|
655
676
|
- resources/locales/en/lists.yml
|
@@ -661,6 +682,7 @@ files:
|
|
661
682
|
- resources/locales/en/units.yml
|
662
683
|
- resources/locales/es-419/calendars.yml
|
663
684
|
- resources/locales/es-419/currencies.yml
|
685
|
+
- resources/locales/es-419/fields.yml
|
664
686
|
- resources/locales/es-419/languages.yml
|
665
687
|
- resources/locales/es-419/layout.yml
|
666
688
|
- resources/locales/es-419/lists.yml
|
@@ -672,6 +694,7 @@ files:
|
|
672
694
|
- resources/locales/es-419/units.yml
|
673
695
|
- resources/locales/es-CO/calendars.yml
|
674
696
|
- resources/locales/es-CO/currencies.yml
|
697
|
+
- resources/locales/es-CO/fields.yml
|
675
698
|
- resources/locales/es-CO/languages.yml
|
676
699
|
- resources/locales/es-CO/layout.yml
|
677
700
|
- resources/locales/es-CO/lists.yml
|
@@ -683,6 +706,7 @@ files:
|
|
683
706
|
- resources/locales/es-CO/units.yml
|
684
707
|
- resources/locales/es-MX/calendars.yml
|
685
708
|
- resources/locales/es-MX/currencies.yml
|
709
|
+
- resources/locales/es-MX/fields.yml
|
686
710
|
- resources/locales/es-MX/languages.yml
|
687
711
|
- resources/locales/es-MX/layout.yml
|
688
712
|
- resources/locales/es-MX/lists.yml
|
@@ -694,6 +718,7 @@ files:
|
|
694
718
|
- resources/locales/es-MX/units.yml
|
695
719
|
- resources/locales/es-US/calendars.yml
|
696
720
|
- resources/locales/es-US/currencies.yml
|
721
|
+
- resources/locales/es-US/fields.yml
|
697
722
|
- resources/locales/es-US/languages.yml
|
698
723
|
- resources/locales/es-US/layout.yml
|
699
724
|
- resources/locales/es-US/lists.yml
|
@@ -705,6 +730,7 @@ files:
|
|
705
730
|
- resources/locales/es-US/units.yml
|
706
731
|
- resources/locales/es/calendars.yml
|
707
732
|
- resources/locales/es/currencies.yml
|
733
|
+
- resources/locales/es/fields.yml
|
708
734
|
- resources/locales/es/languages.yml
|
709
735
|
- resources/locales/es/layout.yml
|
710
736
|
- resources/locales/es/lists.yml
|
@@ -716,6 +742,7 @@ files:
|
|
716
742
|
- resources/locales/es/units.yml
|
717
743
|
- resources/locales/eu/calendars.yml
|
718
744
|
- resources/locales/eu/currencies.yml
|
745
|
+
- resources/locales/eu/fields.yml
|
719
746
|
- resources/locales/eu/languages.yml
|
720
747
|
- resources/locales/eu/layout.yml
|
721
748
|
- resources/locales/eu/lists.yml
|
@@ -727,6 +754,7 @@ files:
|
|
727
754
|
- resources/locales/eu/units.yml
|
728
755
|
- resources/locales/fa/calendars.yml
|
729
756
|
- resources/locales/fa/currencies.yml
|
757
|
+
- resources/locales/fa/fields.yml
|
730
758
|
- resources/locales/fa/languages.yml
|
731
759
|
- resources/locales/fa/layout.yml
|
732
760
|
- resources/locales/fa/lists.yml
|
@@ -738,6 +766,7 @@ files:
|
|
738
766
|
- resources/locales/fa/units.yml
|
739
767
|
- resources/locales/fi/calendars.yml
|
740
768
|
- resources/locales/fi/currencies.yml
|
769
|
+
- resources/locales/fi/fields.yml
|
741
770
|
- resources/locales/fi/languages.yml
|
742
771
|
- resources/locales/fi/layout.yml
|
743
772
|
- resources/locales/fi/lists.yml
|
@@ -749,6 +778,7 @@ files:
|
|
749
778
|
- resources/locales/fi/units.yml
|
750
779
|
- resources/locales/fil/calendars.yml
|
751
780
|
- resources/locales/fil/currencies.yml
|
781
|
+
- resources/locales/fil/fields.yml
|
752
782
|
- resources/locales/fil/languages.yml
|
753
783
|
- resources/locales/fil/layout.yml
|
754
784
|
- resources/locales/fil/lists.yml
|
@@ -760,6 +790,7 @@ files:
|
|
760
790
|
- resources/locales/fil/units.yml
|
761
791
|
- resources/locales/fr-BE/calendars.yml
|
762
792
|
- resources/locales/fr-BE/currencies.yml
|
793
|
+
- resources/locales/fr-BE/fields.yml
|
763
794
|
- resources/locales/fr-BE/languages.yml
|
764
795
|
- resources/locales/fr-BE/layout.yml
|
765
796
|
- resources/locales/fr-BE/lists.yml
|
@@ -771,6 +802,7 @@ files:
|
|
771
802
|
- resources/locales/fr-BE/units.yml
|
772
803
|
- resources/locales/fr-CA/calendars.yml
|
773
804
|
- resources/locales/fr-CA/currencies.yml
|
805
|
+
- resources/locales/fr-CA/fields.yml
|
774
806
|
- resources/locales/fr-CA/languages.yml
|
775
807
|
- resources/locales/fr-CA/layout.yml
|
776
808
|
- resources/locales/fr-CA/lists.yml
|
@@ -782,6 +814,7 @@ files:
|
|
782
814
|
- resources/locales/fr-CA/units.yml
|
783
815
|
- resources/locales/fr-CH/calendars.yml
|
784
816
|
- resources/locales/fr-CH/currencies.yml
|
817
|
+
- resources/locales/fr-CH/fields.yml
|
785
818
|
- resources/locales/fr-CH/languages.yml
|
786
819
|
- resources/locales/fr-CH/layout.yml
|
787
820
|
- resources/locales/fr-CH/lists.yml
|
@@ -793,6 +826,7 @@ files:
|
|
793
826
|
- resources/locales/fr-CH/units.yml
|
794
827
|
- resources/locales/fr/calendars.yml
|
795
828
|
- resources/locales/fr/currencies.yml
|
829
|
+
- resources/locales/fr/fields.yml
|
796
830
|
- resources/locales/fr/languages.yml
|
797
831
|
- resources/locales/fr/layout.yml
|
798
832
|
- resources/locales/fr/lists.yml
|
@@ -804,6 +838,7 @@ files:
|
|
804
838
|
- resources/locales/fr/units.yml
|
805
839
|
- resources/locales/ga/calendars.yml
|
806
840
|
- resources/locales/ga/currencies.yml
|
841
|
+
- resources/locales/ga/fields.yml
|
807
842
|
- resources/locales/ga/languages.yml
|
808
843
|
- resources/locales/ga/layout.yml
|
809
844
|
- resources/locales/ga/lists.yml
|
@@ -815,6 +850,7 @@ files:
|
|
815
850
|
- resources/locales/ga/units.yml
|
816
851
|
- resources/locales/gl/calendars.yml
|
817
852
|
- resources/locales/gl/currencies.yml
|
853
|
+
- resources/locales/gl/fields.yml
|
818
854
|
- resources/locales/gl/languages.yml
|
819
855
|
- resources/locales/gl/layout.yml
|
820
856
|
- resources/locales/gl/lists.yml
|
@@ -826,6 +862,7 @@ files:
|
|
826
862
|
- resources/locales/gl/units.yml
|
827
863
|
- resources/locales/gu/calendars.yml
|
828
864
|
- resources/locales/gu/currencies.yml
|
865
|
+
- resources/locales/gu/fields.yml
|
829
866
|
- resources/locales/gu/languages.yml
|
830
867
|
- resources/locales/gu/layout.yml
|
831
868
|
- resources/locales/gu/lists.yml
|
@@ -837,6 +874,7 @@ files:
|
|
837
874
|
- resources/locales/gu/units.yml
|
838
875
|
- resources/locales/he/calendars.yml
|
839
876
|
- resources/locales/he/currencies.yml
|
877
|
+
- resources/locales/he/fields.yml
|
840
878
|
- resources/locales/he/languages.yml
|
841
879
|
- resources/locales/he/layout.yml
|
842
880
|
- resources/locales/he/lists.yml
|
@@ -848,6 +886,7 @@ files:
|
|
848
886
|
- resources/locales/he/units.yml
|
849
887
|
- resources/locales/hi/calendars.yml
|
850
888
|
- resources/locales/hi/currencies.yml
|
889
|
+
- resources/locales/hi/fields.yml
|
851
890
|
- resources/locales/hi/languages.yml
|
852
891
|
- resources/locales/hi/layout.yml
|
853
892
|
- resources/locales/hi/lists.yml
|
@@ -859,6 +898,7 @@ files:
|
|
859
898
|
- resources/locales/hi/units.yml
|
860
899
|
- resources/locales/hr/calendars.yml
|
861
900
|
- resources/locales/hr/currencies.yml
|
901
|
+
- resources/locales/hr/fields.yml
|
862
902
|
- resources/locales/hr/languages.yml
|
863
903
|
- resources/locales/hr/layout.yml
|
864
904
|
- resources/locales/hr/lists.yml
|
@@ -870,6 +910,7 @@ files:
|
|
870
910
|
- resources/locales/hr/units.yml
|
871
911
|
- resources/locales/hu/calendars.yml
|
872
912
|
- resources/locales/hu/currencies.yml
|
913
|
+
- resources/locales/hu/fields.yml
|
873
914
|
- resources/locales/hu/languages.yml
|
874
915
|
- resources/locales/hu/layout.yml
|
875
916
|
- resources/locales/hu/lists.yml
|
@@ -881,6 +922,7 @@ files:
|
|
881
922
|
- resources/locales/hu/units.yml
|
882
923
|
- resources/locales/id/calendars.yml
|
883
924
|
- resources/locales/id/currencies.yml
|
925
|
+
- resources/locales/id/fields.yml
|
884
926
|
- resources/locales/id/languages.yml
|
885
927
|
- resources/locales/id/layout.yml
|
886
928
|
- resources/locales/id/lists.yml
|
@@ -892,6 +934,7 @@ files:
|
|
892
934
|
- resources/locales/id/units.yml
|
893
935
|
- resources/locales/is/calendars.yml
|
894
936
|
- resources/locales/is/currencies.yml
|
937
|
+
- resources/locales/is/fields.yml
|
895
938
|
- resources/locales/is/languages.yml
|
896
939
|
- resources/locales/is/layout.yml
|
897
940
|
- resources/locales/is/lists.yml
|
@@ -903,6 +946,7 @@ files:
|
|
903
946
|
- resources/locales/is/units.yml
|
904
947
|
- resources/locales/it-CH/calendars.yml
|
905
948
|
- resources/locales/it-CH/currencies.yml
|
949
|
+
- resources/locales/it-CH/fields.yml
|
906
950
|
- resources/locales/it-CH/languages.yml
|
907
951
|
- resources/locales/it-CH/layout.yml
|
908
952
|
- resources/locales/it-CH/lists.yml
|
@@ -914,6 +958,7 @@ files:
|
|
914
958
|
- resources/locales/it-CH/units.yml
|
915
959
|
- resources/locales/it/calendars.yml
|
916
960
|
- resources/locales/it/currencies.yml
|
961
|
+
- resources/locales/it/fields.yml
|
917
962
|
- resources/locales/it/languages.yml
|
918
963
|
- resources/locales/it/layout.yml
|
919
964
|
- resources/locales/it/lists.yml
|
@@ -925,6 +970,7 @@ files:
|
|
925
970
|
- resources/locales/it/units.yml
|
926
971
|
- resources/locales/ja/calendars.yml
|
927
972
|
- resources/locales/ja/currencies.yml
|
973
|
+
- resources/locales/ja/fields.yml
|
928
974
|
- resources/locales/ja/languages.yml
|
929
975
|
- resources/locales/ja/layout.yml
|
930
976
|
- resources/locales/ja/lists.yml
|
@@ -936,6 +982,7 @@ files:
|
|
936
982
|
- resources/locales/ja/units.yml
|
937
983
|
- resources/locales/kn/calendars.yml
|
938
984
|
- resources/locales/kn/currencies.yml
|
985
|
+
- resources/locales/kn/fields.yml
|
939
986
|
- resources/locales/kn/languages.yml
|
940
987
|
- resources/locales/kn/layout.yml
|
941
988
|
- resources/locales/kn/lists.yml
|
@@ -947,6 +994,7 @@ files:
|
|
947
994
|
- resources/locales/kn/units.yml
|
948
995
|
- resources/locales/ko/calendars.yml
|
949
996
|
- resources/locales/ko/currencies.yml
|
997
|
+
- resources/locales/ko/fields.yml
|
950
998
|
- resources/locales/ko/languages.yml
|
951
999
|
- resources/locales/ko/layout.yml
|
952
1000
|
- resources/locales/ko/lists.yml
|
@@ -958,6 +1006,7 @@ files:
|
|
958
1006
|
- resources/locales/ko/units.yml
|
959
1007
|
- resources/locales/lv/calendars.yml
|
960
1008
|
- resources/locales/lv/currencies.yml
|
1009
|
+
- resources/locales/lv/fields.yml
|
961
1010
|
- resources/locales/lv/languages.yml
|
962
1011
|
- resources/locales/lv/layout.yml
|
963
1012
|
- resources/locales/lv/lists.yml
|
@@ -969,6 +1018,7 @@ files:
|
|
969
1018
|
- resources/locales/lv/units.yml
|
970
1019
|
- resources/locales/mr/calendars.yml
|
971
1020
|
- resources/locales/mr/currencies.yml
|
1021
|
+
- resources/locales/mr/fields.yml
|
972
1022
|
- resources/locales/mr/languages.yml
|
973
1023
|
- resources/locales/mr/layout.yml
|
974
1024
|
- resources/locales/mr/lists.yml
|
@@ -980,6 +1030,7 @@ files:
|
|
980
1030
|
- resources/locales/mr/units.yml
|
981
1031
|
- resources/locales/ms/calendars.yml
|
982
1032
|
- resources/locales/ms/currencies.yml
|
1033
|
+
- resources/locales/ms/fields.yml
|
983
1034
|
- resources/locales/ms/languages.yml
|
984
1035
|
- resources/locales/ms/layout.yml
|
985
1036
|
- resources/locales/ms/lists.yml
|
@@ -991,6 +1042,7 @@ files:
|
|
991
1042
|
- resources/locales/ms/units.yml
|
992
1043
|
- resources/locales/nb/calendars.yml
|
993
1044
|
- resources/locales/nb/currencies.yml
|
1045
|
+
- resources/locales/nb/fields.yml
|
994
1046
|
- resources/locales/nb/languages.yml
|
995
1047
|
- resources/locales/nb/layout.yml
|
996
1048
|
- resources/locales/nb/lists.yml
|
@@ -1002,6 +1054,7 @@ files:
|
|
1002
1054
|
- resources/locales/nb/units.yml
|
1003
1055
|
- resources/locales/nl/calendars.yml
|
1004
1056
|
- resources/locales/nl/currencies.yml
|
1057
|
+
- resources/locales/nl/fields.yml
|
1005
1058
|
- resources/locales/nl/languages.yml
|
1006
1059
|
- resources/locales/nl/layout.yml
|
1007
1060
|
- resources/locales/nl/lists.yml
|
@@ -1013,6 +1066,7 @@ files:
|
|
1013
1066
|
- resources/locales/nl/units.yml
|
1014
1067
|
- resources/locales/pl/calendars.yml
|
1015
1068
|
- resources/locales/pl/currencies.yml
|
1069
|
+
- resources/locales/pl/fields.yml
|
1016
1070
|
- resources/locales/pl/languages.yml
|
1017
1071
|
- resources/locales/pl/layout.yml
|
1018
1072
|
- resources/locales/pl/lists.yml
|
@@ -1024,6 +1078,7 @@ files:
|
|
1024
1078
|
- resources/locales/pl/units.yml
|
1025
1079
|
- resources/locales/pt/calendars.yml
|
1026
1080
|
- resources/locales/pt/currencies.yml
|
1081
|
+
- resources/locales/pt/fields.yml
|
1027
1082
|
- resources/locales/pt/languages.yml
|
1028
1083
|
- resources/locales/pt/layout.yml
|
1029
1084
|
- resources/locales/pt/lists.yml
|
@@ -1035,6 +1090,7 @@ files:
|
|
1035
1090
|
- resources/locales/pt/units.yml
|
1036
1091
|
- resources/locales/ro/calendars.yml
|
1037
1092
|
- resources/locales/ro/currencies.yml
|
1093
|
+
- resources/locales/ro/fields.yml
|
1038
1094
|
- resources/locales/ro/languages.yml
|
1039
1095
|
- resources/locales/ro/layout.yml
|
1040
1096
|
- resources/locales/ro/lists.yml
|
@@ -1046,6 +1102,7 @@ files:
|
|
1046
1102
|
- resources/locales/ro/units.yml
|
1047
1103
|
- resources/locales/ru/calendars.yml
|
1048
1104
|
- resources/locales/ru/currencies.yml
|
1105
|
+
- resources/locales/ru/fields.yml
|
1049
1106
|
- resources/locales/ru/languages.yml
|
1050
1107
|
- resources/locales/ru/layout.yml
|
1051
1108
|
- resources/locales/ru/lists.yml
|
@@ -1057,6 +1114,7 @@ files:
|
|
1057
1114
|
- resources/locales/ru/units.yml
|
1058
1115
|
- resources/locales/sk/calendars.yml
|
1059
1116
|
- resources/locales/sk/currencies.yml
|
1117
|
+
- resources/locales/sk/fields.yml
|
1060
1118
|
- resources/locales/sk/languages.yml
|
1061
1119
|
- resources/locales/sk/layout.yml
|
1062
1120
|
- resources/locales/sk/lists.yml
|
@@ -1068,6 +1126,7 @@ files:
|
|
1068
1126
|
- resources/locales/sk/units.yml
|
1069
1127
|
- resources/locales/sq/calendars.yml
|
1070
1128
|
- resources/locales/sq/currencies.yml
|
1129
|
+
- resources/locales/sq/fields.yml
|
1071
1130
|
- resources/locales/sq/languages.yml
|
1072
1131
|
- resources/locales/sq/layout.yml
|
1073
1132
|
- resources/locales/sq/lists.yml
|
@@ -1079,6 +1138,7 @@ files:
|
|
1079
1138
|
- resources/locales/sq/units.yml
|
1080
1139
|
- resources/locales/sr/calendars.yml
|
1081
1140
|
- resources/locales/sr/currencies.yml
|
1141
|
+
- resources/locales/sr/fields.yml
|
1082
1142
|
- resources/locales/sr/languages.yml
|
1083
1143
|
- resources/locales/sr/layout.yml
|
1084
1144
|
- resources/locales/sr/lists.yml
|
@@ -1090,6 +1150,7 @@ files:
|
|
1090
1150
|
- resources/locales/sr/units.yml
|
1091
1151
|
- resources/locales/sv/calendars.yml
|
1092
1152
|
- resources/locales/sv/currencies.yml
|
1153
|
+
- resources/locales/sv/fields.yml
|
1093
1154
|
- resources/locales/sv/languages.yml
|
1094
1155
|
- resources/locales/sv/layout.yml
|
1095
1156
|
- resources/locales/sv/lists.yml
|
@@ -1101,6 +1162,7 @@ files:
|
|
1101
1162
|
- resources/locales/sv/units.yml
|
1102
1163
|
- resources/locales/ta/calendars.yml
|
1103
1164
|
- resources/locales/ta/currencies.yml
|
1165
|
+
- resources/locales/ta/fields.yml
|
1104
1166
|
- resources/locales/ta/languages.yml
|
1105
1167
|
- resources/locales/ta/layout.yml
|
1106
1168
|
- resources/locales/ta/lists.yml
|
@@ -1112,6 +1174,7 @@ files:
|
|
1112
1174
|
- resources/locales/ta/units.yml
|
1113
1175
|
- resources/locales/th/calendars.yml
|
1114
1176
|
- resources/locales/th/currencies.yml
|
1177
|
+
- resources/locales/th/fields.yml
|
1115
1178
|
- resources/locales/th/languages.yml
|
1116
1179
|
- resources/locales/th/layout.yml
|
1117
1180
|
- resources/locales/th/lists.yml
|
@@ -1123,6 +1186,7 @@ files:
|
|
1123
1186
|
- resources/locales/th/units.yml
|
1124
1187
|
- resources/locales/tr/calendars.yml
|
1125
1188
|
- resources/locales/tr/currencies.yml
|
1189
|
+
- resources/locales/tr/fields.yml
|
1126
1190
|
- resources/locales/tr/languages.yml
|
1127
1191
|
- resources/locales/tr/layout.yml
|
1128
1192
|
- resources/locales/tr/lists.yml
|
@@ -1134,6 +1198,7 @@ files:
|
|
1134
1198
|
- resources/locales/tr/units.yml
|
1135
1199
|
- resources/locales/uk/calendars.yml
|
1136
1200
|
- resources/locales/uk/currencies.yml
|
1201
|
+
- resources/locales/uk/fields.yml
|
1137
1202
|
- resources/locales/uk/languages.yml
|
1138
1203
|
- resources/locales/uk/layout.yml
|
1139
1204
|
- resources/locales/uk/lists.yml
|
@@ -1145,6 +1210,7 @@ files:
|
|
1145
1210
|
- resources/locales/uk/units.yml
|
1146
1211
|
- resources/locales/ur/calendars.yml
|
1147
1212
|
- resources/locales/ur/currencies.yml
|
1213
|
+
- resources/locales/ur/fields.yml
|
1148
1214
|
- resources/locales/ur/languages.yml
|
1149
1215
|
- resources/locales/ur/layout.yml
|
1150
1216
|
- resources/locales/ur/lists.yml
|
@@ -1156,6 +1222,7 @@ files:
|
|
1156
1222
|
- resources/locales/ur/units.yml
|
1157
1223
|
- resources/locales/vi/calendars.yml
|
1158
1224
|
- resources/locales/vi/currencies.yml
|
1225
|
+
- resources/locales/vi/fields.yml
|
1159
1226
|
- resources/locales/vi/languages.yml
|
1160
1227
|
- resources/locales/vi/layout.yml
|
1161
1228
|
- resources/locales/vi/lists.yml
|
@@ -1167,6 +1234,7 @@ files:
|
|
1167
1234
|
- resources/locales/vi/units.yml
|
1168
1235
|
- resources/locales/zh-Hant/calendars.yml
|
1169
1236
|
- resources/locales/zh-Hant/currencies.yml
|
1237
|
+
- resources/locales/zh-Hant/fields.yml
|
1170
1238
|
- resources/locales/zh-Hant/languages.yml
|
1171
1239
|
- resources/locales/zh-Hant/layout.yml
|
1172
1240
|
- resources/locales/zh-Hant/lists.yml
|
@@ -1178,6 +1246,7 @@ files:
|
|
1178
1246
|
- resources/locales/zh-Hant/units.yml
|
1179
1247
|
- resources/locales/zh/calendars.yml
|
1180
1248
|
- resources/locales/zh/currencies.yml
|
1249
|
+
- resources/locales/zh/fields.yml
|
1181
1250
|
- resources/locales/zh/languages.yml
|
1182
1251
|
- resources/locales/zh/layout.yml
|
1183
1252
|
- resources/locales/zh/lists.yml
|
@@ -2382,6 +2451,7 @@ files:
|
|
2382
2451
|
- spec/shared/territories_spec.rb
|
2383
2452
|
- spec/shared/territory_spec.rb
|
2384
2453
|
- spec/shared/unicode_regex_spec.rb
|
2454
|
+
- spec/shared/unit_spec.rb
|
2385
2455
|
- spec/spec_helper.rb
|
2386
2456
|
- spec/tokenizers/calendars/date_tokenizer_spec.rb
|
2387
2457
|
- spec/tokenizers/calendars/datetime_tokenizer_spec.rb
|