twitter_cldr 6.9.0 → 6.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -28
  3. data/lib/twitter_cldr/resources/calendars_importer.rb +48 -46
  4. data/lib/twitter_cldr/resources/cldr_data_builder.rb +36 -0
  5. data/lib/twitter_cldr/resources/cldr_document_set.rb +149 -0
  6. data/lib/twitter_cldr/resources/cldr_dtd.rb +110 -0
  7. data/lib/twitter_cldr/resources/cldr_locale.rb +78 -0
  8. data/lib/twitter_cldr/resources/list_formats_importer.rb +1 -1
  9. data/lib/twitter_cldr/resources/number_formats_importer.rb +1 -1
  10. data/lib/twitter_cldr/resources/readme_renderer.rb +6 -2
  11. data/lib/twitter_cldr/resources/requirements/cldr_requirement.rb +12 -61
  12. data/lib/twitter_cldr/resources/territories_importer.rb +1 -1
  13. data/lib/twitter_cldr/resources/timezones_importer.rb +1 -1
  14. data/lib/twitter_cldr/resources/unicode_property_aliases_importer.rb +2 -0
  15. data/lib/twitter_cldr/resources/units_importer.rb +1 -1
  16. data/lib/twitter_cldr/resources.rb +8 -3
  17. data/lib/twitter_cldr/shared/calendar.rb +1 -1
  18. data/lib/twitter_cldr/version.rb +1 -1
  19. data/resources/locales/ar/calendars.yml +2 -1
  20. data/resources/locales/az/calendars.yml +2 -1
  21. data/resources/locales/be/calendars.yml +2 -1
  22. data/resources/locales/bg/calendars.yml +2 -1
  23. data/resources/locales/bn/calendars.yml +2 -1
  24. data/resources/locales/bo/calendars.yml +34 -2
  25. data/resources/locales/bs/calendars.yml +1 -0
  26. data/resources/locales/cy/calendars.yml +1 -0
  27. data/resources/locales/el/calendars.yml +2 -1
  28. data/resources/locales/en/calendars.yml +15 -0
  29. data/resources/locales/en-001/calendars.yml +6 -0
  30. data/resources/locales/en-150/calendars.yml +6 -0
  31. data/resources/locales/en-AU/calendars.yml +4 -0
  32. data/resources/locales/en-CA/calendars.yml +11 -5
  33. data/resources/locales/en-GB/calendars.yml +3 -0
  34. data/resources/locales/en-IE/calendars.yml +6 -0
  35. data/resources/locales/en-IN/calendars.yml +6 -0
  36. data/resources/locales/en-NZ/calendars.yml +6 -0
  37. data/resources/locales/en-SG/calendars.yml +6 -0
  38. data/resources/locales/en-US/calendars.yml +15 -0
  39. data/resources/locales/en-ZA/calendars.yml +6 -0
  40. data/resources/locales/eo/calendars.yml +27 -0
  41. data/resources/locales/es/calendars.yml +2 -1
  42. data/resources/locales/es-419/calendars.yml +2 -1
  43. data/resources/locales/es-AR/calendars.yml +2 -1
  44. data/resources/locales/es-CO/calendars.yml +2 -1
  45. data/resources/locales/es-MX/calendars.yml +2 -1
  46. data/resources/locales/es-US/calendars.yml +2 -1
  47. data/resources/locales/fil/calendars.yml +4 -3
  48. data/resources/locales/gl/calendars.yml +2 -1
  49. data/resources/locales/hi/calendars.yml +2 -1
  50. data/resources/locales/hy/calendars.yml +4 -3
  51. data/resources/locales/ka/calendars.yml +2 -1
  52. data/resources/locales/kk/calendars.yml +2 -1
  53. data/resources/locales/km/calendars.yml +2 -1
  54. data/resources/locales/kn/calendars.yml +2 -1
  55. data/resources/locales/ko/calendars.yml +2 -1
  56. data/resources/locales/lo/calendars.yml +2 -1
  57. data/resources/locales/mk/calendars.yml +1 -1
  58. data/resources/locales/mr/calendars.yml +2 -1
  59. data/resources/locales/mt/calendars.yml +2 -1
  60. data/resources/locales/my/calendars.yml +2 -1
  61. data/resources/locales/pl/calendars.yml +2 -1
  62. data/resources/locales/pt/calendars.yml +2 -1
  63. data/resources/locales/pt-PT/calendars.yml +2 -1
  64. data/resources/locales/sk/calendars.yml +2 -1
  65. data/resources/locales/sl/calendars.yml +2 -1
  66. data/resources/locales/sr/calendars.yml +2 -0
  67. data/resources/locales/sr-Cyrl-ME/calendars.yml +3 -1
  68. data/resources/locales/sr-Latn-ME/calendars.yml +3 -1
  69. data/resources/locales/sw/calendars.yml +2 -1
  70. data/resources/locales/ta/calendars.yml +2 -1
  71. data/resources/locales/th/calendars.yml +1 -0
  72. data/resources/locales/tr/calendars.yml +2 -1
  73. data/resources/locales/ur/calendars.yml +2 -1
  74. data/resources/locales/xh/calendars.yml +32 -1
  75. data/resources/locales/zu/calendars.yml +3 -1
  76. data/spec/formatters/calendars/datetime_formatter_spec.rb +2 -2
  77. data/spec/shared/calendar_spec.rb +8 -8
  78. metadata +6 -2
