ember-rails-i18n 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +339 -0
  5. data/README.md +64 -0
  6. data/Rakefile +1 -0
  7. data/ember-rails-i18n.gemspec +26 -0
  8. data/lib/ember-rails-i18n.rb +15 -0
  9. data/lib/ember-rails-i18n/helper.rb +29 -0
  10. data/lib/ember-rails-i18n/version.rb +3 -0
  11. data/lib/javascripts/moment.js +2489 -0
  12. data/lib/javascripts/moment_locale/ar-ma.js +56 -0
  13. data/lib/javascripts/moment_locale/ar.js +56 -0
  14. data/lib/javascripts/moment_locale/bg.js +86 -0
  15. data/lib/javascripts/moment_locale/br.js +107 -0
  16. data/lib/javascripts/moment_locale/bs.js +139 -0
  17. data/lib/javascripts/moment_locale/ca.js +66 -0
  18. data/lib/javascripts/moment_locale/cs.js +155 -0
  19. data/lib/javascripts/moment_locale/cv.js +59 -0
  20. data/lib/javascripts/moment_locale/cy.js +77 -0
  21. data/lib/javascripts/moment_locale/da.js +56 -0
  22. data/lib/javascripts/moment_locale/de.js +71 -0
  23. data/lib/javascripts/moment_locale/el.js +79 -0
  24. data/lib/javascripts/moment_locale/en-au.js +62 -0
  25. data/lib/javascripts/moment_locale/en-ca.js +59 -0
  26. data/lib/javascripts/moment_locale/en-gb.js +63 -0
  27. data/lib/javascripts/moment_locale/eo.js +65 -0
  28. data/lib/javascripts/moment_locale/es.js +75 -0
  29. data/lib/javascripts/moment_locale/et.js +76 -0
  30. data/lib/javascripts/moment_locale/eu.js +60 -0
  31. data/lib/javascripts/moment_locale/fa.js +97 -0
  32. data/lib/javascripts/moment_locale/fi.js +103 -0
  33. data/lib/javascripts/moment_locale/fo.js +56 -0
  34. data/lib/javascripts/moment_locale/fr-ca.js +54 -0
  35. data/lib/javascripts/moment_locale/fr.js +58 -0
  36. data/lib/javascripts/moment_locale/gl.js +71 -0
  37. data/lib/javascripts/moment_locale/he.js +77 -0
  38. data/lib/javascripts/moment_locale/hi.js +105 -0
  39. data/lib/javascripts/moment_locale/hr.js +140 -0
  40. data/lib/javascripts/moment_locale/hu.js +105 -0
  41. data/lib/javascripts/moment_locale/hy-am.js +113 -0
  42. data/lib/javascripts/moment_locale/id.js +67 -0
  43. data/lib/javascripts/moment_locale/is.js +124 -0
  44. data/lib/javascripts/moment_locale/it.js +59 -0
  45. data/lib/javascripts/moment_locale/ja.js +58 -0
  46. data/lib/javascripts/moment_locale/ka.js +108 -0
  47. data/lib/javascripts/moment_locale/km.js +55 -0
  48. data/lib/javascripts/moment_locale/ko.js +63 -0
  49. data/lib/javascripts/moment_locale/lb.js +160 -0
  50. data/lib/javascripts/moment_locale/lt.js +118 -0
  51. data/lib/javascripts/moment_locale/lv.js +77 -0
  52. data/lib/javascripts/moment_locale/mk.js +86 -0
  53. data/lib/javascripts/moment_locale/ml.js +64 -0
  54. data/lib/javascripts/moment_locale/mr.js +104 -0
  55. data/lib/javascripts/moment_locale/ms-my.js +66 -0
  56. data/lib/javascripts/moment_locale/nb.js +57 -0
  57. data/lib/javascripts/moment_locale/ne.js +105 -0
  58. data/lib/javascripts/moment_locale/nl.js +67 -0
  59. data/lib/javascripts/moment_locale/nn.js +56 -0
  60. data/lib/javascripts/moment_locale/pl.js +98 -0
  61. data/lib/javascripts/moment_locale/pt-br.js +56 -0
  62. data/lib/javascripts/moment_locale/pt.js +60 -0
  63. data/lib/javascripts/moment_locale/ro.js +72 -0
  64. data/lib/javascripts/moment_locale/ru.js +163 -0
  65. data/lib/javascripts/moment_locale/sk.js +156 -0
  66. data/lib/javascripts/moment_locale/sl.js +144 -0
  67. data/lib/javascripts/moment_locale/sq.js +61 -0
  68. data/lib/javascripts/moment_locale/sr-cyr.js +106 -0
  69. data/lib/javascripts/moment_locale/sr.js +106 -0
  70. data/lib/javascripts/moment_locale/sv.js +63 -0
  71. data/lib/javascripts/moment_locale/ta.js +112 -0
  72. data/lib/javascripts/moment_locale/th.js +58 -0
  73. data/lib/javascripts/moment_locale/tl-ph.js +58 -0
  74. data/lib/javascripts/moment_locale/tr.js +93 -0
  75. data/lib/javascripts/moment_locale/tzm-la.js +55 -0
  76. data/lib/javascripts/moment_locale/tzm.js +55 -0
  77. data/lib/javascripts/moment_locale/uk.js +157 -0
  78. data/lib/javascripts/moment_locale/uz.js +55 -0
  79. data/lib/javascripts/moment_locale/vi.js +62 -0
  80. data/lib/javascripts/moment_locale/zh-cn.js +108 -0
  81. data/lib/javascripts/moment_locale/zh-tw.js +84 -0
  82. data/vendor/assets/javascripts/locales/i18n.js +598 -0
  83. data/vendor/assets/javascripts/locales/test.js.erb +3 -0
  84. metadata +182 -0
