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,155 @@
1
+ // moment.js language configuration
2
+ // language : czech (cs)
3
+ // author : petrbela : https://github.com/petrbela
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 months = "leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),
15
+ monthsShort = "led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");
16
+
17
+ function plural(n) {
18
+ return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
19
+ }
20
+
21
+ function translate(number, withoutSuffix, key, isFuture) {
22
+ var result = number + " ";
23
+ switch (key) {
24
+ case 's': // a few seconds / in a few seconds / a few seconds ago
25
+ return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
26
+ case 'm': // a minute / in a minute / a minute ago
27
+ return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
28
+ case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
29
+ if (withoutSuffix || isFuture) {
30
+ return result + (plural(number) ? 'minuty' : 'minut');
31
+ } else {
32
+ return result + 'minutami';
33
+ }
34
+ break;
35
+ case 'h': // an hour / in an hour / an hour ago
36
+ return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
37
+ case 'hh': // 9 hours / in 9 hours / 9 hours ago
38
+ if (withoutSuffix || isFuture) {
39
+ return result + (plural(number) ? 'hodiny' : 'hodin');
40
+ } else {
41
+ return result + 'hodinami';
42
+ }
43
+ break;
44
+ case 'd': // a day / in a day / a day ago
45
+ return (withoutSuffix || isFuture) ? 'den' : 'dnem';
46
+ case 'dd': // 9 days / in 9 days / 9 days ago
47
+ if (withoutSuffix || isFuture) {
48
+ return result + (plural(number) ? 'dny' : 'dní');
49
+ } else {
50
+ return result + 'dny';
51
+ }
52
+ break;
53
+ case 'M': // a month / in a month / a month ago
54
+ return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
55
+ case 'MM': // 9 months / in 9 months / 9 months ago
56
+ if (withoutSuffix || isFuture) {
57
+ return result + (plural(number) ? 'měsíce' : 'měsíců');
58
+ } else {
59
+ return result + 'měsíci';
60
+ }
61
+ break;
62
+ case 'y': // a year / in a year / a year ago
63
+ return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
64
+ case 'yy': // 9 years / in 9 years / 9 years ago
65
+ if (withoutSuffix || isFuture) {
66
+ return result + (plural(number) ? 'roky' : 'let');
67
+ } else {
68
+ return result + 'lety';
69
+ }
70
+ break;
71
+ }
72
+ }
73
+
74
+ return moment.lang('cs', {
75
+ months : months,
76
+ monthsShort : monthsShort,
77
+ monthsParse : (function (months, monthsShort) {
78
+ var i, _monthsParse = [];
79
+ for (i = 0; i < 12; i++) {
80
+ // use custom parser to solve problem with July (červenec)
81
+ _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
82
+ }
83
+ return _monthsParse;
84
+ }(months, monthsShort)),
85
+ weekdays : "neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),
86
+ weekdaysShort : "ne_po_út_st_čt_pá_so".split("_"),
87
+ weekdaysMin : "ne_po_út_st_čt_pá_so".split("_"),
88
+ longDateFormat : {
89
+ LT: "H.mm",
90
+ L : "DD. MM. YYYY",
91
+ LL : "D. MMMM YYYY",
92
+ LLL : "D. MMMM YYYY LT",
93
+ LLLL : "dddd D. MMMM YYYY LT"
94
+ },
95
+ calendar : {
96
+ sameDay: "[dnes v] LT",
97
+ nextDay: '[zítra v] LT',
98
+ nextWeek: function () {
99
+ switch (this.day()) {
100
+ case 0:
101
+ return '[v neděli v] LT';
102
+ case 1:
103
+ case 2:
104
+ return '[v] dddd [v] LT';
105
+ case 3:
106
+ return '[ve středu v] LT';
107
+ case 4:
108
+ return '[ve čtvrtek v] LT';
109
+ case 5:
110
+ return '[v pátek v] LT';
111
+ case 6:
112
+ return '[v sobotu v] LT';
113
+ }
114
+ },
115
+ lastDay: '[včera v] LT',
116
+ lastWeek: function () {
117
+ switch (this.day()) {
118
+ case 0:
119
+ return '[minulou neděli v] LT';
120
+ case 1:
121
+ case 2:
122
+ return '[minulé] dddd [v] LT';
123
+ case 3:
124
+ return '[minulou středu v] LT';
125
+ case 4:
126
+ case 5:
127
+ return '[minulý] dddd [v] LT';
128
+ case 6:
129
+ return '[minulou sobotu v] LT';
130
+ }
131
+ },
132
+ sameElse: "L"
133
+ },
134
+ relativeTime : {
135
+ future : "za %s",
136
+ past : "před %s",
137
+ s : translate,
138
+ m : translate,
139
+ mm : translate,
140
+ h : translate,
141
+ hh : translate,
142
+ d : translate,
143
+ dd : translate,
144
+ M : translate,
145
+ MM : translate,
146
+ y : translate,
147
+ yy : translate
148
+ },
149
+ ordinal : '%d.',
150
+ week : {
151
+ dow : 1, // Monday is the first day of the week.
152
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
153
+ }
154
+ });
155
+ }));
@@ -0,0 +1,59 @@
1
+ // moment.js language configuration
2
+ // language : chuvash (cv)
3
+ // author : Anatoly Mironov : https://github.com/mirontoli
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('cv', {
15
+ months : "кăрлач_нарăс_пуш_ака_май_çĕртме_утă_çурла_авăн_юпа_чӳк_раштав".split("_"),
16
+ monthsShort : "кăр_нар_пуш_ака_май_çĕр_утă_çур_ав_юпа_чӳк_раш".split("_"),
17
+ weekdays : "вырсарникун_тунтикун_ытларикун_юнкун_кĕçнерникун_эрнекун_шăматкун".split("_"),
18
+ weekdaysShort : "выр_тун_ытл_юн_кĕç_эрн_шăм".split("_"),
19
+ weekdaysMin : "вр_тн_ыт_юн_кç_эр_шм".split("_"),
20
+ longDateFormat : {
21
+ LT : "HH:mm",
22
+ L : "DD-MM-YYYY",
23
+ LL : "YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ]",
24
+ LLL : "YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT",
25
+ LLLL : "dddd, YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT"
26
+ },
27
+ calendar : {
28
+ sameDay: '[Паян] LT [сехетре]',
29
+ nextDay: '[Ыран] LT [сехетре]',
30
+ lastDay: '[Ĕнер] LT [сехетре]',
31
+ nextWeek: '[Çитес] dddd LT [сехетре]',
32
+ lastWeek: '[Иртнĕ] dddd LT [сехетре]',
33
+ sameElse: 'L'
34
+ },
35
+ relativeTime : {
36
+ future : function (output) {
37
+ var affix = /сехет$/i.exec(output) ? "рен" : /çул$/i.exec(output) ? "тан" : "ран";
38
+ return output + affix;
39
+ },
40
+ past : "%s каялла",
41
+ s : "пĕр-ик çеккунт",
42
+ m : "пĕр минут",
43
+ mm : "%d минут",
44
+ h : "пĕр сехет",
45
+ hh : "%d сехет",
46
+ d : "пĕр кун",
47
+ dd : "%d кун",
48
+ M : "пĕр уйăх",
49
+ MM : "%d уйăх",
50
+ y : "пĕр çул",
51
+ yy : "%d çул"
52
+ },
53
+ ordinal : '%d-мĕш',
54
+ week : {
55
+ dow : 1, // Monday is the first day of the week.
56
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
57
+ }
58
+ });
59
+ }));
@@ -0,0 +1,77 @@
1
+ // moment.js language configuration
2
+ // language : Welsh (cy)
3
+ // author : Robert Allen
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("cy", {
15
+ months: "Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),
16
+ monthsShort: "Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),
17
+ weekdays: "Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),
18
+ weekdaysShort: "Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),
19
+ weekdaysMin: "Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),
20
+ // time formats are the same as en-gb
21
+ longDateFormat: {
22
+ LT: "HH:mm",
23
+ L: "DD/MM/YYYY",
24
+ LL: "D MMMM YYYY",
25
+ LLL: "D MMMM YYYY LT",
26
+ LLLL: "dddd, D MMMM YYYY LT"
27
+ },
28
+ calendar: {
29
+ sameDay: '[Heddiw am] LT',
30
+ nextDay: '[Yfory am] LT',
31
+ nextWeek: 'dddd [am] LT',
32
+ lastDay: '[Ddoe am] LT',
33
+ lastWeek: 'dddd [diwethaf am] LT',
34
+ sameElse: 'L'
35
+ },
36
+ relativeTime: {
37
+ future: "mewn %s",
38
+ past: "%s yn àl",
39
+ s: "ychydig eiliadau",
40
+ m: "munud",
41
+ mm: "%d munud",
42
+ h: "awr",
43
+ hh: "%d awr",
44
+ d: "diwrnod",
45
+ dd: "%d diwrnod",
46
+ M: "mis",
47
+ MM: "%d mis",
48
+ y: "blwyddyn",
49
+ yy: "%d flynedd"
50
+ },
51
+ // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
52
+ ordinal: function (number) {
53
+ var b = number,
54
+ output = '',
55
+ lookup = [
56
+ '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
57
+ 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
58
+ ];
59
+
60
+ if (b > 20) {
61
+ if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
62
+ output = 'fed'; // not 30ain, 70ain or 90ain
63
+ } else {
64
+ output = 'ain';
65
+ }
66
+ } else if (b > 0) {
67
+ output = lookup[b];
68
+ }
69
+
70
+ return number + output;
71
+ },
72
+ week : {
73
+ dow : 1, // Monday is the first day of the week.
74
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
75
+ }
76
+ });
77
+ }));
@@ -0,0 +1,56 @@
1
+ // moment.js language configuration
2
+ // language : danish (da)
3
+ // author : Ulrik Nielsen : https://github.com/mrbase
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('da', {
15
+ months : "januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),
16
+ monthsShort : "jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),
17
+ weekdays : "søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),
18
+ weekdaysShort : "søn_man_tir_ons_tor_fre_lør".split("_"),
19
+ weekdaysMin : "sø_ma_ti_on_to_fr_lø".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 : '[I dag kl.] LT',
29
+ nextDay : '[I morgen kl.] LT',
30
+ nextWeek : 'dddd [kl.] LT',
31
+ lastDay : '[I går kl.] LT',
32
+ lastWeek : '[sidste] dddd [kl] LT',
33
+ sameElse : 'L'
34
+ },
35
+ relativeTime : {
36
+ future : "om %s",
37
+ past : "%s siden",
38
+ s : "få sekunder",
39
+ m : "et minut",
40
+ mm : "%d minutter",
41
+ h : "en time",
42
+ hh : "%d timer",
43
+ d : "en dag",
44
+ dd : "%d dage",
45
+ M : "en måned",
46
+ MM : "%d måneder",
47
+ y : "et å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,71 @@
1
+ // moment.js language configuration
2
+ // language : german (de)
3
+ // author : lluchs : https://github.com/lluchs
4
+ // author: Menelion Elensúle: https://github.com/Oire
5
+
6
+ (function (factory) {
7
+ if (typeof define === 'function' && define.amd) {
8
+ define(['moment'], factory); // AMD
9
+ } else if (typeof exports === 'object') {
10
+ module.exports = factory(require('../moment')); // Node
11
+ } else {
12
+ factory(window.moment); // Browser global
13
+ }
14
+ }(function (moment) {
15
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
16
+ var format = {
17
+ 'm': ['eine Minute', 'einer Minute'],
18
+ 'h': ['eine Stunde', 'einer Stunde'],
19
+ 'd': ['ein Tag', 'einem Tag'],
20
+ 'dd': [number + ' Tage', number + ' Tagen'],
21
+ 'M': ['ein Monat', 'einem Monat'],
22
+ 'MM': [number + ' Monate', number + ' Monaten'],
23
+ 'y': ['ein Jahr', 'einem Jahr'],
24
+ 'yy': [number + ' Jahre', number + ' Jahren']
25
+ };
26
+ return withoutSuffix ? format[key][0] : format[key][1];
27
+ }
28
+
29
+ return moment.lang('de', {
30
+ months : "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),
31
+ monthsShort : "Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),
32
+ weekdays : "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),
33
+ weekdaysShort : "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),
34
+ weekdaysMin : "So_Mo_Di_Mi_Do_Fr_Sa".split("_"),
35
+ longDateFormat : {
36
+ LT: "HH:mm [Uhr]",
37
+ L : "DD.MM.YYYY",
38
+ LL : "D. MMMM YYYY",
39
+ LLL : "D. MMMM YYYY LT",
40
+ LLLL : "dddd, D. MMMM YYYY LT"
41
+ },
42
+ calendar : {
43
+ sameDay: "[Heute um] LT",
44
+ sameElse: "L",
45
+ nextDay: '[Morgen um] LT',
46
+ nextWeek: 'dddd [um] LT',
47
+ lastDay: '[Gestern um] LT',
48
+ lastWeek: '[letzten] dddd [um] LT'
49
+ },
50
+ relativeTime : {
51
+ future : "in %s",
52
+ past : "vor %s",
53
+ s : "ein paar Sekunden",
54
+ m : processRelativeTime,
55
+ mm : "%d Minuten",
56
+ h : processRelativeTime,
57
+ hh : "%d Stunden",
58
+ d : processRelativeTime,
59
+ dd : processRelativeTime,
60
+ M : processRelativeTime,
61
+ MM : processRelativeTime,
62
+ y : processRelativeTime,
63
+ yy : processRelativeTime
64
+ },
65
+ ordinal : '%d.',
66
+ week : {
67
+ dow : 1, // Monday is the first day of the week.
68
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
69
+ }
70
+ });
71
+ }));
@@ -0,0 +1,79 @@
1
+ // moment.js language configuration
2
+ // language : modern greek (el)
3
+ // author : Aggelos Karalias : https://github.com/mehiel
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('el', {
15
+ monthsNominativeEl : "Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),
16
+ monthsGenitiveEl : "Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),
17
+ months : function (momentToFormat, format) {
18
+ if (/D/.test(format.substring(0, format.indexOf("MMMM")))) { // if there is a day number before 'MMMM'
19
+ return this._monthsGenitiveEl[momentToFormat.month()];
20
+ } else {
21
+ return this._monthsNominativeEl[momentToFormat.month()];
22
+ }
23
+ },
24
+ monthsShort : "Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),
25
+ weekdays : "Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),
26
+ weekdaysShort : "Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),
27
+ weekdaysMin : "Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),
28
+ meridiem : function (hours, minutes, isLower) {
29
+ if (hours > 11) {
30
+ return isLower ? 'μμ' : 'ΜΜ';
31
+ } else {
32
+ return isLower ? 'πμ' : 'ΠΜ';
33
+ }
34
+ },
35
+ longDateFormat : {
36
+ LT : "h:mm A",
37
+ L : "DD/MM/YYYY",
38
+ LL : "D MMMM YYYY",
39
+ LLL : "D MMMM YYYY LT",
40
+ LLLL : "dddd, D MMMM YYYY LT"
41
+ },
42
+ calendarEl : {
43
+ sameDay : '[Σήμερα {}] LT',
44
+ nextDay : '[Αύριο {}] LT',
45
+ nextWeek : 'dddd [{}] LT',
46
+ lastDay : '[Χθες {}] LT',
47
+ lastWeek : '[την προηγούμενη] dddd [{}] LT',
48
+ sameElse : 'L'
49
+ },
50
+ calendar : function (key, mom) {
51
+ var output = this._calendarEl[key],
52
+ hours = mom && mom.hours();
53
+
54
+ return output.replace("{}", (hours % 12 === 1 ? "στη" : "στις"));
55
+ },
56
+ relativeTime : {
57
+ future : "σε %s",
58
+ past : "%s πριν",
59
+ s : "δευτερόλεπτα",
60
+ m : "ένα λεπτό",
61
+ mm : "%d λεπτά",
62
+ h : "μία ώρα",
63
+ hh : "%d ώρες",
64
+ d : "μία μέρα",
65
+ dd : "%d μέρες",
66
+ M : "ένας μήνας",
67
+ MM : "%d μήνες",
68
+ y : "ένας χρόνος",
69
+ yy : "%d χρόνια"
70
+ },
71
+ ordinal : function (number) {
72
+ return number + 'η';
73
+ },
74
+ week : {
75
+ dow : 1, // Monday is the first day of the week.
76
+ doy : 4 // The week that contains Jan 4st is the first week of the year.
77
+ }
78
+ });
79
+ }));