@@ -130,7 +130,8 @@
130
130
  0: "pred naším letopočtom"
131
131
  1: "nášho letopočtu"
132
132
  :narrow:
133
- 0: ""
133
+ 0: BCE
134
+ 1: CE
134
135
  :fields:
135
136
  :day: deň
136
137
  :day-narrow: d.
@@ -127,7 +127,8 @@
127
127
  0: "pred našim štetjem"
128
128
  1: "po našem štetju"
129
129
  :narrow:
130
- 0: ""
130
+ 0: BCE
131
+ 1: CE
131
132
  :fields:
132
133
  :day: dan
133
134
  :day-narrow: dan
@@ -153,6 +153,7 @@
153
153
  :minute-narrow: мин.
154
154
  :minute-short: мин.
155
155
  :month: месец
156
+ :month-narrow: Month
156
157
  :month-short: мес.
157
158
  :quarter: квартал
158
159
  :quarter-narrow: кв.
@@ -161,6 +162,7 @@
161
162
  :second-narrow: с
162
163
  :second-short: сек.
163
164
  :week: недеља
165
+ :week-narrow: Week
164
166
  :week-short: нед.
165
167
  :weekOfMonth: "недеља у месецу"
166
168
  :weekOfMonth-narrow: "нед. у мес."
@@ -128,7 +128,7 @@
128
128
  0: "п. н. е."
129
129
  1: "н. е."
130
130
  :name:
131
- 0: "прије нове ере"
131
+ 0: "пре наше ере"
132
132
  1: "наше ере"
133
133
  :narrow:
134
134
  0: п.н.е.
@@ -153,6 +153,7 @@
153
153
  :minute-narrow: мин.
154
154
  :minute-short: мин.
155
155
  :month: месец
156
+ :month-narrow: Month
156
157
  :month-short: мес.
157
158
  :quarter: квартал
158
159
  :quarter-narrow: кв.
@@ -161,6 +162,7 @@
161
162
  :second-narrow: с
162
163
  :second-short: сек.
163
164
  :week: недеља
165
+ :week-narrow: Week
164
166
  :week-short: нед.
165
167
  :weekOfMonth: "недеља у месецу"
166
168
  :weekOfMonth-narrow: "нед. у мес."
@@ -128,7 +128,7 @@
128
128
  0: "p. n. e."
129
129
  1: "n. e."
130
130
  :name:
131
- 0: "prije nove ere"
131
+ 0: "pre naše ere"
132
132
  1: "naše ere"
133
133
  :narrow:
134
134
  0: p.n.e.
@@ -153,6 +153,7 @@
153
153
  :minute-narrow: min.
154
154
  :minute-short: min.
155
155
  :month: mesec