@@ -0,0 +1,97 @@
1
+ // moment.js language configuration
2
+ // language : Persian Language
3
+ // author : Ebrahim Byagowi : https://github.com/ebraminio
4
+
5
+ (function (factory) {
6
+ if (typeof define === 'function' && define.amd) {
7
+ define(['moment'], factory); // AMD
8
+ } else if (typeof exports === 'object') {
9
+ module.exports = factory(require('../moment')); // Node
10
+ } else {
11
+ factory(window.moment); // Browser global
12
+ }
13
+ }(function (moment) {
14
+ var symbolMap = {
15
+ '1': '۱',
16
+ '2': '۲',
17
+ '3': '۳',
18
+ '4': '۴',
19
+ '5': '۵',
20
+ '6': '۶',
21
+ '7': '۷',
22
+ '8': '۸',
23
+ '9': '۹',
24
+ '0': '۰'
25
+ }, numberMap = {
26
+ '۱': '1',
27
+ '۲': '2',
28
+ '۳': '3',
29
+ '۴': '4',
30
+ '۵': '5',
31
+ '۶': '6',
32
+ '۷': '7',
33
+ '۸': '8',
34
+ '۹': '9',
35
+ '۰': '0'
36
+ };
37
+
38
+ return moment.lang('fa', {
39
+ months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
40
+ monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
41
+ weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
42
+ weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
43
+ weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'),
44
+ longDateFormat : {
45
+ LT : 'HH:mm',
46
+ L : 'DD/MM/YYYY',
47
+ LL : 'D MMMM YYYY',
48
+ LLL : 'D MMMM YYYY LT',
49
+ LLLL : 'dddd, D MMMM YYYY LT'
50
+ },
51
+ meridiem : function (hour, minute, isLower) {
52
+ if (hour < 12) {
53
+ return "قبل از ظهر";
54
+ } else {
55
+ return "بعد از ظهر";
56
+ }
57
+ },
58
+ calendar : {
59
+ sameDay : '[امروز ساعت] LT',
60
+ nextDay : '[فردا ساعت] LT',
61
+ nextWeek : 'dddd [ساعت] LT',
62
+ lastDay : '[دیروز ساعت] LT',
63
+ lastWeek : 'dddd [پیش] [ساعت] LT',
64
+ sameElse : 'L'
65
+ },
66
+ relativeTime : {
67
+ future : 'در %s',
68
+ past : '%s پیش',
69
+ s : 'چندین ثانیه',
70
+ m : 'یک دقیقه',
71
+ mm : '%d دقیقه',
72
+ h : 'یک ساعت',
73
+ hh : '%d ساعت',
74
+ d : 'یک روز',
75
+ dd : '%d روز',
76
+ M : 'یک ماه',
77
+ MM : '%d ماه',
78
+ y : 'یک سال',
79
+ yy : '%d سال'
80
+ },
81
+ preparse: function (string) {
82
+ return string.replace(/[۰-۹]/g, function (match) {
83
+ return numberMap[match];
84
+ }).replace(/،/g, ',');
85
+ },
86
+ postformat: function (string) {
87
+ return string.replace(/\d/g, function (match) {
88
+ return symbolMap[match];
89
+ }).replace(/,/g, '،');
90
+ },
91
+ ordinal : '%dم',
92
+ week : {
93
+ dow : 6, // Saturday is the first day of the week.
94
+ doy : 12 // The week that contains Jan 1st is the first week of the year.
95
+ }
96
+ });
97
+ }));
@@ -0,0 +1,103 @@
1
+ // moment.js language configuration
2
+ // language : finnish (fi)
3
+ // author : Tarmo Aidantausta : https://github.com/bleadof
4
+
5
+ (function (factory) {
6
+ if (typeof define === 'function' && define.amd) {
7
+ define(['moment'], factory); // AMD
8
+ } else if (typeof exports === 'object') {
9
+ module.exports = factory(require('../moment')); // Node
10
+ } else {
11
+ factory(window.moment); // Browser global
12
+ }
13
+ }(function (moment) {
14
+ var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),
15
+ numbersFuture = ['nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
16
+ numbersPast[7], numbersPast[8], numbersPast[9]];
17
+
18
+ function translate(number, withoutSuffix, key, isFuture) {
19
+ var result = "";
20
+ switch (key) {
21
+ case 's':
22
+ return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
23
+ case 'm':
24
+ return isFuture ? 'minuutin' : 'minuutti';
25
+ case 'mm':
26
+ result = isFuture ? 'minuutin' : 'minuuttia';
27
+ break;
28
+ case 'h':
29
+ return isFuture ? 'tunnin' : 'tunti';
30
+ case 'hh':
31
+ result = isFuture ? 'tunnin' : 'tuntia';
32
+ break;
33
+ case 'd':
34
+ return isFuture ? 'päivän' : 'päivä';
35
+ case 'dd':
36
+ result = isFuture ? 'päivän' : 'päivää';
37
+ break;
38
+ case 'M':
39
+ return isFuture ? 'kuukauden' : 'kuukausi';
40
+ case 'MM':
41
+ result = isFuture ? 'kuukauden' : 'kuukautta';
42
+ break;
43
+ case 'y':
44
+ return isFuture ? 'vuoden' : 'vuosi';
45
+ case 'yy':
46
+ result = isFuture ? 'vuoden' : 'vuotta';
47
+ break;
48
+ }
49
+ result = verbalNumber(number, isFuture) + " " + result;
50
+ return result;
51
+ }
52
+
53
+ function verbalNumber(number, isFuture) {
54
+ return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number;
55
+ }
56
+
57
+ return moment.lang('fi', {
58
+ months : "tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),
59
+ monthsShort : "tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),
60
+ weekdays : "sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),
61
+ weekdaysShort : "su_ma_ti_ke_to_pe_la".split("_"),
62
+ weekdaysMin : "su_ma_ti_ke_to_pe_la".split("_"),
63
+ longDateFormat : {
64
+ LT : "HH.mm",
65
+ L : "DD.MM.YYYY",
66
+ LL : "Do MMMM[ta] YYYY",
67
+ LLL : "Do MMMM[ta] YYYY, [klo] LT",
68
+ LLLL : "dddd, Do MMMM[ta] YYYY, [klo] LT",
69
+ l : "D.M.YYYY",
70
+ ll : "Do MMM YYYY",
71
+ lll : "Do MMM YYYY, [klo] LT",
72
+ llll : "ddd, Do MMM YYYY, [klo] LT"
73
+ },
74
+ calendar : {
75
+ sameDay : '[tänään] [klo] LT',
76
+ nextDay : '[huomenna] [klo] LT',
77
+ nextWeek : 'dddd [klo] LT',
78
+ lastDay : '[eilen] [klo] LT',
79
+ lastWeek : '[viime] dddd[na] [klo] LT',
80
+ sameElse : 'L'
81
+ },
82
+ relativeTime : {
83
+ future : "%s päästä",
84
+ past : "%s sitten",
85
+ s : translate,
86
+ m : translate,
87
+ mm : translate,
88
+ h : translate,
89
+ hh : translate,
90
+ d : translate,
91
+ dd : translate,
92
+ M : translate,
93
+ MM : translate,
94
+ y : translate,
95
+ yy : translate
96
+ },
97
+ ordinal : "%d.",
98
+ week : {
99
+ dow : 1, // Monday is the first day of the week.
100
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
101
+ }
102
+ });
103
+ }));
@@ -0,0 +1,56 @@
1
+ // moment.js language configuration
2
+ // language : faroese (fo)
3
+ // author : Ragnar Johannesen : https://github.com/ragnar123
4
+
5
+ (function (factory) {
6
+ if (typeof define === 'function' && define.amd) {
7
+ define(['moment'], factory); // AMD
8
+ } else if (typeof exports === 'object') {
9
+ module.exports = factory(require('../moment')); // Node
10
+ } else {
11
+ factory(window.moment); // Browser global
12
+ }
13
+ }(function (moment) {
14
+ return moment.lang('fo', {
15
+ months : "januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),
16
+ monthsShort : "jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),
17
+ weekdays : "sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),
18
+ weekdaysShort : "sun_mán_týs_mik_hós_frí_ley".split("_"),
19
+ weekdaysMin : "su_má_tý_mi_hó_fr_le".split("_"),
20
+ longDateFormat : {
21
+ LT : "HH:mm",
22
+ L : "DD/MM/YYYY",
23
+ LL : "D MMMM YYYY",
24
+ LLL : "D MMMM YYYY LT",
25
+ LLLL : "dddd D. MMMM, YYYY LT"
26
+ },
27
+ calendar : {
28
+ sameDay : '[Í dag kl.] LT',
29
+ nextDay : '[Í morgin kl.] LT',
30
+ nextWeek : 'dddd [kl.] LT',
31
+ lastDay : '[Í gjár kl.] LT',
32
+ lastWeek : '[síðstu] dddd [kl] LT',
33
+ sameElse : 'L'
34
+ },
35
+ relativeTime : {
36
+ future : "um %s",
37
+ past : "%s síðani",
38
+ s : "fá sekund",
39
+ m : "ein minutt",
40
+ mm : "%d minuttir",
41
+ h : "ein tími",
42
+ hh : "%d tímar",
43
+ d : "ein dagur",
44
+ dd : "%d dagar",
45
+ M : "ein mánaði",
46
+ MM : "%d mánaðir",
47
+ y : "eitt ár",
48
+ yy : "%d ár"
49
+ },
50
+ ordinal : '%d.',
51
+ week : {
52
+ dow : 1, // Monday is the first day of the week.
53
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
54
+ }
55
+ });
56
+ }));
@@ -0,0 +1,54 @@
1
+ // moment.js language configuration
2
+ // language : canadian french (fr-ca)
3
+ // author : Jonathan Abourbih : https://github.com/jonbca
4
+
5
+ (function (factory) {
6
+ if (typeof define === 'function' && define.amd) {
7
+ define(['moment'], factory); // AMD
8
+ } else if (typeof exports === 'object') {
9
+ module.exports = factory(require('../moment')); // Node
10
+ } else {
11
+ factory(window.moment); // Browser global
12
+ }
13
+ }(function (moment) {
14
+ return moment.lang('fr-ca', {
15
+ months : "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),
16
+ monthsShort : "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
17
+ weekdays : "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
18
+ weekdaysShort : "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
19
+ weekdaysMin : "Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),
20
+ longDateFormat : {
21
+ LT : "HH:mm",
22
+ L : "YYYY-MM-DD",
23
+ LL : "D MMMM YYYY",
24
+ LLL : "D MMMM YYYY LT",
25
+ LLLL : "dddd D MMMM YYYY LT"
26
+ },
27
+ calendar : {
28
+ sameDay: "[Aujourd'hui à] LT",
29
+ nextDay: '[Demain à] LT',
30
+ nextWeek: 'dddd [à] LT',
31
+ lastDay: '[Hier à] LT',
32
+ lastWeek: 'dddd [dernier à] LT',
33
+ sameElse: 'L'
34
+ },
35
+ relativeTime : {
36
+ future : "dans %s",
37
+ past : "il y a %s",
38
+ s : "quelques secondes",
39
+ m : "une minute",
40
+ mm : "%d minutes",
41
+ h : "une heure",
42
+ hh : "%d heures",
43
+ d : "un jour",
44
+ dd : "%d jours",
45
+ M : "un mois",
46
+ MM : "%d mois",
47
+ y : "un an",
48
+ yy : "%d ans"
49
+ },
50
+ ordinal : function (number) {
51
+ return number + (number === 1 ? 'er' : '');
52
+ }
53
+ });
54
+ }));
@@ -0,0 +1,58 @@
1
+ // moment.js language configuration
2
+ // language : french (fr)
3
+ // author : John Fischer : https://github.com/jfroffice
4
+
5
+ (function (factory) {
6
+ if (typeof define === 'function' && define.amd) {
7
+ define(['moment'], factory); // AMD
8
+ } else if (typeof exports === 'object') {
9
+ module.exports = factory(require('../moment')); // Node
10
+ } else {
11
+ factory(window.moment); // Browser global
12
+ }
13
+ }(function (moment) {
14
+ return moment.lang('fr', {
15
+ months : "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),
16
+ monthsShort : "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
17
+ weekdays : "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
18
+ weekdaysShort : "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
19
+ weekdaysMin : "Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),
20
+ longDateFormat : {
21
+ LT : "HH:mm",
22
+ L : "DD/MM/YYYY",
23
+ LL : "D MMMM YYYY",
24
+ LLL : "D MMMM YYYY LT",
25
+ LLLL : "dddd D MMMM YYYY LT"
26
+ },
27
+ calendar : {
28
+ sameDay: "[Aujourd'hui à] LT",
29
+ nextDay: '[Demain à] LT',
30
+ nextWeek: 'dddd [à] LT',
31
+ lastDay: '[Hier à] LT',
32
+ lastWeek: 'dddd [dernier à] LT',
33
+ sameElse: 'L'
34
+ },
35
+ relativeTime : {
36
+ future : "dans %s",
37
+ past : "il y a %s",
38
+ s : "quelques secondes",
39
+ m : "une minute",
40
+ mm : "%d minutes",
41
+ h : "une heure",
42
+ hh : "%d heures",
43
+ d : "un jour",
44
+ dd : "%d jours",
45
+ M : "un mois",
46
+ MM : "%d mois",
47
+ y : "un an",
48
+ yy : "%d ans"
49
+ },
50
+ ordinal : function (number) {
51
+ return number + (number === 1 ? 'er' : '');
52
+ },
53
+ week : {
54
+ dow : 1, // Monday is the first day of the week.
55
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
56
+ }
57
+ });
58
+ }));
@@ -0,0 +1,71 @@
1
+ // moment.js language configuration
2
+ // language : galician (gl)
3
+ // author : Juan G. Hurtado : https://github.com/juanghurtado
4
+
5
+ (function (factory) {
6
+ if (typeof define === 'function' && define.amd) {
7
+ define(['moment'], factory); // AMD
8
+ } else if (typeof exports === 'object') {
9
+ module.exports = factory(require('../moment')); // Node
10
+ } else {
11
+ factory(window.moment); // Browser global
12
+ }
13
+ }(function (moment) {
14
+ return moment.lang('gl', {
15
+ months : "Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro".split("_"),
16
+ monthsShort : "Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),
17
+ weekdays : "Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),
18
+ weekdaysShort : "Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"),
19
+ weekdaysMin : "Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"),
20
+ longDateFormat : {
21
+ LT : "H:mm",
22
+ L : "DD/MM/YYYY",
23
+ LL : "D MMMM YYYY",
24
+ LLL : "D MMMM YYYY LT",
25
+ LLLL : "dddd D MMMM YYYY LT"
26
+ },
27
+ calendar : {
28
+ sameDay : function () {
29
+ return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
30
+ },
31
+ nextDay : function () {
32
+ return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
33
+ },
34
+ nextWeek : function () {
35
+ return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
36
+ },
37
+ lastDay : function () {
38
+ return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
39
+ },
40
+ lastWeek : function () {
41
+ return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
42
+ },
43
+ sameElse : 'L'
44
+ },
45
+ relativeTime : {
46
+ future : function (str) {
47
+ if (str === "uns segundos") {
48
+ return "nuns segundos";
49
+ }
50
+ return "en " + str;
51
+ },
52
+ past : "hai %s",
53
+ s : "uns segundos",
54
+ m : "un minuto",
55
+ mm : "%d minutos",
56
+ h : "unha hora",
57
+ hh : "%d horas",
58
+ d : "un día",
59
+ dd : "%d días",
60
+ M : "un mes",
61
+ MM : "%d meses",
62
+ y : "un ano",
63
+ yy : "%d anos"
64
+ },
65
+ ordinal : '%dº',
66
+ week : {
67
+ dow : 1, // Monday is the first day of the week.
68
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
69
+ }
70
+ });
71
+ }));
@@ -0,0 +1,77 @@
1
+ // moment.js language configuration
2
+ // language : Hebrew (he)
3
+ // author : Tomer Cohen : https://github.com/tomer
4
+ // author : Moshe Simantov : https://github.com/DevelopmentIL
5
+ // author : Tal Ater : https://github.com/TalAter
6
+
7
+ (function (factory) {
8
+ if (typeof define === 'function' && define.amd) {
9
+ define(['moment'], factory); // AMD
10
+ } else if (typeof exports === 'object') {
11
+ module.exports = factory(require('../moment')); // Node
12
+ } else {
13
+ factory(window.moment); // Browser global
14
+ }
15
+ }(function (moment) {
16
+ return moment.lang('he', {
17
+ months : "ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),
18
+ monthsShort : "ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),
19
+ weekdays : "ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),
20
+ weekdaysShort : "א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),
21
+ weekdaysMin : "א_ב_ג_ד_ה_ו_ש".split("_"),
22
+ longDateFormat : {
23
+ LT : "HH:mm",
24
+ L : "DD/MM/YYYY",
25
+ LL : "D [ב]MMMM YYYY",
26
+ LLL : "D [ב]MMMM YYYY LT",
27
+ LLLL : "dddd, D [ב]MMMM YYYY LT",
28
+ l : "D/M/YYYY",
29
+ ll : "D MMM YYYY",
30
+ lll : "D MMM YYYY LT",
31
+ llll : "ddd, D MMM YYYY LT"
32
+ },
33
+ calendar : {
34
+ sameDay : '[היום ב־]LT',
35
+ nextDay : '[מחר ב־]LT',
36
+ nextWeek : 'dddd [בשעה] LT',
37
+ lastDay : '[אתמול ב־]LT',
38
+ lastWeek : '[ביום] dddd [האחרון בשעה] LT',
39
+ sameElse : 'L'
40
+ },
41
+ relativeTime : {
42
+ future : "בעוד %s",
43
+ past : "לפני %s",
44
+ s : "מספר שניות",
45
+ m : "דקה",
46
+ mm : "%d דקות",
47
+ h : "שעה",
48
+ hh : function (number) {
49
+ if (number === 2) {
50
+ return "שעתיים";
51
+ }
52
+ return number + " שעות";
53
+ },
54
+ d : "יום",
55
+ dd : function (number) {
56
+ if (number === 2) {
57
+ return "יומיים";
58
+ }
59
+ return number + " ימים";
60
+ },
61
+ M : "חודש",
62
+ MM : function (number) {
63
+ if (number === 2) {
64
+ return "חודשיים";
65
+ }
66
+ return number + " חודשים";
67
+ },
68
+ y : "שנה",
69
+ yy : function (number) {
70
+ if (number === 2) {
71
+ return "שנתיים";
72
+ }
73
+ return number + " שנים";
74
+ }
75
+ }
76
+ });
77
+ }));