ember-rails-i18n 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +339 -0
- data/README.md +64 -0
- data/Rakefile +1 -0
- data/ember-rails-i18n.gemspec +26 -0
- data/lib/ember-rails-i18n.rb +15 -0
- data/lib/ember-rails-i18n/helper.rb +29 -0
- data/lib/ember-rails-i18n/version.rb +3 -0
- data/lib/javascripts/moment.js +2489 -0
- data/lib/javascripts/moment_locale/ar-ma.js +56 -0
- data/lib/javascripts/moment_locale/ar.js +56 -0
- data/lib/javascripts/moment_locale/bg.js +86 -0
- data/lib/javascripts/moment_locale/br.js +107 -0
- data/lib/javascripts/moment_locale/bs.js +139 -0
- data/lib/javascripts/moment_locale/ca.js +66 -0
- data/lib/javascripts/moment_locale/cs.js +155 -0
- data/lib/javascripts/moment_locale/cv.js +59 -0
- data/lib/javascripts/moment_locale/cy.js +77 -0
- data/lib/javascripts/moment_locale/da.js +56 -0
- data/lib/javascripts/moment_locale/de.js +71 -0
- data/lib/javascripts/moment_locale/el.js +79 -0
- data/lib/javascripts/moment_locale/en-au.js +62 -0
- data/lib/javascripts/moment_locale/en-ca.js +59 -0
- data/lib/javascripts/moment_locale/en-gb.js +63 -0
- data/lib/javascripts/moment_locale/eo.js +65 -0
- data/lib/javascripts/moment_locale/es.js +75 -0
- data/lib/javascripts/moment_locale/et.js +76 -0
- data/lib/javascripts/moment_locale/eu.js +60 -0
- data/lib/javascripts/moment_locale/fa.js +97 -0
- data/lib/javascripts/moment_locale/fi.js +103 -0
- data/lib/javascripts/moment_locale/fo.js +56 -0
- data/lib/javascripts/moment_locale/fr-ca.js +54 -0
- data/lib/javascripts/moment_locale/fr.js +58 -0
- data/lib/javascripts/moment_locale/gl.js +71 -0
- data/lib/javascripts/moment_locale/he.js +77 -0
- data/lib/javascripts/moment_locale/hi.js +105 -0
- data/lib/javascripts/moment_locale/hr.js +140 -0
- data/lib/javascripts/moment_locale/hu.js +105 -0
- data/lib/javascripts/moment_locale/hy-am.js +113 -0
- data/lib/javascripts/moment_locale/id.js +67 -0
- data/lib/javascripts/moment_locale/is.js +124 -0
- data/lib/javascripts/moment_locale/it.js +59 -0
- data/lib/javascripts/moment_locale/ja.js +58 -0
- data/lib/javascripts/moment_locale/ka.js +108 -0
- data/lib/javascripts/moment_locale/km.js +55 -0
- data/lib/javascripts/moment_locale/ko.js +63 -0
- data/lib/javascripts/moment_locale/lb.js +160 -0
- data/lib/javascripts/moment_locale/lt.js +118 -0
- data/lib/javascripts/moment_locale/lv.js +77 -0
- data/lib/javascripts/moment_locale/mk.js +86 -0
- data/lib/javascripts/moment_locale/ml.js +64 -0
- data/lib/javascripts/moment_locale/mr.js +104 -0
- data/lib/javascripts/moment_locale/ms-my.js +66 -0
- data/lib/javascripts/moment_locale/nb.js +57 -0
- data/lib/javascripts/moment_locale/ne.js +105 -0
- data/lib/javascripts/moment_locale/nl.js +67 -0
- data/lib/javascripts/moment_locale/nn.js +56 -0
- data/lib/javascripts/moment_locale/pl.js +98 -0
- data/lib/javascripts/moment_locale/pt-br.js +56 -0
- data/lib/javascripts/moment_locale/pt.js +60 -0
- data/lib/javascripts/moment_locale/ro.js +72 -0
- data/lib/javascripts/moment_locale/ru.js +163 -0
- data/lib/javascripts/moment_locale/sk.js +156 -0
- data/lib/javascripts/moment_locale/sl.js +144 -0
- data/lib/javascripts/moment_locale/sq.js +61 -0
- data/lib/javascripts/moment_locale/sr-cyr.js +106 -0
- data/lib/javascripts/moment_locale/sr.js +106 -0
- data/lib/javascripts/moment_locale/sv.js +63 -0
- data/lib/javascripts/moment_locale/ta.js +112 -0
- data/lib/javascripts/moment_locale/th.js +58 -0
- data/lib/javascripts/moment_locale/tl-ph.js +58 -0
- data/lib/javascripts/moment_locale/tr.js +93 -0
- data/lib/javascripts/moment_locale/tzm-la.js +55 -0
- data/lib/javascripts/moment_locale/tzm.js +55 -0
- data/lib/javascripts/moment_locale/uk.js +157 -0
- data/lib/javascripts/moment_locale/uz.js +55 -0
- data/lib/javascripts/moment_locale/vi.js +62 -0
- data/lib/javascripts/moment_locale/zh-cn.js +108 -0
- data/lib/javascripts/moment_locale/zh-tw.js +84 -0
- data/vendor/assets/javascripts/locales/i18n.js +598 -0
- data/vendor/assets/javascripts/locales/test.js.erb +3 -0
- metadata +182 -0
@@ -0,0 +1,62 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : australian english (en-au)
|
3
|
+
|
4
|
+
(function (factory) {
|
5
|
+
if (typeof define === 'function' && define.amd) {
|
6
|
+
define(['moment'], factory); // AMD
|
7
|
+
} else if (typeof exports === 'object') {
|
8
|
+
module.exports = factory(require('../moment')); // Node
|
9
|
+
} else {
|
10
|
+
factory(window.moment); // Browser global
|
11
|
+
}
|
12
|
+
}(function (moment) {
|
13
|
+
return moment.lang('en-au', {
|
14
|
+
months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
15
|
+
monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
|
16
|
+
weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
17
|
+
weekdaysShort : "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
|
18
|
+
weekdaysMin : "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
|
19
|
+
longDateFormat : {
|
20
|
+
LT : "h:mm A",
|
21
|
+
L : "DD/MM/YYYY",
|
22
|
+
LL : "D MMMM YYYY",
|
23
|
+
LLL : "D MMMM YYYY LT",
|
24
|
+
LLLL : "dddd, D MMMM YYYY LT"
|
25
|
+
},
|
26
|
+
calendar : {
|
27
|
+
sameDay : '[Today at] LT',
|
28
|
+
nextDay : '[Tomorrow at] LT',
|
29
|
+
nextWeek : 'dddd [at] LT',
|
30
|
+
lastDay : '[Yesterday at] LT',
|
31
|
+
lastWeek : '[Last] dddd [at] LT',
|
32
|
+
sameElse : 'L'
|
33
|
+
},
|
34
|
+
relativeTime : {
|
35
|
+
future : "in %s",
|
36
|
+
past : "%s ago",
|
37
|
+
s : "a few seconds",
|
38
|
+
m : "a minute",
|
39
|
+
mm : "%d minutes",
|
40
|
+
h : "an hour",
|
41
|
+
hh : "%d hours",
|
42
|
+
d : "a day",
|
43
|
+
dd : "%d days",
|
44
|
+
M : "a month",
|
45
|
+
MM : "%d months",
|
46
|
+
y : "a year",
|
47
|
+
yy : "%d years"
|
48
|
+
},
|
49
|
+
ordinal : function (number) {
|
50
|
+
var b = number % 10,
|
51
|
+
output = (~~ (number % 100 / 10) === 1) ? 'th' :
|
52
|
+
(b === 1) ? 'st' :
|
53
|
+
(b === 2) ? 'nd' :
|
54
|
+
(b === 3) ? 'rd' : 'th';
|
55
|
+
return number + output;
|
56
|
+
},
|
57
|
+
week : {
|
58
|
+
dow : 1, // Monday is the first day of the week.
|
59
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
60
|
+
}
|
61
|
+
});
|
62
|
+
}));
|
@@ -0,0 +1,59 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : canadian english (en-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('en-ca', {
|
15
|
+
months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
16
|
+
monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
|
17
|
+
weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
18
|
+
weekdaysShort : "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
|
19
|
+
weekdaysMin : "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : "h:mm A",
|
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 : '[Today at] LT',
|
29
|
+
nextDay : '[Tomorrow at] LT',
|
30
|
+
nextWeek : 'dddd [at] LT',
|
31
|
+
lastDay : '[Yesterday at] LT',
|
32
|
+
lastWeek : '[Last] dddd [at] LT',
|
33
|
+
sameElse : 'L'
|
34
|
+
},
|
35
|
+
relativeTime : {
|
36
|
+
future : "in %s",
|
37
|
+
past : "%s ago",
|
38
|
+
s : "a few seconds",
|
39
|
+
m : "a minute",
|
40
|
+
mm : "%d minutes",
|
41
|
+
h : "an hour",
|
42
|
+
hh : "%d hours",
|
43
|
+
d : "a day",
|
44
|
+
dd : "%d days",
|
45
|
+
M : "a month",
|
46
|
+
MM : "%d months",
|
47
|
+
y : "a year",
|
48
|
+
yy : "%d years"
|
49
|
+
},
|
50
|
+
ordinal : function (number) {
|
51
|
+
var b = number % 10,
|
52
|
+
output = (~~ (number % 100 / 10) === 1) ? 'th' :
|
53
|
+
(b === 1) ? 'st' :
|
54
|
+
(b === 2) ? 'nd' :
|
55
|
+
(b === 3) ? 'rd' : 'th';
|
56
|
+
return number + output;
|
57
|
+
}
|
58
|
+
});
|
59
|
+
}));
|
@@ -0,0 +1,63 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : great britain english (en-gb)
|
3
|
+
// author : Chris Gedrim : https://github.com/chrisgedrim
|
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('en-gb', {
|
15
|
+
months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
16
|
+
monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
|
17
|
+
weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
18
|
+
weekdaysShort : "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
|
19
|
+
weekdaysMin : "Su_Mo_Tu_We_Th_Fr_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 : '[Today at] LT',
|
29
|
+
nextDay : '[Tomorrow at] LT',
|
30
|
+
nextWeek : 'dddd [at] LT',
|
31
|
+
lastDay : '[Yesterday at] LT',
|
32
|
+
lastWeek : '[Last] dddd [at] LT',
|
33
|
+
sameElse : 'L'
|
34
|
+
},
|
35
|
+
relativeTime : {
|
36
|
+
future : "in %s",
|
37
|
+
past : "%s ago",
|
38
|
+
s : "a few seconds",
|
39
|
+
m : "a minute",
|
40
|
+
mm : "%d minutes",
|
41
|
+
h : "an hour",
|
42
|
+
hh : "%d hours",
|
43
|
+
d : "a day",
|
44
|
+
dd : "%d days",
|
45
|
+
M : "a month",
|
46
|
+
MM : "%d months",
|
47
|
+
y : "a year",
|
48
|
+
yy : "%d years"
|
49
|
+
},
|
50
|
+
ordinal : function (number) {
|
51
|
+
var b = number % 10,
|
52
|
+
output = (~~ (number % 100 / 10) === 1) ? 'th' :
|
53
|
+
(b === 1) ? 'st' :
|
54
|
+
(b === 2) ? 'nd' :
|
55
|
+
(b === 3) ? 'rd' : 'th';
|
56
|
+
return number + output;
|
57
|
+
},
|
58
|
+
week : {
|
59
|
+
dow : 1, // Monday is the first day of the week.
|
60
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
61
|
+
}
|
62
|
+
});
|
63
|
+
}));
|
@@ -0,0 +1,65 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : esperanto (eo)
|
3
|
+
// author : Colin Dean : https://github.com/colindean
|
4
|
+
// komento: Mi estas malcerta se mi korekte traktis akuzativojn en tiu traduko.
|
5
|
+
// Se ne, bonvolu korekti kaj avizi min por ke mi povas lerni!
|
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('eo', {
|
17
|
+
months : "januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),
|
18
|
+
monthsShort : "jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),
|
19
|
+
weekdays : "Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"),
|
20
|
+
weekdaysShort : "Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"),
|
21
|
+
weekdaysMin : "Di_Lu_Ma_Me_Ĵa_Ve_Sa".split("_"),
|
22
|
+
longDateFormat : {
|
23
|
+
LT : "HH:mm",
|
24
|
+
L : "YYYY-MM-DD",
|
25
|
+
LL : "D[-an de] MMMM, YYYY",
|
26
|
+
LLL : "D[-an de] MMMM, YYYY LT",
|
27
|
+
LLLL : "dddd, [la] D[-an de] MMMM, YYYY LT"
|
28
|
+
},
|
29
|
+
meridiem : function (hours, minutes, isLower) {
|
30
|
+
if (hours > 11) {
|
31
|
+
return isLower ? 'p.t.m.' : 'P.T.M.';
|
32
|
+
} else {
|
33
|
+
return isLower ? 'a.t.m.' : 'A.T.M.';
|
34
|
+
}
|
35
|
+
},
|
36
|
+
calendar : {
|
37
|
+
sameDay : '[Hodiaŭ je] LT',
|
38
|
+
nextDay : '[Morgaŭ je] LT',
|
39
|
+
nextWeek : 'dddd [je] LT',
|
40
|
+
lastDay : '[Hieraŭ je] LT',
|
41
|
+
lastWeek : '[pasinta] dddd [je] LT',
|
42
|
+
sameElse : 'L'
|
43
|
+
},
|
44
|
+
relativeTime : {
|
45
|
+
future : "je %s",
|
46
|
+
past : "antaŭ %s",
|
47
|
+
s : "sekundoj",
|
48
|
+
m : "minuto",
|
49
|
+
mm : "%d minutoj",
|
50
|
+
h : "horo",
|
51
|
+
hh : "%d horoj",
|
52
|
+
d : "tago",//ne 'diurno', ĉar estas uzita por proksimumo
|
53
|
+
dd : "%d tagoj",
|
54
|
+
M : "monato",
|
55
|
+
MM : "%d monatoj",
|
56
|
+
y : "jaro",
|
57
|
+
yy : "%d jaroj"
|
58
|
+
},
|
59
|
+
ordinal : "%da",
|
60
|
+
week : {
|
61
|
+
dow : 1, // Monday is the first day of the week.
|
62
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
63
|
+
}
|
64
|
+
});
|
65
|
+
}));
|
@@ -0,0 +1,75 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : spanish (es)
|
3
|
+
// author : Julio Napurí : https://github.com/julionc
|
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 monthsShortDot = "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),
|
15
|
+
monthsShort = "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");
|
16
|
+
|
17
|
+
return moment.lang('es', {
|
18
|
+
months : "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),
|
19
|
+
monthsShort : function (m, format) {
|
20
|
+
if (/-MMM-/.test(format)) {
|
21
|
+
return monthsShort[m.month()];
|
22
|
+
} else {
|
23
|
+
return monthsShortDot[m.month()];
|
24
|
+
}
|
25
|
+
},
|
26
|
+
weekdays : "domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),
|
27
|
+
weekdaysShort : "dom._lun._mar._mié._jue._vie._sáb.".split("_"),
|
28
|
+
weekdaysMin : "Do_Lu_Ma_Mi_Ju_Vi_Sá".split("_"),
|
29
|
+
longDateFormat : {
|
30
|
+
LT : "H:mm",
|
31
|
+
L : "DD/MM/YYYY",
|
32
|
+
LL : "D [de] MMMM [del] YYYY",
|
33
|
+
LLL : "D [de] MMMM [del] YYYY LT",
|
34
|
+
LLLL : "dddd, D [de] MMMM [del] YYYY LT"
|
35
|
+
},
|
36
|
+
calendar : {
|
37
|
+
sameDay : function () {
|
38
|
+
return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
39
|
+
},
|
40
|
+
nextDay : function () {
|
41
|
+
return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
42
|
+
},
|
43
|
+
nextWeek : function () {
|
44
|
+
return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
45
|
+
},
|
46
|
+
lastDay : function () {
|
47
|
+
return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
48
|
+
},
|
49
|
+
lastWeek : function () {
|
50
|
+
return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
51
|
+
},
|
52
|
+
sameElse : 'L'
|
53
|
+
},
|
54
|
+
relativeTime : {
|
55
|
+
future : "en %s",
|
56
|
+
past : "hace %s",
|
57
|
+
s : "unos segundos",
|
58
|
+
m : "un minuto",
|
59
|
+
mm : "%d minutos",
|
60
|
+
h : "una hora",
|
61
|
+
hh : "%d horas",
|
62
|
+
d : "un día",
|
63
|
+
dd : "%d días",
|
64
|
+
M : "un mes",
|
65
|
+
MM : "%d meses",
|
66
|
+
y : "un año",
|
67
|
+
yy : "%d años"
|
68
|
+
},
|
69
|
+
ordinal : '%dº',
|
70
|
+
week : {
|
71
|
+
dow : 1, // Monday is the first day of the week.
|
72
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
73
|
+
}
|
74
|
+
});
|
75
|
+
}));
|
@@ -0,0 +1,76 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : estonian (et)
|
3
|
+
// author : Henry Kehlmann : https://github.com/madhenry
|
4
|
+
// improvements : Illimar Tambek : https://github.com/ragulka
|
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
|
+
's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
|
18
|
+
'm' : ['ühe minuti', 'üks minut'],
|
19
|
+
'mm': [number + ' minuti', number + ' minutit'],
|
20
|
+
'h' : ['ühe tunni', 'tund aega', 'üks tund'],
|
21
|
+
'hh': [number + ' tunni', number + ' tundi'],
|
22
|
+
'd' : ['ühe päeva', 'üks päev'],
|
23
|
+
'M' : ['kuu aja', 'kuu aega', 'üks kuu'],
|
24
|
+
'MM': [number + ' kuu', number + ' kuud'],
|
25
|
+
'y' : ['ühe aasta', 'aasta', 'üks aasta'],
|
26
|
+
'yy': [number + ' aasta', number + ' aastat']
|
27
|
+
};
|
28
|
+
if (withoutSuffix) {
|
29
|
+
return format[key][2] ? format[key][2] : format[key][1];
|
30
|
+
}
|
31
|
+
return isFuture ? format[key][0] : format[key][1];
|
32
|
+
}
|
33
|
+
|
34
|
+
return moment.lang('et', {
|
35
|
+
months : "jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),
|
36
|
+
monthsShort : "jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),
|
37
|
+
weekdays : "pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),
|
38
|
+
weekdaysShort : "P_E_T_K_N_R_L".split("_"),
|
39
|
+
weekdaysMin : "P_E_T_K_N_R_L".split("_"),
|
40
|
+
longDateFormat : {
|
41
|
+
LT : "H:mm",
|
42
|
+
L : "DD.MM.YYYY",
|
43
|
+
LL : "D. MMMM YYYY",
|
44
|
+
LLL : "D. MMMM YYYY LT",
|
45
|
+
LLLL : "dddd, D. MMMM YYYY LT"
|
46
|
+
},
|
47
|
+
calendar : {
|
48
|
+
sameDay : '[Täna,] LT',
|
49
|
+
nextDay : '[Homme,] LT',
|
50
|
+
nextWeek : '[Järgmine] dddd LT',
|
51
|
+
lastDay : '[Eile,] LT',
|
52
|
+
lastWeek : '[Eelmine] dddd LT',
|
53
|
+
sameElse : 'L'
|
54
|
+
},
|
55
|
+
relativeTime : {
|
56
|
+
future : "%s pärast",
|
57
|
+
past : "%s tagasi",
|
58
|
+
s : processRelativeTime,
|
59
|
+
m : processRelativeTime,
|
60
|
+
mm : processRelativeTime,
|
61
|
+
h : processRelativeTime,
|
62
|
+
hh : processRelativeTime,
|
63
|
+
d : processRelativeTime,
|
64
|
+
dd : '%d päeva',
|
65
|
+
M : processRelativeTime,
|
66
|
+
MM : processRelativeTime,
|
67
|
+
y : processRelativeTime,
|
68
|
+
yy : processRelativeTime
|
69
|
+
},
|
70
|
+
ordinal : '%d.',
|
71
|
+
week : {
|
72
|
+
dow : 1, // Monday is the first day of the week.
|
73
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
74
|
+
}
|
75
|
+
});
|
76
|
+
}));
|
@@ -0,0 +1,60 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : euskara (eu)
|
3
|
+
// author : Eneko Illarramendi : https://github.com/eillarra
|
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('eu', {
|
15
|
+
months : "urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),
|
16
|
+
monthsShort : "urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),
|
17
|
+
weekdays : "igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),
|
18
|
+
weekdaysShort : "ig._al._ar._az._og._ol._lr.".split("_"),
|
19
|
+
weekdaysMin : "ig_al_ar_az_og_ol_lr".split("_"),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : "HH:mm",
|
22
|
+
L : "YYYY-MM-DD",
|
23
|
+
LL : "YYYY[ko] MMMM[ren] D[a]",
|
24
|
+
LLL : "YYYY[ko] MMMM[ren] D[a] LT",
|
25
|
+
LLLL : "dddd, YYYY[ko] MMMM[ren] D[a] LT",
|
26
|
+
l : "YYYY-M-D",
|
27
|
+
ll : "YYYY[ko] MMM D[a]",
|
28
|
+
lll : "YYYY[ko] MMM D[a] LT",
|
29
|
+
llll : "ddd, YYYY[ko] MMM D[a] LT"
|
30
|
+
},
|
31
|
+
calendar : {
|
32
|
+
sameDay : '[gaur] LT[etan]',
|
33
|
+
nextDay : '[bihar] LT[etan]',
|
34
|
+
nextWeek : 'dddd LT[etan]',
|
35
|
+
lastDay : '[atzo] LT[etan]',
|
36
|
+
lastWeek : '[aurreko] dddd LT[etan]',
|
37
|
+
sameElse : 'L'
|
38
|
+
},
|
39
|
+
relativeTime : {
|
40
|
+
future : "%s barru",
|
41
|
+
past : "duela %s",
|
42
|
+
s : "segundo batzuk",
|
43
|
+
m : "minutu bat",
|
44
|
+
mm : "%d minutu",
|
45
|
+
h : "ordu bat",
|
46
|
+
hh : "%d ordu",
|
47
|
+
d : "egun bat",
|
48
|
+
dd : "%d egun",
|
49
|
+
M : "hilabete bat",
|
50
|
+
MM : "%d hilabete",
|
51
|
+
y : "urte bat",
|
52
|
+
yy : "%d urte"
|
53
|
+
},
|
54
|
+
ordinal : '%d.',
|
55
|
+
week : {
|
56
|
+
dow : 1, // Monday is the first day of the week.
|
57
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
58
|
+
}
|
59
|
+
});
|
60
|
+
}));
|