156
+ :month-narrow: Month
156
157
  :month-short: mes.
157
158
  :quarter: kvartal
158
159
  :quarter-narrow: kv.
@@ -161,6 +162,7 @@
161
162
  :second-narrow: s
162
163
  :second-short: sek.
163
164
  :week: nedelja
165
+ :week-narrow: Week
164
166
  :week-short: ned.
165
167
  :weekOfMonth: "nedelja u mesecu"
166
168
  :weekOfMonth-narrow: "ned. u mes."
@@ -127,7 +127,8 @@
127
127
  0: BCE
128
128
  1: CE
129
129
  :narrow:
130
- 0: ""
130
+ 0: BCE
131
+ 1: CE
131
132
  :fields:
132
133
  :day: siku
133
134
  :day-narrow: siku
@@ -128,7 +128,8 @@
128
128
  0: பொ.ச.மு
129
129
  1: பொ.ச
130
130
  :narrow:
131
- 0: ""
131
+ 0: BCE
132
+ 1: CE
132
133
  :fields:
133
134
  :day: நாள்
134
135
  :day-narrow: நா.
@@ -155,6 +155,7 @@
155
155
  :hour-short: ชม.
156
156
  :minute: นาที
157
157
  :minute-narrow: นาที
158
+ :minute-short: Minute
158
159
  :month: เดือน
159
160
  :month-narrow: เดือน
160
161
  :month-short: เดือน
@@ -129,7 +129,8 @@
129
129
  0: "İsa’dan Önce"
130
130
  1: "İsa’dan Sonra"
131
131
  :narrow:
132
- 0: ""
132
+ 0: BCE
133
+ 1: CE
133
134
  :fields:
134
135
  :day: gün
135
136
  :day-narrow: gün
@@ -126,7 +126,8 @@
126
126
  0: "عام دور سے قبل"
127
127
  1: "عام دور"
128
128
  :narrow:
129
- 0: ""
129
+ 0: BCE
130
+ 1: CE
130
131
  :fields:
131
132
  :day: دن
132
133
  :day-narrow: دن
@@ -126,23 +126,54 @@
126
126
  0: BC
127
127
  1: "umnyaka wokuzalwa kukaYesu"
128
128
  :narrow:
129
- 0: ""
129
+ 0: BCE
130
+ 1: CE
130
131
  :fields:
131
132
  :day: Day
133
+ :day-narrow: Day
134
+ :day-short: Day
132
135
  :dayOfYear: "Day Of Year"
136
+ :dayOfYear-narrow: "Day Of Year"
137
+ :dayOfYear-short: "Day Of Year"
133
138
  :dayperiod: Dayperiod
139
+ :dayperiod-narrow: Dayperiod
140
+ :dayperiod-short: Dayperiod
134
141
  :era: Era
142
+ :era-narrow: Era
143
+ :era-short: Era
135
144
  :hour: Hour
145
+ :hour-narrow: Hour
146
+ :hour-short: Hour
136
147
  :minute: Minute
148
+ :minute-narrow: Minute
149
+ :minute-short: Minute
137
150
  :month: Month
151
+ :month-narrow: Month
152
+ :month-short: Month
138
153
  :quarter: Quarter
154
+ :quarter-narrow: Quarter
155
+ :quarter-short: Quarter
139
156
  :second: Second
157
+ :second-narrow: Second
158
+ :second-short: Second
140
159
  :week: Week
160
+ :week-narrow: Week
161
+ :week-short: Week
141
162
  :weekOfMonth: "Week Of Month"
163
+ :weekOfMonth-narrow: "Week Of Month"
164
+ :weekOfMonth-short: "Week Of Month"
142
165
  :weekday: "Day of the Week"
166
+ :weekday-narrow: "Day of the Week"
167
+ :weekday-short: "Day of the Week"
143
168
  :weekdayOfMonth: "Weekday Of Month"
169
+ :weekdayOfMonth-narrow: "Weekday Of Month"
170
+ :weekdayOfMonth-short: "Weekday Of Month"
144
171
  :year: Year
172
+ :year-narrow: Year
173
+ :year-short: Year
145
174
  :zone: Zone
