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,81 @@
|
|
1
|
+
ur:
|
2
|
+
languages:
|
3
|
+
af: ايفريکانز
|
4
|
+
am: امہاری
|
5
|
+
ar: عربی
|
6
|
+
as: آسامی
|
7
|
+
az: آزربائیجانی
|
8
|
+
be: بيلاروسی
|
9
|
+
bg: بلغاری
|
10
|
+
bh: بِہاری
|
11
|
+
bn: بنگالی
|
12
|
+
br: برِیٹن
|
13
|
+
bs: بوسنی
|
14
|
+
ca: کاٹالانين
|
15
|
+
cs: چيک
|
16
|
+
da: ڈينش
|
17
|
+
de: جرمن
|
18
|
+
el: يونانی
|
19
|
+
en: انگريزی
|
20
|
+
en-GB: "برطانوی انگریزی"
|
21
|
+
eo: ايسپرانٹو
|
22
|
+
et: اسٹونين
|
23
|
+
eu: باسکی
|
24
|
+
fa: فارسی
|
25
|
+
fi: فنّنِش
|
26
|
+
fil: ٹيگالاگی
|
27
|
+
fo: فیروئیز
|
28
|
+
fr: فرانسيسی
|
29
|
+
ga: آئيرِش
|
30
|
+
gd: "سکاٹ گيلِک"
|
31
|
+
gl: گاليشيائی
|
32
|
+
gn: گُارانی
|
33
|
+
gu: گجراتی
|
34
|
+
he: عبرانی
|
35
|
+
hi: ہندی
|
36
|
+
hr: کراتی
|
37
|
+
hu: ہنگیرین
|
38
|
+
hy: ارمینی
|
39
|
+
ia: انٹرلنگوی
|
40
|
+
id: انڈونيثيائی
|
41
|
+
it: اطالوی
|
42
|
+
ja: جاپانی
|
43
|
+
jv: جاوی
|
44
|
+
ka: جارجی
|
45
|
+
km: کمبوڈیَن
|
46
|
+
kn: کنّاڈا
|
47
|
+
ko: کورين
|
48
|
+
ku: كردش
|
49
|
+
ky: کرغیزی
|
50
|
+
la: لاطينی
|
51
|
+
ln: لِنگَلا
|
52
|
+
lo: لاؤشِیَن
|
53
|
+
lt: لتھُواینین
|
54
|
+
lv: ليٹوين
|
55
|
+
mk: مقدونيائی
|
56
|
+
ml: مالايالم
|
57
|
+
mn: منگؤلی
|
58
|
+
mr: مراٹهی
|
59
|
+
ms: مالائی
|
60
|
+
mt: مالٹی
|
61
|
+
ne: نيپالی
|
62
|
+
nl: ڈچ
|
63
|
+
nn: "نورویجینی (نینورسک)"
|
64
|
+
"no": نارويجين
|
65
|
+
oc: آکيٹانی
|
66
|
+
or: اورِیا
|
67
|
+
pa: پنجابی
|
68
|
+
pl: پولستانی
|
69
|
+
ps: پشتو
|
70
|
+
pt: پُرتگالی
|
71
|
+
pt-BR: "پرتگالی (ﺑﺮﺍﺯﻳﻞ)"
|
72
|
+
pt-PT: "پرتگالی (پرتگال)"
|
73
|
+
ro: رومنی
|
74
|
+
ru: روسی
|
75
|
+
sa: سَنسکرِت
|
76
|
+
sh: سربو-کروئیشین
|
77
|
+
sq: البانی
|
78
|
+
sr: صربی
|
79
|
+
tlh: کلنگان
|
80
|
+
ur: اردو
|
81
|
+
zh-Hans: "چینی (آسان کردہ)"
|
@@ -0,0 +1,31 @@
|
|
1
|
+
ur:
|
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
|
+
ur: "{ :ur => { :i18n => {:plural => { :keys => [:one, :other], :rule => lambda { |n| n == 1 ? :one : :other } } } } }"
|
@@ -0,0 +1,169 @@
|
|
1
|
+
zh:
|
2
|
+
calendars:
|
3
|
+
gregorian:
|
4
|
+
days:
|
5
|
+
format:
|
6
|
+
abbreviated:
|
7
|
+
fri: 周五
|
8
|
+
mon: 周一
|
9
|
+
sat: 周六
|
10
|
+
sun: 周日
|
11
|
+
thu: 周四
|
12
|
+
tue: 周二
|
13
|
+
wed: 周三
|
14
|
+
narrow: :"calendars.gregorian.days.stand-alone.narrow"
|
15
|
+
wide:
|
16
|
+
fri: 星期五
|
17
|
+
mon: 星期一
|
18
|
+
sat: 星期六
|
19
|
+
sun: 星期日
|
20
|
+
thu: 星期四
|
21
|
+
tue: 星期二
|
22
|
+
wed: 星期三
|
23
|
+
stand-alone:
|
24
|
+
abbreviated: :"calendars.gregorian.days.format.abbreviated"
|
25
|
+
narrow:
|
26
|
+
fri: 五
|
27
|
+
mon: 一
|
28
|
+
sat: 六
|
29
|
+
sun: 日
|
30
|
+
thu: 四
|
31
|
+
tue: 二
|
32
|
+
wed: 三
|
33
|
+
wide: :"calendars.gregorian.days.format.wide"
|
34
|
+
fields:
|
35
|
+
day: 日
|
36
|
+
dayperiod: 上午/下午
|
37
|
+
era: 时期
|
38
|
+
hour: 小时
|
39
|
+
minute: 分钟
|
40
|
+
month: 月
|
41
|
+
second: 秒钟
|
42
|
+
week: 周
|
43
|
+
weekday: 周天
|
44
|
+
year: 年
|
45
|
+
zone: 区域
|
46
|
+
formats:
|
47
|
+
date:
|
48
|
+
default: :"calendars.gregorian.formats.date.medium"
|
49
|
+
full:
|
50
|
+
pattern: y年M月d日EEEE
|
51
|
+
long:
|
52
|
+
pattern: y年M月d日
|
53
|
+
medium:
|
54
|
+
pattern: yyyy-M-d
|
55
|
+
short:
|
56
|
+
pattern: yy-M-d
|
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: zzzzah时mm分ss秒
|
71
|
+
long:
|
72
|
+
pattern: zah时mm分ss秒
|
73
|
+
medium:
|
74
|
+
pattern: "ahh:mm:ss"
|
75
|
+
short:
|
76
|
+
pattern: "ah:mm"
|
77
|
+
months:
|
78
|
+
format:
|
79
|
+
abbreviated:
|
80
|
+
1: 1月
|
81
|
+
10: 10月
|
82
|
+
11: 11月
|
83
|
+
12: 12月
|
84
|
+
2: 2月
|
85
|
+
3: 3月
|
86
|
+
4: 4月
|
87
|
+
5: 5月
|
88
|
+
6: 6月
|
89
|
+
7: 7月
|
90
|
+
8: 8月
|
91
|
+
9: 9月
|
92
|
+
narrow: :"calendars.gregorian.months.stand-alone.narrow"
|
93
|
+
wide:
|
94
|
+
1: 1月
|
95
|
+
10: 10月
|
96
|
+
11: 11月
|
97
|
+
12: 12月
|
98
|
+
2: 2月
|
99
|
+
3: 3月
|
100
|
+
4: 4月
|
101
|
+
5: 5月
|
102
|
+
6: 6月
|
103
|
+
7: 7月
|
104
|
+
8: 8月
|
105
|
+
9: 9月
|
106
|
+
stand-alone:
|
107
|
+
abbreviated:
|
108
|
+
1: 一月
|
109
|
+
10: 十月
|
110
|
+
11: 十一月
|
111
|
+
12: 十二月
|
112
|
+
2: 二月
|
113
|
+
3: 三月
|
114
|
+
4: 四月
|
115
|
+
5: 五月
|
116
|
+
6: 六月
|
117
|
+
7: 七月
|
118
|
+
8: 八月
|
119
|
+
9: 九月
|
120
|
+
narrow:
|
121
|
+
1: 1
|
122
|
+
10: 10
|
123
|
+
11: 11月
|
124
|
+
12: 12月
|
125
|
+
2: 2
|
126
|
+
3: 3
|
127
|
+
4: 4
|
128
|
+
5: 5
|
129
|
+
6: 6
|
130
|
+
7: 7
|
131
|
+
8: 8
|
132
|
+
9: 9
|
133
|
+
wide:
|
134
|
+
1: 一月
|
135
|
+
10: 十月
|
136
|
+
11: 十一月
|
137
|
+
12: 十二月
|
138
|
+
2: 二月
|
139
|
+
3: 三月
|
140
|
+
4: 四月
|
141
|
+
5: 五月
|
142
|
+
6: 六月
|
143
|
+
7: 七月
|
144
|
+
8: 八月
|
145
|
+
9: 九月
|
146
|
+
periods:
|
147
|
+
am: 上午
|
148
|
+
pm: 下午
|
149
|
+
quarters:
|
150
|
+
format:
|
151
|
+
abbreviated:
|
152
|
+
1: 1季
|
153
|
+
2: 2季
|
154
|
+
3: 3季
|
155
|
+
4: 4季
|
156
|
+
narrow: :"calendars.gregorian.quarters.stand-alone.narrow"
|
157
|
+
wide:
|
158
|
+
1: 第1季度
|
159
|
+
2: 第2季度
|
160
|
+
3: 第3季度
|
161
|
+
4: 第4季度
|
162
|
+
stand-alone:
|
163
|
+
abbreviated: :"calendars.gregorian.quarters.format.abbreviated"
|
164
|
+
narrow:
|
165
|
+
1: 1
|
166
|
+
2: 2
|
167
|
+
3: 3
|
168
|
+
4: 4
|
169
|
+
wide: :"calendars.gregorian.quarters.format.wide"
|