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,115 @@
|
|
1
|
+
fil:
|
2
|
+
languages:
|
3
|
+
af: Afrikaans
|
4
|
+
am: Amharic
|
5
|
+
ar: Arabic
|
6
|
+
as: Assamese
|
7
|
+
az: Azerbaijani
|
8
|
+
be: Belarusian
|
9
|
+
bg: Bulgarian
|
10
|
+
bh: Bihari
|
11
|
+
bn: "Bengali; Bangla"
|
12
|
+
br: Breton
|
13
|
+
bs: Bosnian
|
14
|
+
ca: Catalan
|
15
|
+
cs: Czech
|
16
|
+
cy: Welsh
|
17
|
+
da: Danish
|
18
|
+
de: Aleman
|
19
|
+
el: Griyego
|
20
|
+
en: Ingles
|
21
|
+
en-GB: "Ingles (UK)"
|
22
|
+
en-US: "Ingles (US)"
|
23
|
+
eo: Esperanto
|
24
|
+
es: Espanyol
|
25
|
+
et: Estonian
|
26
|
+
eu: Basque
|
27
|
+
fa: Persian
|
28
|
+
fi: Finnish
|
29
|
+
fil: Filipino
|
30
|
+
fo: Faroeso
|
31
|
+
fr: Pranses
|
32
|
+
fy: Prisian
|
33
|
+
ga: Irish
|
34
|
+
gd: "Scots Gaelic"
|
35
|
+
gl: Galician
|
36
|
+
gn: Guarani
|
37
|
+
gu: Gujarati
|
38
|
+
he: Hebreo
|
39
|
+
hi: Hindu
|
40
|
+
hr: Croatian
|
41
|
+
hu: Hungarian
|
42
|
+
hy: Armenian
|
43
|
+
ia: Interlingua
|
44
|
+
id: Indonesian
|
45
|
+
ie: Interlingue
|
46
|
+
is: Icelandic
|
47
|
+
it: Italyano
|
48
|
+
ja: Japanese
|
49
|
+
jv: Javanese
|
50
|
+
ka: Georgian
|
51
|
+
km: Khmer
|
52
|
+
kn: Kannada
|
53
|
+
ko: Korean
|
54
|
+
ku: Kurdish
|
55
|
+
ky: Kirghiz
|
56
|
+
la: Latin
|
57
|
+
ln: Lingala
|
58
|
+
lo: Lao
|
59
|
+
lt: Lithuanian
|
60
|
+
lv: Latvian
|
61
|
+
mk: Macedonian
|
62
|
+
ml: Malayalam
|
63
|
+
mn: Mongolian
|
64
|
+
mr: Marathi
|
65
|
+
ms: Malay
|
66
|
+
mt: Maltese
|
67
|
+
ne: Nepali
|
68
|
+
nl: Olandes
|
69
|
+
nn: "Norwegian Nynorsk"
|
70
|
+
"no": Norwegian
|
71
|
+
oc: Occitan
|
72
|
+
or: Oriya
|
73
|
+
pa: Punjabi
|
74
|
+
pl: Polish
|
75
|
+
ps: Pashto
|
76
|
+
pt: Portuges
|
77
|
+
pt-BR: "Portuges (Brasil)"
|
78
|
+
rm: Rhaeto-Romance
|
79
|
+
ro: Romanian
|
80
|
+
ru: Ruso
|
81
|
+
sa: Sanskrit
|
82
|
+
sd: Sindhi
|
83
|
+
sh: Serbo-Croatian
|
84
|
+
si: Sinhalese
|
85
|
+
sk: Eslobak
|
86
|
+
sl: Eslobenyan
|
87
|
+
so: Somali
|
88
|
+
sq: Albanian
|
89
|
+
sr: Serbiran
|
90
|
+
st: Sesoto
|
91
|
+
su: "Taga Sundan"
|
92
|
+
sv: Suwiso
|
93
|
+
sw: Swahili
|
94
|
+
ta: Tamil
|
95
|
+
te: Telugu
|
96
|
+
th: Thai
|
97
|
+
ti: Tigrinya
|
98
|
+
tk: Turkmen
|
99
|
+
tl: Tagalog
|
100
|
+
tlh: Klingon
|
101
|
+
tr: Turko
|
102
|
+
tw: Twi
|
103
|
+
ug: Uighur
|
104
|
+
uk: Ukranian
|
105
|
+
und: und
|
106
|
+
ur: Urdu
|
107
|
+
uz: Uzbeko
|
108
|
+
vi: Vietnamese
|
109
|
+
wo: Wolof
|
110
|
+
xh: Xhosa
|
111
|
+
yi: Yiddish
|
112
|
+
zh: zh
|
113
|
+
zh-Hans: "Intsik (Pinadali)"
|
114
|
+
zh-Hant: "Intsik (Tradisyunal)"
|
115
|
+
zu: Zulu
|
@@ -0,0 +1,31 @@
|
|
1
|
+
fil:
|
2
|
+
numbers:
|
3
|
+
formats:
|
4
|
+
currency:
|
5
|
+
patterns:
|
6
|
+
default: "¤ #,##0.00"
|
7
|
+
unit:
|
8
|
+
one: "{0} {1}"
|
9
|
+
other: "{0} {1}"
|
10
|
+
decimal:
|
11
|
+
patterns:
|
12
|
+
default: "#,##0.###"
|
13
|
+
percent:
|
14
|
+
patterns:
|
15
|
+
default: "#,##0%"
|
16
|
+
scientific:
|
17
|
+
patterns:
|
18
|
+
default: "#E0"
|
19
|
+
symbols:
|
20
|
+
decimal: "."
|
21
|
+
exponential: E
|
22
|
+
group: ","
|
23
|
+
infinity: ∞
|
24
|
+
list: ;
|
25
|
+
minus_sign: "-"
|
26
|
+
nan: NaN
|
27
|
+
native_zero_digit: 0
|
28
|
+
pattern_digit: "#"
|
29
|
+
per_mille: ‰
|
30
|
+
percent_sign: "%"
|
31
|
+
plus_sign: +
|
@@ -0,0 +1 @@
|
|
1
|
+
fil: "{ :fil => { :i18n => {:plural => { :keys => [:one, :other], :rule => lambda { |n| [0, 1].include?(n) ? :one : :other } } } } }"
|
@@ -0,0 +1,149 @@
|
|
1
|
+
fr:
|
2
|
+
calendars:
|
3
|
+
gregorian:
|
4
|
+
days:
|
5
|
+
format:
|
6
|
+
abbreviated:
|
7
|
+
fri: ven.
|
8
|
+
mon: lun.
|
9
|
+
sat: sam.
|
10
|
+
sun: dim.
|
11
|
+
thu: jeu.
|
12
|
+
tue: mar.
|
13
|
+
wed: mer.
|
14
|
+
narrow: :"calendars.gregorian.days.stand-alone.narrow"
|
15
|
+
wide:
|
16
|
+
fri: vendredi
|
17
|
+
mon: lundi
|
18
|
+
sat: samedi
|
19
|
+
sun: dimanche
|
20
|
+
thu: jeudi
|
21
|
+
tue: mardi
|
22
|
+
wed: mercredi
|
23
|
+
stand-alone:
|
24
|
+
abbreviated: :"calendars.gregorian.days.format.abbreviated"
|
25
|
+
narrow:
|
26
|
+
fri: V
|
27
|
+
mon: L
|
28
|
+
sat: S
|
29
|
+
sun: D
|
30
|
+
thu: J
|
31
|
+
tue: M
|
32
|
+
wed: M
|
33
|
+
wide: :"calendars.gregorian.days.format.wide"
|
34
|
+
fields:
|
35
|
+
day: jour
|
36
|
+
dayperiod: cadran
|
37
|
+
era: ère
|
38
|
+
hour: heure
|
39
|
+
minute: minute
|
40
|
+
month: mois
|
41
|
+
second: seconde
|
42
|
+
week: semaine
|
43
|
+
weekday: "jour de la semaine"
|
44
|
+
year: année
|
45
|
+
zone: "fuseau horaire"
|
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: janv.
|
81
|
+
10: oct.
|
82
|
+
11: nov.
|
83
|
+
12: déc.
|
84
|
+
2: févr.
|
85
|
+
3: mars
|
86
|
+
4: avr.
|
87
|
+
5: mai
|
88
|
+
6: juin
|
89
|
+
7: juil.
|
90
|
+
8: août
|
91
|
+
9: sept.
|
92
|
+
narrow: :"calendars.gregorian.months.stand-alone.narrow"
|
93
|
+
wide:
|
94
|
+
1: janvier
|
95
|
+
10: octobre
|
96
|
+
11: novembre
|
97
|
+
12: décembre
|
98
|
+
2: février
|
99
|
+
3: mars
|
100
|
+
4: avril
|
101
|
+
5: mai
|
102
|
+
6: juin
|
103
|
+
7: juillet
|
104
|
+
8: août
|
105
|
+
9: septembre
|
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: T1
|
129
|
+
2: T2
|
130
|
+
3: T3
|
131
|
+
4: T4
|
132
|
+
narrow:
|
133
|
+
1: T1
|
134
|
+
2: T2
|
135
|
+
3: T3
|
136
|
+
4: T4
|
137
|
+
wide:
|
138
|
+
1: "1er trimestre"
|
139
|
+
2: "2e trimestre"
|
140
|
+
3: "3e trimestre"
|
141
|
+
4: "4e trimestre"
|
142
|
+
stand-alone:
|
143
|
+
abbreviated: :"calendars.gregorian.quarters.format.abbreviated"
|
144
|
+
narrow:
|
145
|
+
1: 1
|
146
|
+
2: 2
|
147
|
+
3: 3
|
148
|
+
4: 4
|
149
|
+
wide: :"calendars.gregorian.quarters.format.wide"
|