175
+ :zone-narrow: Zone
176
+ :zone-short: Zone
146
177
  :formats:
147
178
  :date:
148
179
  :full:
@@ -126,7 +126,8 @@
126
126
  0: BCE
127
127
  1: CE
128
128
  :narrow:
129
- 0: ""
129
+ 0: BCE
130
+ 1: CE
130
131
  :fields:
131
132
  :day: Usuku
132
133
  :day-narrow: Usuku
@@ -166,6 +167,7 @@
166
167
  :weekday-short: "Usuku evikini"
167
168
  :weekdayOfMonth: "usuku lwenyanga"
168
169
  :weekdayOfMonth-narrow: "usuku lwenyanga"
170
+ :weekdayOfMonth-short: "Weekday Of Month"
169
171
  :year: Unyaka
170
172
  :year-narrow: Unyaka
171
173
  :year-short: Unyaka
@@ -444,8 +444,8 @@ describe TwitterCldr::Formatters::DateTimeFormatter do
444
444
  end
445
445
 
446
446
  it "pattern LLL" do
447
- expect(@formatter.send(:month_stand_alone, Date.new(2010, 1, 1), 'LLL', 3)).to eq("Jan")
448
- expect(@formatter.send(:month_stand_alone, Date.new(2010, 10, 1), 'LLL', 3)).to eq("Okt")
447
+ expect(@formatter.send(:month_stand_alone, Date.new(2010, 1, 1), 'LLL', 3)).to eq("Jan.")
448
+ expect(@formatter.send(:month_stand_alone, Date.new(2010, 10, 1), 'LLL', 3)).to eq("Okt.")
449
449
  end
450
450
 
451
451
  it "pattern LLLL" do
@@ -56,7 +56,7 @@ describe TwitterCldr::Shared::Calendar do
56
56
  end
57
57
 
58
58
  it 'supports abbreviated names form' do
59
- expect(calendar.months(:abbreviated)).to eq(%w[Jan Feb Mär Apr Mai Jun Jul Aug Sep Okt Nov Dez])
59
+ expect(calendar.months(:abbreviated)).to eq(%w[Jan. Feb. März Apr. Mai Juni Juli Aug. Sept. Okt. Nov. Dez.])
60
60
  end
61
61
 
62
62
  it 'returns nil if invalid names form is passed' do
@@ -109,13 +109,13 @@ describe TwitterCldr::Shared::Calendar do
109
109
 
110
110
  it 'supports abbreviated names form' do
111
111
  expect(calendar.weekdays(:abbreviated)).to eq({
112
- sun: 'So',
113
- mon: 'Mo',
114
- tue: 'Di',
115
- wed: 'Mi',
116
- thu: 'Do',
117
- fri: 'Fr',
118
- sat: 'Sa'
112
+ sun: 'So.',
113
+ mon: 'Mo.',
114
+ tue: 'Di.',
115
+ wed: 'Mi.',
116
+ thu: 'Do.',
117
+ fri: 'Fr.',
118
+ sat: 'Sa.'
119
119
  })
120
120
  end
121
121
 
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.9.0
4
+ version: 6.10.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: 2021-12-01 00:00:00.000000000 Z
11
+ date: 2021-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: camertron-eprun
@@ -138,6 +138,10 @@ files:
138
138
  - lib/twitter_cldr/resources/calendars_importer.rb
139
139
  - lib/twitter_cldr/resources/casefolder.rb.erb
140
140
  - lib/twitter_cldr/resources/casefolder_class_generator.rb
141
+ - lib/twitter_cldr/resources/cldr_data_builder.rb
142
+ - lib/twitter_cldr/resources/cldr_document_set.rb
143
+ - lib/twitter_cldr/resources/cldr_dtd.rb
144
+ - lib/twitter_cldr/resources/cldr_locale.rb
141
145
  - lib/twitter_cldr/resources/collation_tests_importer.rb
142
146
  - lib/twitter_cldr/resources/collation_tries_importer.rb
143
147
  - lib/twitter_cldr/resources/currency_symbols_importer.rb