twitter_cldr 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +177 -0
- data/NOTICE +26 -0
- data/README.md +83 -0
- data/Rakefile +36 -0
- data/lib/ext/calendars/date.rb +20 -0
- data/lib/ext/calendars/datetime.rb +36 -0
- data/lib/ext/calendars/time.rb +20 -0
- data/lib/ext/localized_object.rb +15 -0
- data/lib/ext/numbers/bignum.rb +3 -0
- data/lib/ext/numbers/fixnum.rb +3 -0
- data/lib/ext/numbers/float.rb +3 -0
- data/lib/ext/numbers/localized_number.rb +53 -0
- data/lib/ext/strings/symbol.rb +17 -0
- data/lib/formatters/base.rb +36 -0
- data/lib/formatters/calendars/date_formatter.rb +9 -0
- data/lib/formatters/calendars/datetime_formatter.rb +217 -0
- data/lib/formatters/calendars/time_formatter.rb +9 -0
- data/lib/formatters/numbers/currency_formatter.rb +25 -0
- data/lib/formatters/numbers/decimal_formatter.rb +22 -0
- data/lib/formatters/numbers/helpers/base.rb +18 -0
- data/lib/formatters/numbers/helpers/fraction.rb +29 -0
- data/lib/formatters/numbers/helpers/integer.rb +46 -0
- data/lib/formatters/numbers/number_formatter.rb +48 -0
- data/lib/formatters/numbers/percent_formatter.rb +18 -0
- data/lib/formatters/plurals/rules.rb +34 -0
- data/lib/shared/currencies.rb +33 -0
- data/lib/shared/languages.rb +48 -0
- data/lib/shared/resources.rb +45 -0
- data/lib/shared/timezones.rb +1 -0
- data/lib/tokenizers/base.rb +112 -0
- data/lib/tokenizers/calendars/date_tokenizer.rb +24 -0
- data/lib/tokenizers/calendars/datetime_tokenizer.rb +46 -0
- data/lib/tokenizers/calendars/time_tokenizer.rb +24 -0
- data/lib/tokenizers/key_path.rb +30 -0
- data/lib/tokenizers/numbers/number_tokenizer.rb +50 -0
- data/lib/tokenizers/token.rb +17 -0
- data/lib/twitter_cldr.rb +104 -0
- data/lib/version.rb +3 -0
- data/resources/ar/calendars.yml +145 -0
- data/resources/ar/languages.yml +498 -0
- data/resources/ar/numbers.yml +35 -0
- data/resources/ar/plurals.yml +1 -0
- data/resources/da/calendars.yml +157 -0
- data/resources/da/languages.yml +508 -0
- data/resources/da/numbers.yml +31 -0
- data/resources/da/plurals.yml +1 -0
- data/resources/de/calendars.yml +152 -0
- data/resources/de/languages.yml +508 -0
- data/resources/de/numbers.yml +31 -0
- data/resources/de/plurals.yml +1 -0
- data/resources/en/calendars.yml +145 -0
- data/resources/en/languages.yml +510 -0
- data/resources/en/numbers.yml +31 -0
- data/resources/en/plurals.yml +1 -0
- data/resources/es/calendars.yml +145 -0
- data/resources/es/languages.yml +508 -0
- data/resources/es/numbers.yml +30 -0
- data/resources/es/plurals.yml +1 -0
- data/resources/fa/calendars.yml +150 -0
- data/resources/fa/languages.yml +484 -0
- data/resources/fa/numbers.yml +30 -0
- data/resources/fa/plurals.yml +1 -0
- data/resources/fi/calendars.yml +176 -0
- data/resources/fi/languages.yml +508 -0
- data/resources/fi/numbers.yml +31 -0
- data/resources/fi/plurals.yml +1 -0
- data/resources/fil/calendars.yml +159 -0
- data/resources/fil/languages.yml +115 -0
- data/resources/fil/numbers.yml +31 -0
- data/resources/fil/plurals.yml +1 -0
- data/resources/fr/calendars.yml +149 -0
- data/resources/fr/languages.yml +508 -0
- data/resources/fr/numbers.yml +31 -0
- data/resources/fr/plurals.yml +1 -0
- data/resources/he/calendars.yml +145 -0
- data/resources/he/languages.yml +266 -0
- data/resources/he/numbers.yml +31 -0
- data/resources/he/plurals.yml +1 -0
- data/resources/hi/calendars.yml +144 -0
- data/resources/hi/languages.yml +505 -0
- data/resources/hi/numbers.yml +31 -0
- data/resources/hi/plurals.yml +1 -0
- data/resources/hu/calendars.yml +145 -0
- data/resources/hu/languages.yml +508 -0
- data/resources/hu/numbers.yml +30 -0
- data/resources/hu/plurals.yml +1 -0
- data/resources/id/calendars.yml +145 -0
- data/resources/id/languages.yml +506 -0
- data/resources/id/numbers.yml +30 -0
- data/resources/id/plurals.yml +1 -0
- data/resources/it/calendars.yml +164 -0
- data/resources/it/languages.yml +503 -0
- data/resources/it/numbers.yml +30 -0
- data/resources/it/plurals.yml +1 -0
- data/resources/ja/calendars.yml +157 -0
- data/resources/ja/languages.yml +502 -0
- data/resources/ja/numbers.yml +30 -0
- data/resources/ja/plurals.yml +1 -0
- data/resources/ko/calendars.yml +133 -0
- data/resources/ko/languages.yml +505 -0
- data/resources/ko/numbers.yml +30 -0
- data/resources/ko/plurals.yml +1 -0
- data/resources/ms/calendars.yml +145 -0
- data/resources/ms/languages.yml +54 -0
- data/resources/ms/numbers.yml +30 -0
- data/resources/ms/plurals.yml +1 -0
- data/resources/nl/calendars.yml +145 -0
- data/resources/nl/languages.yml +508 -0
- data/resources/nl/numbers.yml +31 -0
- data/resources/nl/plurals.yml +1 -0
- data/resources/no/calendars.yml +122 -0
- data/resources/no/languages.yml +508 -0
- data/resources/no/numbers.yml +30 -0
- data/resources/no/plurals.yml +1 -0
- data/resources/pl/calendars.yml +161 -0
- data/resources/pl/languages.yml +504 -0
- data/resources/pl/numbers.yml +31 -0
- data/resources/pl/plurals.yml +1 -0
- data/resources/pt/calendars.yml +145 -0
- data/resources/pt/languages.yml +508 -0
- data/resources/pt/numbers.yml +31 -0
- data/resources/pt/plurals.yml +1 -0
- data/resources/ru/calendars.yml +176 -0
- data/resources/ru/languages.yml +508 -0
- data/resources/ru/numbers.yml +30 -0
- data/resources/ru/plurals.yml +1 -0
- data/resources/shared/currencies.yml +451 -0
- data/resources/sv/calendars.yml +145 -0
- data/resources/sv/languages.yml +508 -0
- data/resources/sv/numbers.yml +31 -0
- data/resources/sv/plurals.yml +1 -0
- data/resources/th/calendars.yml +145 -0
- data/resources/th/languages.yml +507 -0
- data/resources/th/numbers.yml +30 -0
- data/resources/th/plurals.yml +1 -0
- data/resources/tr/calendars.yml +145 -0
- data/resources/tr/languages.yml +508 -0
- data/resources/tr/numbers.yml +30 -0
- data/resources/tr/plurals.yml +1 -0
- data/resources/ur/calendars.yml +133 -0
- data/resources/ur/languages.yml +81 -0
- data/resources/ur/numbers.yml +31 -0
- data/resources/ur/plurals.yml +1 -0
- data/resources/zh/calendars.yml +169 -0
- data/resources/zh/languages.yml +506 -0
- data/resources/zh/numbers.yml +30 -0
- data/resources/zh/plurals.yml +1 -0
- data/resources/zh-Hant/calendars.yml +141 -0
- data/resources/zh-Hant/languages.yml +409 -0
- data/resources/zh-Hant/numbers.yml +30 -0
- data/spec/ext/calendars/date_spec.rb +45 -0
- data/spec/ext/calendars/datetime_spec.rb +43 -0
- data/spec/ext/calendars/time_spec.rb +45 -0
- data/spec/ext/numbers/bignum_spec.rb +19 -0
- data/spec/ext/numbers/fixnum_spec.rb +19 -0
- data/spec/ext/numbers/float_spec.rb +19 -0
- data/spec/ext/numbers/localized_number_spec.rb +53 -0
- data/spec/ext/strings/symbol_spec.rb +23 -0
- data/spec/formatters/base_spec.rb +12 -0
- data/spec/formatters/calendars/datetime_formatter_spec.rb +324 -0
- data/spec/formatters/numbers/currency_formatter_spec.rb +27 -0
- data/spec/formatters/numbers/decimal_formatter_spec.rb +30 -0
- data/spec/formatters/numbers/helpers/fraction_spec.rb +22 -0
- data/spec/formatters/numbers/helpers/integer_spec.rb +99 -0
- data/spec/formatters/numbers/number_formatter_spec.rb +79 -0
- data/spec/formatters/numbers/percent_formatter_spec.rb +12 -0
- data/spec/formatters/plurals/rules_spec.rb +73 -0
- data/spec/shared/currencies_spec.rb +55 -0
- data/spec/shared/languages_spec.rb +82 -0
- data/spec/shared/resources_spec.rb +44 -0
- data/spec/spec_helper.rb +31 -0
- data/spec/tokenizers/base_spec.rb +134 -0
- data/spec/tokenizers/calendars/date_tokenizer_spec.rb +36 -0
- data/spec/tokenizers/calendars/datetime_tokenizer_spec.rb +52 -0
- data/spec/tokenizers/calendars/time_tokenizer_spec.rb +34 -0
- data/spec/tokenizers/key_path_spec.rb +44 -0
- data/spec/tokenizers/numbers/number_tokenizer_spec.rb +60 -0
- data/spec/tokenizers/token_spec.rb +18 -0
- data/spec/twitter_cldr_spec.rb +53 -0
- metadata +293 -0
@@ -0,0 +1,54 @@
|
|
1
|
+
ms:
|
2
|
+
languages:
|
3
|
+
af: Afrikaans
|
4
|
+
am: Amharic
|
5
|
+
ar: Arab
|
6
|
+
as: Assam
|
7
|
+
be: Belarus
|
8
|
+
bn: Benggala
|
9
|
+
bs: Bosnia
|
10
|
+
ca: Catalonia
|
11
|
+
cy: Wales
|
12
|
+
eo: Esperanto
|
13
|
+
eu: Basque
|
14
|
+
fa: Parsi
|
15
|
+
fy: Frisian
|
16
|
+
gd: "Scots Gaelic"
|
17
|
+
gl: Galicia
|
18
|
+
gu: Gujerat
|
19
|
+
hr: Croat
|
20
|
+
hu: Hungary
|
21
|
+
hy: Armenia
|
22
|
+
id: Indonesia
|
23
|
+
ka: Georgia
|
24
|
+
km: Khmer
|
25
|
+
kn: Kannada
|
26
|
+
la: Latin
|
27
|
+
ln: Lingala
|
28
|
+
lo: Laos
|
29
|
+
ml: Malayalam
|
30
|
+
mn: Mongolia
|
31
|
+
mr: Marathi
|
32
|
+
ms: "Bahasa Melayu"
|
33
|
+
mt: Malta
|
34
|
+
ne: Nepal
|
35
|
+
nn: "Nynorsk Norway"
|
36
|
+
pa: Punjabi
|
37
|
+
pt-PT: "Portugis Iberia"
|
38
|
+
sa: Sanskrit
|
39
|
+
sd: Sindhi
|
40
|
+
sh: SerboCroatia
|
41
|
+
si: Sinhala
|
42
|
+
sk: Slovak
|
43
|
+
sl: Slovenia
|
44
|
+
so: Somali
|
45
|
+
sq: Albania
|
46
|
+
sr: Serbia
|
47
|
+
su: Sunda
|
48
|
+
sw: Swahili
|
49
|
+
ta: Tamil
|
50
|
+
te: Telugu
|
51
|
+
th: Thai
|
52
|
+
ti: Tigrinya
|
53
|
+
ug: Uighur
|
54
|
+
vi: Vietnam
|
@@ -0,0 +1,30 @@
|
|
1
|
+
ms:
|
2
|
+
numbers:
|
3
|
+
formats:
|
4
|
+
currency:
|
5
|
+
patterns:
|
6
|
+
default: "¤#,##0.00;(¤#,##0.00)"
|
7
|
+
unit:
|
8
|
+
other: "{0} {1}"
|
9
|
+
decimal:
|
10
|
+
patterns:
|
11
|
+
default: {}
|
12
|
+
percent:
|
13
|
+
patterns:
|
14
|
+
default: {}
|
15
|
+
scientific:
|
16
|
+
patterns:
|
17
|
+
default: {}
|
18
|
+
symbols:
|
19
|
+
decimal: "."
|
20
|
+
exponential: E
|
21
|
+
group: ","
|
22
|
+
infinity: ∞
|
23
|
+
list: ;
|
24
|
+
minus_sign: "-"
|
25
|
+
nan: NaN
|
26
|
+
native_zero_digit: 0
|
27
|
+
pattern_digit: "#"
|
28
|
+
per_mille: ‰
|
29
|
+
percent_sign: "%"
|
30
|
+
plus_sign: +
|
@@ -0,0 +1 @@
|
|
1
|
+
ms: "{ :ms => { :i18n => {:plural => { :keys => [:other], :rule => lambda { |n| :other } } } } }"
|
@@ -0,0 +1,145 @@
|
|
1
|
+
nl:
|
2
|
+
calendars:
|
3
|
+
gregorian:
|
4
|
+
days:
|
5
|
+
format:
|
6
|
+
abbreviated:
|
7
|
+
fri: vr
|
8
|
+
mon: ma
|
9
|
+
sat: za
|
10
|
+
sun: zo
|
11
|
+
thu: do
|
12
|
+
tue: di
|
13
|
+
wed: wo
|
14
|
+
narrow: :"calendars.gregorian.days.stand-alone.narrow"
|
15
|
+
wide:
|
16
|
+
fri: vrijdag
|
17
|
+
mon: maandag
|
18
|
+
sat: zaterdag
|
19
|
+
sun: zondag
|
20
|
+
thu: donderdag
|
21
|
+
tue: dinsdag
|
22
|
+
wed: woensdag
|
23
|
+
stand-alone:
|
24
|
+
abbreviated: :"calendars.gregorian.days.format.abbreviated"
|
25
|
+
narrow:
|
26
|
+
fri: V
|
27
|
+
mon: M
|
28
|
+
sat: Z
|
29
|
+
sun: Z
|
30
|
+
thu: D
|
31
|
+
tue: D
|
32
|
+
wed: W
|
33
|
+
wide: :"calendars.gregorian.days.format.wide"
|
34
|
+
fields:
|
35
|
+
day: Dag
|
36
|
+
dayperiod: AM/PM
|
37
|
+
era: Tijdperk
|
38
|
+
hour: Uur
|
39
|
+
minute: Minuut
|
40
|
+
month: Maand
|
41
|
+
second: Seconde
|
42
|
+
week: Week
|
43
|
+
weekday: "Dag van de week"
|
44
|
+
year: Jaar
|
45
|
+
zone: Zone
|
46
|
+
formats:
|
47
|
+
date:
|
48
|
+
default: :"calendars.gregorian.formats.date.medium"
|
49
|
+
full:
|
50
|
+
pattern: "EEEE d MMMM y"
|
51
|
+
long:
|
52
|
+
pattern: "d MMMM y"
|
53
|
+
medium:
|
54
|
+
pattern: "d MMM y"
|
55
|
+
short:
|
56
|
+
pattern: dd-MM-yy
|
57
|
+
datetime:
|
58
|
+
default: :"calendars.gregorian.formats.datetime.medium"
|
59
|
+
full:
|
60
|
+
pattern: "{1} {0}"
|
61
|
+
long:
|
62
|
+
pattern: "{1} {0}"
|
63
|
+
medium:
|
64
|
+
pattern: "{1} {0}"
|
65
|
+
short:
|
66
|
+
pattern: "{1} {0}"
|
67
|
+
time:
|
68
|
+
default: :"calendars.gregorian.formats.time.medium"
|
69
|
+
full:
|
70
|
+
pattern: "HH:mm:ss zzzz"
|
71
|
+
long:
|
72
|
+
pattern: "HH:mm:ss z"
|
73
|
+
medium:
|
74
|
+
pattern: "HH:mm:ss"
|
75
|
+
short:
|
76
|
+
pattern: "HH:mm"
|
77
|
+
months:
|
78
|
+
format:
|
79
|
+
abbreviated:
|
80
|
+
1: jan.
|
81
|
+
10: okt.
|
82
|
+
11: nov.
|
83
|
+
12: dec.
|
84
|
+
2: feb.
|
85
|
+
3: mrt.
|
86
|
+
4: apr.
|
87
|
+
5: mei
|
88
|
+
6: jun.
|
89
|
+
7: jul.
|
90
|
+
8: aug.
|
91
|
+
9: sep.
|
92
|
+
narrow: :"calendars.gregorian.months.stand-alone.narrow"
|
93
|
+
wide:
|
94
|
+
1: januari
|
95
|
+
10: oktober
|
96
|
+
11: november
|
97
|
+
12: december
|
98
|
+
2: februari
|
99
|
+
3: maart
|
100
|
+
4: april
|
101
|
+
5: mei
|
102
|
+
6: juni
|
103
|
+
7: juli
|
104
|
+
8: augustus
|
105
|
+
9: september
|
106
|
+
stand-alone:
|
107
|
+
abbreviated: :"calendars.gregorian.months.format.abbreviated"
|
108
|
+
narrow:
|
109
|
+
1: J
|
110
|
+
10: O
|
111
|
+
11: N
|
112
|
+
12: D
|
113
|
+
2: F
|
114
|
+
3: M
|
115
|
+
4: A
|
116
|
+
5: M
|
117
|
+
6: J
|
118
|
+
7: J
|
119
|
+
8: A
|
120
|
+
9: S
|
121
|
+
wide: :"calendars.gregorian.months.format.wide"
|
122
|
+
periods:
|
123
|
+
am: AM
|
124
|
+
pm: PM
|
125
|
+
quarters:
|
126
|
+
format:
|
127
|
+
abbreviated:
|
128
|
+
1: K1
|
129
|
+
2: K2
|
130
|
+
3: K3
|
131
|
+
4: K4
|
132
|
+
narrow: :"calendars.gregorian.quarters.stand-alone.narrow"
|
133
|
+
wide:
|
134
|
+
1: "1e kwartaal"
|
135
|
+
2: "2e kwartaal"
|
136
|
+
3: "3e kwartaal"
|
137
|
+
4: "4e kwartaal"
|
138
|
+
stand-alone:
|
139
|
+
abbreviated: :"calendars.gregorian.quarters.format.abbreviated"
|
140
|
+
narrow:
|
141
|
+
1: 1
|
142
|
+
2: 2
|
143
|
+
3: 3
|
144
|
+
4: 4
|
145
|
+
wide: :"calendars.gregorian.quarters.format.wide"
|