twitter_cldr 1.3.0 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. data/README.md +58 -10
  2. data/Rakefile +25 -0
  3. data/lib/twitter_cldr.rb +16 -1
  4. data/lib/twitter_cldr/core_ext.rb +1 -0
  5. data/lib/twitter_cldr/core_ext/calendars/datetime.rb +14 -0
  6. data/lib/twitter_cldr/core_ext/calendars/timespan.rb +26 -0
  7. data/lib/twitter_cldr/formatters.rb +1 -0
  8. data/lib/twitter_cldr/formatters/calendars/datetime_formatter.rb +1 -6
  9. data/lib/twitter_cldr/formatters/calendars/timespan_formatter.rb +67 -0
  10. data/lib/twitter_cldr/formatters/numbers/number_formatter.rb +1 -1
  11. data/lib/twitter_cldr/tokenizers.rb +1 -0
  12. data/lib/twitter_cldr/tokenizers/base.rb +23 -9
  13. data/lib/twitter_cldr/tokenizers/calendars/date_tokenizer.rb +14 -8
  14. data/lib/twitter_cldr/tokenizers/calendars/datetime_tokenizer.rb +13 -9
  15. data/lib/twitter_cldr/tokenizers/calendars/time_tokenizer.rb +13 -7
  16. data/lib/twitter_cldr/tokenizers/calendars/timespan_tokenizer.rb +82 -0
  17. data/lib/twitter_cldr/tokenizers/numbers/number_tokenizer.rb +21 -14
  18. data/lib/twitter_cldr/tokenizers/token.rb +4 -0
  19. data/lib/twitter_cldr/version.rb +1 -1
  20. data/resources/locales/ar/units.yml +149 -0
  21. data/resources/locales/da/units.yml +79 -0
  22. data/resources/locales/de/units.yml +93 -0
  23. data/resources/locales/en/units.yml +65 -0
  24. data/resources/locales/es/units.yml +93 -0
  25. data/resources/locales/fa/units.yml +86 -0
  26. data/resources/locales/fi/units.yml +93 -0
  27. data/resources/locales/fil/units.yml +79 -0
  28. data/resources/locales/fr/units.yml +93 -0
  29. data/resources/locales/he/units.yml +79 -0
  30. data/resources/locales/hi/units.yml +79 -0
  31. data/resources/locales/hu/units.yml +72 -0
  32. data/resources/locales/id/units.yml +72 -0
  33. data/resources/locales/it/units.yml +79 -0
  34. data/resources/locales/ja/units.yml +72 -0
  35. data/resources/locales/ko/units.yml +72 -0
  36. data/resources/locales/ms/units.yml +86 -0
  37. data/resources/locales/nl/units.yml +79 -0
  38. data/resources/locales/pl/units.yml +135 -0
  39. data/resources/locales/pt/units.yml +93 -0
  40. data/resources/locales/ru/units.yml +135 -0
  41. data/resources/locales/sv/units.yml +93 -0
  42. data/resources/locales/th/units.yml +72 -0
  43. data/resources/locales/tr/units.yml +72 -0
  44. data/resources/locales/ur/units.yml +86 -0
  45. data/resources/locales/zh-Hant/units.yml +72 -0
  46. data/resources/locales/zh/units.yml +72 -0
  47. data/spec/core_ext/calendars/date_spec.rb +83 -9
  48. data/spec/core_ext/calendars/datetime_spec.rb +1 -3
  49. data/spec/core_ext/calendars/time_spec.rb +12 -3
  50. data/spec/formatters/calendars/timespan_formatter_spec.rb +39 -0
  51. data/spec/tokenizers/base_spec.rb +10 -10
  52. data/spec/tokenizers/calendars/timespan_tokenizer_spec.rb +24 -0
  53. data/spec/tokenizers/numbers/number_tokenizer_spec.rb +1 -1
  54. data/spec/twitter_cldr_spec.rb +16 -0
  55. metadata +126 -14
  56. data/lib/twitter_cldr/tokenizers/key_path.rb +0 -35
  57. data/spec/tokenizers/key_path_spec.rb +0 -49
@@ -0,0 +1,79 @@
1
+ he:
2
+ units:
3
+ day:
4
+ one: "{0} יום"
5
+ other: "{0} ימים"
6
+ day-future:
7
+ 0: "עוד 0 ימים"
8
+ 1: "עוד יום"
9
+ other: "בעוד {0} ימים"
10
+ day-past:
11
+ 0: "לפני 0 ימים"
12
+ 1: "לפני יום"
13
+ other: "לפני {0} ימים"
14
+ hour:
15
+ one: "{0} שעה"
16
+ other: "{0} שעות"
17
+ hour-future:
18
+ 0: "עוד 0 שעות"
19
+ 1: "עוד שעה"
20
+ other: "בעוד {0} שעות"
21
+ hour-past:
22
+ 0: "לפני 0 שעות"
23
+ 1: "לפני שעה"
24
+ other: "לפני {0} שעות"
25
+ minute:
26
+ one: "{0} דק׳"
27
+ other: "{0} דק׳"
28
+ minute-future:
29
+ 0: "עוד 0 דקות"
30
+ 1: "עוד דקה"
31
+ other: "בעוד {0} דקות"
32
+ minute-past:
33
+ 0: "לפני 0 דקות"
34
+ 1: "לפני דקה"
35
+ other: "לפני {0} דקות"
36
+ month:
37
+ one: "{0} חודש"
38
+ other: "{0} חודשים"
39
+ month-future:
40
+ 0: "עוד 0 חודשים"
41
+ 1: "עוד חודש"
42
+ other: "בעוד {0} חודשים"
43
+ month-past:
44
+ 0: "לפני 0 חודשים"
45
+ 1: "לפני חודש"
46
+ other: "לפני {0} חודשים"
47
+ second:
48
+ one: "{0} שנ׳"
49
+ other: "{0} שנ׳"
50
+ second-future:
51
+ 0: "עוד 0 שניות"
52
+ 1: "עוד שנייה"
53
+ other: "בעוד {0} שניות"
54
+ second-past:
55
+ 0: "לפני 0 שניות"
56
+ 1: "לפני שנייה"
57
+ other: "לפני {0} שניות"
58
+ week:
59
+ one: "{0} שבוע"
60
+ other: "{0} שבועות"
61
+ week-future:
62
+ 0: "עוד 0 שבועות"
63
+ 1: "עוד שבוע"
64
+ other: "בעוד {0} שבועות"
65
+ week-past:
66
+ 0: "לפני 0 שבועות"
67
+ 1: "לפני שבוע"
68
+ other: "לפני {0} שבועות"
69
+ year:
70
+ one: "{0} שנה"
71
+ other: "{0} שנים"
72
+ year-future:
73
+ 0: "עוד 0 שנים"
74
+ 1: "עוד שנה"
75
+ other: "בעוד {0} שנים"
76
+ year-past:
77
+ 0: "לפני 0 שנים"
78
+ 1: "לפני שנה"
79
+ other: "לפני {0} שנים"
@@ -0,0 +1,79 @@
1
+ hi:
2
+ units:
3
+ day:
4
+ one: "{0} दि."
5
+ other: "{0} दि."
6
+ day-future:
7
+ 0: "0 दिन में"
8
+ 1: "1 दिन में"
9
+ other: "{0} दिनों में"
10
+ day-past:
11
+ 0: "0 दिन पहले"
12
+ 1: "1 दिन पहले"
13
+ other: "{0} दिन पहले"
14
+ hour:
15
+ one: "{0} घं."
16
+ other: "{0} घंटे"
17
+ hour-future:
18
+ 0: "0 घंटे में"
19
+ 1: "1 घंटे में"
20
+ other: "{0} घंटों में"
21
+ hour-past:
22
+ 0: "0 घंटे पहले"
23
+ 1: "1 घंटे पहले"
24
+ other: "{0} घंटे पहले"
25
+ minute:
26
+ one: "{0} मिन."
27
+ other: "{0} मिन."
28
+ minute-future:
29
+ 0: "0 मिनट में"
30
+ 1: "1 मिनट में"
31
+ other: "{0} मिनट में"
32
+ minute-past:
33
+ 0: "0 मिनट पहले"
34
+ 1: "1 मिनट पहले"
35
+ other: "{0} मिनट पहले"
36
+ month:
37
+ one: "{0} मही."
38
+ other: "{0} मही."
39
+ month-future:
40
+ 0: "0 माह में"
41
+ 1: "1 माह में"
42
+ other: "{0} माह में"
43
+ month-past:
44
+ 0: "0 माह पहले"
45
+ 1: "1 माह पहले"
46
+ other: "{0} माह पहले"
47
+ second:
48
+ one: "{0} सेकं."
49
+ other: "{0} सेकं."
50
+ second-future:
51
+ 0: "0 सेकंड में"
52
+ 1: "1 सेकंड में"
53
+ other: "{0} सेकंड में"
54
+ second-past:
55
+ 0: "0 सेकंड पहले"
56
+ 1: "1 सेकंड पहले"
57
+ other: "{0} सेकंड पहले"
58
+ week:
59
+ one: "{0} सप्त."
60
+ other: "{0} सप्त."
61
+ week-future:
62
+ 0: "0 सेकंड में"
63
+ 1: "1 सप्ताह में"
64
+ other: "{0} सप्ताह में"
65
+ week-past:
66
+ 0: "0 सप्ताह पहले"
67
+ 1: "1 सप्ताह पहले"
68
+ other: "{0} सप्ताह पहले"
69
+ year:
70
+ one: "{0} साल"
71
+ other: "{0} साल"
72
+ year-future:
73
+ 0: "0 वर्ष में"
74
+ 1: "1 वर्ष में"
75
+ other: "{0} वर्ष में"
76
+ year-past:
77
+ 0: "0 वर्ष पहले"
78
+ 1: "1 वर्ष पहले"
79
+ other: "{0} वर्ष पहले"
@@ -0,0 +1,72 @@
1
+ hu:
2
+ units:
3
+ day:
4
+ other: "{0} nap"
5
+ day-future:
6
+ 0: "0 nap múlva"
7
+ 1: "1 nap múlva"
8
+ other: "{0} nap múlva"
9
+ day-past:
10
+ 0: "0 napja"
11
+ 1: "1 napja"
12
+ other: "{0} nappal ezelőtt"
13
+ hour:
14
+ other: "{0} ó"
15
+ hour-future:
16
+ 0: "0 óra múlva"
17
+ 1: "1 óra múlva"
18
+ other: "{0} óra múlva"
19
+ hour-past:
20
+ 0: "0 órája"
21
+ 1: "1 órája"
22
+ other: "{0} órával ezelőtt"
23
+ minute:
24
+ other: "{0} p"
25
+ minute-future:
26
+ 0: "0 perc múlva"
27
+ 1: "1 perc múlva"
28
+ other: "{0} perc múlva"
29
+ minute-past:
30
+ 0: "0 perce"
31
+ 1: "1 perce"
32
+ other: "{0} perccel ezelőtt"
33
+ month:
34
+ other: "{0} hónap"
35
+ month-future:
36
+ 0: "0 hónap múlva"
37
+ 1: "1 hónap múlva"
38
+ other: "{0} hónap múlva"
39
+ month-past:
40
+ 0: "0 hónapja"
41
+ 1: "1 hónapja"
42
+ other: "{0} hónappal ezelőtt"
43
+ second:
44
+ other: "{0} mp"
45
+ second-future:
46
+ 0: "0 másodperc múlva"
47
+ 1: "1 másodperc múlva"
48
+ other: "{0} másodperc múlva"
49
+ second-past:
50
+ 0: "0 másodperce"
51
+ 1: "1 másodperce"
52
+ other: "{0} másodperccel ezelőtt"
53
+ week:
54
+ other: "{0} hét"
55
+ week-future:
56
+ 0: "0 hét múlva"
57
+ 1: "1 hét múlva"
58
+ other: "{0} hét múlva"
59
+ week-past:
60
+ 0: "0 hete"
61
+ 1: "1 hete"
62
+ other: "{0} héttel ezelőtt"
63
+ year:
64
+ other: "{0} év"
65
+ year-future:
66
+ 0: "0 év múlva"
67
+ 1: "1 év múlva"
68
+ other: "{0} év múlva"
69
+ year-past:
70
+ 0: "0 éve"
71
+ 1: "1 éve"
72
+ other: "{0} évvel ezelőtt"
@@ -0,0 +1,72 @@
1
+ id:
2
+ units:
3
+ day:
4
+ other: "{0} hr"
5
+ day-future:
6
+ 0: "Dalam 0 hari"
7
+ 1: "Dalam 1 hari"
8
+ other: "Dalam {0} hari"
9
+ day-past:
10
+ 0: "0 hari yang lalu"
11
+ 1: "1 hari yang lalu"
12
+ other: "{0} hari yang lalu"
13
+ hour:
14
+ other: "{0} jam"
15
+ hour-future:
16
+ 0: "Dalam 0 jam"
17
+ 1: "Dalam 1 jam"
18
+ other: "Dalam {0} jam"
19
+ hour-past:
20
+ 0: "0 jam yang lalu"
21
+ 1: "1 jam yang lalu"
22
+ other: "{0} jam yang lalu"
23
+ minute:
24
+ other: "{0} mnt"
25
+ minute-future:
26
+ 0: "Dalam 0 menit"
27
+ 1: "Dalam 1 menit"
28
+ other: "Dalam {0} menit"
29
+ minute-past:
30
+ 0: "0 menit yang lalu"
31
+ 1: "1 menit yang lalu"
32
+ other: "{0} menit yang lalu"
33
+ month:
34
+ other: "{0} bln"
35
+ month-future:
36
+ 0: "Dalam 0 bulan"
37
+ 1: "Dalam 1 bulan"
38
+ other: "Dalam {0} bulan"
39
+ month-past:
40
+ 0: "0 bulan yang lalu"
41
+ 1: "1 bulan yang lalu"
42
+ other: "{0} bulan yang lalu"
43
+ second:
44
+ other: "{0} dtk"
45
+ second-future:
46
+ 0: "Dalam 0 detik"
47
+ 1: "Dalam 1 detik"
48
+ other: "Dalam {0} detik"
49
+ second-past:
50
+ 0: "0 detik yang lalu"
51
+ 1: "1 detik yang lalu"
52
+ other: "{0} detik yang lalu"
53
+ week:
54
+ other: "{0} mggu"
55
+ week-future:
56
+ 0: "Dalam 0 minggu"
57
+ 1: "Dalam 1 minggu"
58
+ other: "Dalam {0} minggu"
59
+ week-past:
60
+ 0: "0 minggu yang lalu"
61
+ 1: "1 minggu yang lalu"
62
+ other: "{0} minggu yang lalu"
63
+ year:
64
+ other: "{0} thn"
65
+ year-future:
66
+ 0: "Dalam 0 tahun"
67
+ 1: "Dalam 1 tahun"
68
+ other: "Dalam {0} tahun"
69
+ year-past:
70
+ 0: "0 tahun yang lalu"
71
+ 1: "1 tahun yang lalu"
72
+ other: "{0} tahun yang lalu"
@@ -0,0 +1,79 @@
1
+ it:
2
+ units:
3
+ day:
4
+ one: "{0} g"
5
+ other: "{0} gg"
6
+ day-future:
7
+ 0: "tra 0 giorni"
8
+ one: "tra {0} giorno"
9
+ other: "tra {0} giorni"
10
+ day-past:
11
+ 0: "0 giorni fa"
12
+ one: "{0} giorno fa"
13
+ other: "{0} giorni fa"
14
+ hour:
15
+ one: "{0} h"
16
+ other: "{0} h"
17
+ hour-future:
18
+ 0: "tra 0 ore"
19
+ one: "tra {0} ora"
20
+ other: "tra {0} ore"
21
+ hour-past:
22
+ 0: "0 ore fa"
23
+ one: "{0} ora fa"
24
+ other: "{0} ore fa"
25
+ minute:
26
+ one: "{0} min"
27
+ other: "{0} min"
28
+ minute-future:
29
+ 0: "tra 0 minuti"
30
+ one: "tra {0} minuto"
31
+ other: "tra {0} minuti"
32
+ minute-past:
33
+ 0: "0 minuti fa"
34
+ one: "{0} minuto fa"
35
+ other: "{0} minuti fa"
36
+ month:
37
+ one: "{0} mese"
38
+ other: "{0} mesi"
39
+ month-future:
40
+ 0: "tra 0 mesi"
41
+ one: "tra {0} mese"
42
+ other: "tra {0} mesi"
43
+ month-past:
44
+ 0: "0 mesi fa"
45
+ one: "{0} mese fa"
46
+ other: "{0} mesi fa"
47
+ second:
48
+ one: "{0} sec"
49
+ other: "{0} sec"
50
+ second-future:
51
+ 0: "tra 0 secondi"
52
+ one: "tra {0} secondo"
53
+ other: "tra {0} secondi"
54
+ second-past:
55
+ 0: "0 secondi fa"
56
+ one: "{0} secondo fa"
57
+ other: "{0} secondi fa"
58
+ week:
59
+ one: "{0} sett."
60
+ other: "{0} sett."
61
+ week-future:
62
+ 0: "tra 0 settimane"
63
+ one: "tra {0} settimana"
64
+ other: "tra {0} settimane"
65
+ week-past:
66
+ 0: "0 settimane fa"
67
+ one: "{0} settimana fa"
68
+ other: "{0} settimane fa"
69
+ year:
70
+ one: "{0} anno"
71
+ other: "{0} anni"
72
+ year-future:
73
+ 0: "tra 0 anni"
74
+ one: "tra {0} anno"
75
+ other: "tra {0} anni"
76
+ year-past:
77
+ 0: "0 anni fa"
78
+ one: "{0} anno fa"
79
+ other: "{0} anni fa"
@@ -0,0 +1,72 @@
1
+ ja:
2
+ units:
3
+ day:
4
+ other: "{0}日"
5
+ day-future:
6
+ 0: "0 日後"
7
+ 1: "1 日後"
8
+ other: "{0} 日後"
9
+ day-past:
10
+ 0: "0 日前"
11
+ 1: "1 日前"
12
+ other: "{0}日前"
13
+ hour:
14
+ other: "{0}時間"
15
+ hour-future:
16
+ 0: "0 時間後"
17
+ 1: "1 時間後"
18
+ other: "{0} 時間後"
19
+ hour-past:
20
+ 0: "0 時間前"
21
+ 1: "1 時間前"
22
+ other: "{0}時間前"
23
+ minute:
24
+ other: "{0}分"
25
+ minute-future:
26
+ 0: "0 分後"
27
+ 1: "1 分後"
28
+ other: "{0} 分後"
29
+ minute-past:
30
+ 0: "0 分前"
31
+ 1: "1 分前"
32
+ other: "{0}分前"
33
+ month:
34
+ other: "{0}か月"
35
+ month-future:
36
+ 0: "0 か月後"
37
+ 1: "1 か月後"
38
+ other: "{0} か月後"
39
+ month-past:
40
+ 0: "0 か月前"
41
+ 1: "1 か月前"
42
+ other: "{0}か月前"
43
+ second:
44
+ other: "{0}秒"
45
+ second-future:
46
+ 0: "0 秒後"
47
+ 1: "1 秒後"
48
+ other: "{0} 秒後"
49
+ second-past:
50
+ 0: "0 秒前"
51
+ 1: "1 秒前"
52
+ other: "{0}秒前"
53
+ week:
54
+ other: "{0}週"
55
+ week-future:
56
+ 0: "0 週間後"
57
+ 1: "1 週間後"
58
+ other: "{0} 週間後"
59
+ week-past:
60
+ 0: "0 週間前"
61
+ 1: "1 週間前"
62
+ other: "{0}週前"
63
+ year:
64
+ other: "{0}年"
65
+ year-future:
66
+ 0: "0 年後"
67
+ 1: "1 年後"
68
+ other: "{0} 年後"
69
+ year-past:
70
+ 0: "0 年前"
71
+ 1: "1 年前"
72
+ other: "{0}年前"