momentjs-rails 1.7.2 → 2.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/{changelog.md → news.md} +30 -12
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +65 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +31 -0
- data/test/dummy/config/environments/production.rb +64 -0
- data/test/dummy/config/environments/test.rb +35 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +10 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +2 -0
- data/test/dummy/log/test.log +76 -0
- data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
- data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
- data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
- data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
- data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
- data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
- data/test/integration/navigation_test.rb +14 -0
- data/test/momentjs-rails_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- data/vendor/assets/javascripts/moment.js +542 -355
- data/vendor/assets/javascripts/moment/ar-ma.js +46 -0
- data/vendor/assets/javascripts/moment/ar.js +45 -0
- data/vendor/assets/javascripts/moment/bg.js +71 -61
- data/vendor/assets/javascripts/moment/ca.js +51 -59
- data/vendor/assets/javascripts/moment/cs.js +145 -0
- data/vendor/assets/javascripts/moment/cv.js +45 -53
- data/vendor/assets/javascripts/moment/da.js +41 -49
- data/vendor/assets/javascripts/moment/de.js +41 -49
- data/vendor/assets/javascripts/moment/en-ca.js +44 -53
- data/vendor/assets/javascripts/moment/en-gb.js +48 -53
- data/vendor/assets/javascripts/moment/eo.js +55 -0
- data/vendor/assets/javascripts/moment/es.js +51 -59
- data/vendor/assets/javascripts/moment/et.js +44 -61
- data/vendor/assets/javascripts/moment/eu.js +46 -50
- data/vendor/assets/javascripts/moment/fi.js +84 -89
- data/vendor/assets/javascripts/moment/fr-ca.js +39 -49
- data/vendor/assets/javascripts/moment/fr.js +43 -49
- data/vendor/assets/javascripts/moment/gl.js +51 -59
- data/vendor/assets/javascripts/moment/he.js +46 -0
- data/vendor/assets/javascripts/moment/hu.js +77 -98
- data/vendor/assets/javascripts/moment/id.js +57 -0
- data/vendor/assets/javascripts/moment/is.js +103 -121
- data/vendor/assets/javascripts/moment/it.js +41 -49
- data/vendor/assets/javascripts/moment/ja.js +43 -56
- data/vendor/assets/javascripts/moment/ko.js +42 -54
- data/vendor/assets/javascripts/moment/lv.js +67 -0
- data/vendor/assets/javascripts/moment/nb.js +41 -49
- data/vendor/assets/javascripts/moment/ne.js +95 -0
- data/vendor/assets/javascripts/moment/nl.js +52 -57
- data/vendor/assets/javascripts/moment/pl.js +73 -70
- data/vendor/assets/javascripts/moment/pt-br.js +42 -54
- data/vendor/assets/javascripts/moment/pt.js +45 -53
- data/vendor/assets/javascripts/moment/ro.js +40 -49
- data/vendor/assets/javascripts/moment/ru.js +105 -114
- data/vendor/assets/javascripts/moment/sl.js +134 -0
- data/vendor/assets/javascripts/moment/sv.js +48 -53
- data/vendor/assets/javascripts/moment/th.js +48 -0
- data/vendor/assets/javascripts/moment/tr.js +69 -75
- data/vendor/assets/javascripts/moment/tzm-la.js +45 -0
- data/vendor/assets/javascripts/moment/tzm.js +45 -0
- data/vendor/assets/javascripts/moment/uk.js +122 -0
- data/vendor/assets/javascripts/moment/zh-cn.js +53 -62
- data/vendor/assets/javascripts/moment/zh-tw.js +53 -62
- metadata +121 -54
- data/vendor/assets/javascripts/moment/jp.js +0 -64
- data/vendor/assets/javascripts/moment/kr.js +0 -61
@@ -1,76 +1,79 @@
|
|
1
1
|
// moment.js language configuration
|
2
2
|
// language : polish (pl)
|
3
3
|
// author : Rafal Hirsz : https://github.com/evoL
|
4
|
-
(function () {
|
5
|
-
var plural = function (n) {
|
6
|
-
return (n % 10 < 5) && (n % 10 > 1) && (~~(n / 10) !== 1);
|
7
|
-
},
|
8
|
-
|
9
|
-
translate = function (number, withoutSuffix, key) {
|
10
|
-
var result = number + " ";
|
11
|
-
switch (key) {
|
12
|
-
case 'm':
|
13
|
-
return withoutSuffix ? 'minuta' : 'minutę';
|
14
|
-
case 'mm':
|
15
|
-
return result + (plural(number) ? 'minuty' : 'minut');
|
16
|
-
case 'h':
|
17
|
-
return withoutSuffix ? 'godzina' : 'godzinę';
|
18
|
-
case 'hh':
|
19
|
-
return result + (plural(number) ? 'godziny' : 'godzin');
|
20
|
-
case 'MM':
|
21
|
-
return result + (plural(number) ? 'miesiące' : 'miesięcy');
|
22
|
-
case 'yy':
|
23
|
-
return result + (plural(number) ? 'lata' : 'lat');
|
24
|
-
}
|
25
|
-
},
|
26
|
-
|
27
|
-
lang = {
|
28
|
-
months : "styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),
|
29
|
-
monthsShort : "sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),
|
30
|
-
weekdays : "niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),
|
31
|
-
weekdaysShort : "nie_pon_wt_śr_czw_pt_sb".split("_"),
|
32
|
-
weekdaysMin : "N_Pn_Wt_Śr_Cz_Pt_So".split("_"),
|
33
|
-
longDateFormat : {
|
34
|
-
LT : "HH:mm",
|
35
|
-
L : "DD-MM-YYYY",
|
36
|
-
LL : "D MMMM YYYY",
|
37
|
-
LLL : "D MMMM YYYY LT",
|
38
|
-
LLLL : "dddd, D MMMM YYYY LT"
|
39
|
-
},
|
40
|
-
calendar : {
|
41
|
-
sameDay: '[Dziś o] LT',
|
42
|
-
nextDay: '[Jutro o] LT',
|
43
|
-
nextWeek: '[W] dddd [o] LT',
|
44
|
-
lastDay: '[Wczoraj o] LT',
|
45
|
-
lastWeek: '[W zeszły/łą] dddd [o] LT',
|
46
|
-
sameElse: 'L'
|
47
|
-
},
|
48
|
-
relativeTime : {
|
49
|
-
future : "za %s",
|
50
|
-
past : "%s temu",
|
51
|
-
s : "kilka sekund",
|
52
|
-
m : translate,
|
53
|
-
mm : translate,
|
54
|
-
h : translate,
|
55
|
-
hh : translate,
|
56
|
-
d : "1 dzień",
|
57
|
-
dd : '%d dni',
|
58
|
-
M : "miesiąc",
|
59
|
-
MM : translate,
|
60
|
-
y : "rok",
|
61
|
-
yy : translate
|
62
|
-
},
|
63
|
-
ordinal : function (number) {
|
64
|
-
return '.';
|
65
|
-
}
|
66
|
-
};
|
67
4
|
|
68
|
-
|
69
|
-
|
70
|
-
|
5
|
+
function plural(n) {
|
6
|
+
return (n % 10 < 5) && (n % 10 > 1) && (~~(n / 10) !== 1);
|
7
|
+
}
|
8
|
+
|
9
|
+
function translate(number, withoutSuffix, key) {
|
10
|
+
var result = number + " ";
|
11
|
+
switch (key) {
|
12
|
+
case 'm':
|
13
|
+
return withoutSuffix ? 'minuta' : 'minutę';
|
14
|
+
case 'mm':
|
15
|
+
return result + (plural(number) ? 'minuty' : 'minut');
|
16
|
+
case 'h':
|
17
|
+
return withoutSuffix ? 'godzina' : 'godzinę';
|
18
|
+
case 'hh':
|
19
|
+
return result + (plural(number) ? 'godziny' : 'godzin');
|
20
|
+
case 'MM':
|
21
|
+
return result + (plural(number) ? 'miesiące' : 'miesięcy');
|
22
|
+
case 'yy':
|
23
|
+
return result + (plural(number) ? 'lata' : 'lat');
|
71
24
|
}
|
72
|
-
|
73
|
-
|
74
|
-
|
25
|
+
}
|
26
|
+
|
27
|
+
require('../moment').lang('pl', {
|
28
|
+
months : "styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),
|
29
|
+
monthsShort : "sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),
|
30
|
+
weekdays : "niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),
|
31
|
+
weekdaysShort : "nie_pon_wt_śr_czw_pt_sb".split("_"),
|
32
|
+
weekdaysMin : "N_Pn_Wt_Śr_Cz_Pt_So".split("_"),
|
33
|
+
longDateFormat : {
|
34
|
+
LT : "HH:mm",
|
35
|
+
L : "DD-MM-YYYY",
|
36
|
+
LL : "D MMMM YYYY",
|
37
|
+
LLL : "D MMMM YYYY LT",
|
38
|
+
LLLL : "dddd, D MMMM YYYY LT"
|
39
|
+
},
|
40
|
+
calendar : {
|
41
|
+
sameDay: '[Dziś o] LT',
|
42
|
+
nextDay: '[Jutro o] LT',
|
43
|
+
nextWeek: '[W] dddd [o] LT',
|
44
|
+
lastDay: '[Wczoraj o] LT',
|
45
|
+
lastWeek: function () {
|
46
|
+
switch (this.day()) {
|
47
|
+
case 0:
|
48
|
+
return '[W zeszłą niedzielę o] LT';
|
49
|
+
case 3:
|
50
|
+
return '[W zeszłą środę o] LT';
|
51
|
+
case 6:
|
52
|
+
return '[W zeszłą sobotę o] LT';
|
53
|
+
default:
|
54
|
+
return '[W zeszły] dddd [o] LT';
|
55
|
+
}
|
56
|
+
},
|
57
|
+
sameElse: 'L'
|
58
|
+
},
|
59
|
+
relativeTime : {
|
60
|
+
future : "za %s",
|
61
|
+
past : "%s temu",
|
62
|
+
s : "kilka sekund",
|
63
|
+
m : translate,
|
64
|
+
mm : translate,
|
65
|
+
h : translate,
|
66
|
+
hh : translate,
|
67
|
+
d : "1 dzień",
|
68
|
+
dd : '%d dni',
|
69
|
+
M : "miesiąc",
|
70
|
+
MM : translate,
|
71
|
+
y : "rok",
|
72
|
+
yy : translate
|
73
|
+
},
|
74
|
+
ordinal : '%d.',
|
75
|
+
week : {
|
76
|
+
dow : 1, // Monday is the first day of the week.
|
77
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
75
78
|
}
|
76
|
-
}
|
79
|
+
});
|
@@ -1,58 +1,46 @@
|
|
1
1
|
// moment.js language configuration
|
2
2
|
// language : brazilian portuguese (pt-br)
|
3
3
|
// author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
|
4
|
-
(function () {
|
5
|
-
var lang = {
|
6
|
-
months : "Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),
|
7
|
-
monthsShort : "Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),
|
8
|
-
weekdays : "Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),
|
9
|
-
weekdaysShort : "Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),
|
10
|
-
weekdaysMin : "Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),
|
11
|
-
longDateFormat : {
|
12
|
-
LT : "HH:mm",
|
13
|
-
L : "DD/MM/YYYY",
|
14
|
-
LL : "D \\de MMMM \\de YYYY",
|
15
|
-
LLL : "D \\de MMMM \\de YYYY LT",
|
16
|
-
LLLL : "dddd, D \\de MMMM \\de YYYY LT"
|
17
|
-
},
|
18
|
-
calendar : {
|
19
|
-
sameDay: '[Hoje às] LT',
|
20
|
-
nextDay: '[Amanhã às] LT',
|
21
|
-
nextWeek: 'dddd [às] LT',
|
22
|
-
lastDay: '[Ontem às] LT',
|
23
|
-
lastWeek: function () {
|
24
|
-
return (this.day() === 0 || this.day() === 6) ?
|
25
|
-
'[Último] dddd [às] LT' : // Saturday + Sunday
|
26
|
-
'[Última] dddd [às] LT'; // Monday - Friday
|
27
|
-
},
|
28
|
-
sameElse: 'L'
|
29
|
-
},
|
30
|
-
relativeTime : {
|
31
|
-
future : "em %s",
|
32
|
-
past : "%s atrás",
|
33
|
-
s : "segundos",
|
34
|
-
m : "um minuto",
|
35
|
-
mm : "%d minutos",
|
36
|
-
h : "uma hora",
|
37
|
-
hh : "%d horas",
|
38
|
-
d : "um dia",
|
39
|
-
dd : "%d dias",
|
40
|
-
M : "um mês",
|
41
|
-
MM : "%d meses",
|
42
|
-
y : "um ano",
|
43
|
-
yy : "%d anos"
|
44
|
-
},
|
45
|
-
ordinal : function (number) {
|
46
|
-
return 'º';
|
47
|
-
}
|
48
|
-
};
|
49
4
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
5
|
+
require('../moment').lang('pt-br', {
|
6
|
+
months : "Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),
|
7
|
+
monthsShort : "Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),
|
8
|
+
weekdays : "Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),
|
9
|
+
weekdaysShort : "Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),
|
10
|
+
weekdaysMin : "Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),
|
11
|
+
longDateFormat : {
|
12
|
+
LT : "HH:mm",
|
13
|
+
L : "DD/MM/YYYY",
|
14
|
+
LL : "D \\de MMMM \\de YYYY",
|
15
|
+
LLL : "D \\de MMMM \\de YYYY LT",
|
16
|
+
LLLL : "dddd, D \\de MMMM \\de YYYY LT"
|
17
|
+
},
|
18
|
+
calendar : {
|
19
|
+
sameDay: '[Hoje às] LT',
|
20
|
+
nextDay: '[Amanhã às] LT',
|
21
|
+
nextWeek: 'dddd [às] LT',
|
22
|
+
lastDay: '[Ontem às] LT',
|
23
|
+
lastWeek: function () {
|
24
|
+
return (this.day() === 0 || this.day() === 6) ?
|
25
|
+
'[Último] dddd [às] LT' : // Saturday + Sunday
|
26
|
+
'[Última] dddd [às] LT'; // Monday - Friday
|
27
|
+
},
|
28
|
+
sameElse: 'L'
|
29
|
+
},
|
30
|
+
relativeTime : {
|
31
|
+
future : "em %s",
|
32
|
+
past : "%s atrás",
|
33
|
+
s : "segundos",
|
34
|
+
m : "um minuto",
|
35
|
+
mm : "%d minutos",
|
36
|
+
h : "uma hora",
|
37
|
+
hh : "%d horas",
|
38
|
+
d : "um dia",
|
39
|
+
dd : "%d dias",
|
40
|
+
M : "um mês",
|
41
|
+
MM : "%d meses",
|
42
|
+
y : "um ano",
|
43
|
+
yy : "%d anos"
|
44
|
+
},
|
45
|
+
ordinal : '%dº'
|
46
|
+
});
|
@@ -1,58 +1,50 @@
|
|
1
1
|
// moment.js language configuration
|
2
2
|
// language : portuguese (pt)
|
3
3
|
// author : Jefferson : https://github.com/jalex79
|
4
|
-
(function () {
|
5
|
-
var lang = {
|
6
|
-
months : "Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),
|
7
|
-
monthsShort : "Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),
|
8
|
-
weekdays : "Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),
|
9
|
-
weekdaysShort : "Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),
|
10
|
-
weekdaysMin : "Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),
|
11
|
-
longDateFormat : {
|
12
|
-
LT : "HH:mm",
|
13
|
-
L : "DD/MM/YYYY",
|
14
|
-
LL : "D \\de MMMM \\de YYYY",
|
15
|
-
LLL : "D \\de MMMM \\de YYYY LT",
|
16
|
-
LLLL : "dddd, D \\de MMMM \\de YYYY LT"
|
17
|
-
},
|
18
|
-
calendar : {
|
19
|
-
sameDay: '[Hoje às] LT',
|
20
|
-
nextDay: '[Amanhã às] LT',
|
21
|
-
nextWeek: 'dddd [às] LT',
|
22
|
-
lastDay: '[Ontem às] LT',
|
23
|
-
lastWeek: function () {
|
24
|
-
return (this.day() === 0 || this.day() === 6) ?
|
25
|
-
'[Último] dddd [às] LT' : // Saturday + Sunday
|
26
|
-
'[Última] dddd [às] LT'; // Monday - Friday
|
27
|
-
},
|
28
|
-
sameElse: 'L'
|
29
|
-
},
|
30
|
-
relativeTime : {
|
31
|
-
future : "em %s",
|
32
|
-
past : "%s atrás",
|
33
|
-
s : "segundos",
|
34
|
-
m : "um minuto",
|
35
|
-
mm : "%d minutos",
|
36
|
-
h : "uma hora",
|
37
|
-
hh : "%d horas",
|
38
|
-
d : "um dia",
|
39
|
-
dd : "%d dias",
|
40
|
-
M : "um mês",
|
41
|
-
MM : "%d meses",
|
42
|
-
y : "um ano",
|
43
|
-
yy : "%d anos"
|
44
|
-
},
|
45
|
-
ordinal : function (number) {
|
46
|
-
return 'º';
|
47
|
-
}
|
48
|
-
};
|
49
4
|
|
50
|
-
|
51
|
-
|
52
|
-
|
5
|
+
require('../moment').lang('pt', {
|
6
|
+
months : "Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),
|
7
|
+
monthsShort : "Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),
|
8
|
+
weekdays : "Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),
|
9
|
+
weekdaysShort : "Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),
|
10
|
+
weekdaysMin : "Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),
|
11
|
+
longDateFormat : {
|
12
|
+
LT : "HH:mm",
|
13
|
+
L : "DD/MM/YYYY",
|
14
|
+
LL : "D \\de MMMM \\de YYYY",
|
15
|
+
LLL : "D \\de MMMM \\de YYYY LT",
|
16
|
+
LLLL : "dddd, D \\de MMMM \\de YYYY LT"
|
17
|
+
},
|
18
|
+
calendar : {
|
19
|
+
sameDay: '[Hoje às] LT',
|
20
|
+
nextDay: '[Amanhã às] LT',
|
21
|
+
nextWeek: 'dddd [às] LT',
|
22
|
+
lastDay: '[Ontem às] LT',
|
23
|
+
lastWeek: function () {
|
24
|
+
return (this.day() === 0 || this.day() === 6) ?
|
25
|
+
'[Último] dddd [às] LT' : // Saturday + Sunday
|
26
|
+
'[Última] dddd [às] LT'; // Monday - Friday
|
27
|
+
},
|
28
|
+
sameElse: 'L'
|
29
|
+
},
|
30
|
+
relativeTime : {
|
31
|
+
future : "em %s",
|
32
|
+
past : "%s atrás",
|
33
|
+
s : "segundos",
|
34
|
+
m : "um minuto",
|
35
|
+
mm : "%d minutos",
|
36
|
+
h : "uma hora",
|
37
|
+
hh : "%d horas",
|
38
|
+
d : "um dia",
|
39
|
+
dd : "%d dias",
|
40
|
+
M : "um mês",
|
41
|
+
MM : "%d meses",
|
42
|
+
y : "um ano",
|
43
|
+
yy : "%d anos"
|
44
|
+
},
|
45
|
+
ordinal : '%dº',
|
46
|
+
week : {
|
47
|
+
dow : 1, // Monday is the first day of the week.
|
48
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
53
49
|
}
|
54
|
-
|
55
|
-
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
56
|
-
this.moment.lang('pt', lang);
|
57
|
-
}
|
58
|
-
}());
|
50
|
+
});
|
@@ -2,54 +2,45 @@
|
|
2
2
|
// language : romanian (ro)
|
3
3
|
// author : Vlad Gurdiga : https://github.com/gurdiga
|
4
4
|
// author : Valentin Agachi : https://github.com/avaly
|
5
|
-
(function () {
|
6
|
-
var lang = {
|
7
|
-
months : "Ianuarie_Februarie_Martie_Aprilie_Mai_Iunie_Iulie_August_Septembrie_Octombrie_Noiembrie_Decembrie".split("_"),
|
8
|
-
monthsShort : "Ian_Feb_Mar_Apr_Mai_Iun_Iul_Aug_Sep_Oct_Noi_Dec".split("_"),
|
9
|
-
weekdays : "Duminică_Luni_Marţi_Miercuri_Joi_Vineri_Sâmbătă".split("_"),
|
10
|
-
weekdaysShort : "Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),
|
11
|
-
weekdaysMin : "Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),
|
12
|
-
longDateFormat : {
|
13
|
-
LT : "H:mm",
|
14
|
-
L : "DD/MM/YYYY",
|
15
|
-
LL : "D MMMM YYYY",
|
16
|
-
LLL : "D MMMM YYYY H:mm",
|
17
|
-
LLLL : "dddd, D MMMM YYYY H:mm"
|
18
|
-
},
|
19
|
-
calendar : {
|
20
|
-
sameDay: "[azi la] LT",
|
21
|
-
nextDay: '[mâine la] LT',
|
22
|
-
nextWeek: 'dddd [la] LT',
|
23
|
-
lastDay: '[ieri la] LT',
|
24
|
-
lastWeek: '[fosta] dddd [la] LT',
|
25
|
-
sameElse: 'L'
|
26
|
-
},
|
27
|
-
relativeTime : {
|
28
|
-
future : "peste %s",
|
29
|
-
past : "%s în urmă",
|
30
|
-
s : "câteva secunde",
|
31
|
-
m : "un minut",
|
32
|
-
mm : "%d minute",
|
33
|
-
h : "o oră",
|
34
|
-
hh : "%d ore",
|
35
|
-
d : "o zi",
|
36
|
-
dd : "%d zile",
|
37
|
-
M : "o lună",
|
38
|
-
MM : "%d luni",
|
39
|
-
y : "un an",
|
40
|
-
yy : "%d ani"
|
41
|
-
},
|
42
|
-
ordinal : function (number) {
|
43
|
-
return '';
|
44
|
-
}
|
45
|
-
};
|
46
5
|
|
47
|
-
|
48
|
-
|
49
|
-
|
6
|
+
require('../moment').lang('ro', {
|
7
|
+
months : "Ianuarie_Februarie_Martie_Aprilie_Mai_Iunie_Iulie_August_Septembrie_Octombrie_Noiembrie_Decembrie".split("_"),
|
8
|
+
monthsShort : "Ian_Feb_Mar_Apr_Mai_Iun_Iul_Aug_Sep_Oct_Noi_Dec".split("_"),
|
9
|
+
weekdays : "Duminică_Luni_Marţi_Miercuri_Joi_Vineri_Sâmbătă".split("_"),
|
10
|
+
weekdaysShort : "Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),
|
11
|
+
weekdaysMin : "Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),
|
12
|
+
longDateFormat : {
|
13
|
+
LT : "H:mm",
|
14
|
+
L : "DD/MM/YYYY",
|
15
|
+
LL : "D MMMM YYYY",
|
16
|
+
LLL : "D MMMM YYYY H:mm",
|
17
|
+
LLLL : "dddd, D MMMM YYYY H:mm"
|
18
|
+
},
|
19
|
+
calendar : {
|
20
|
+
sameDay: "[azi la] LT",
|
21
|
+
nextDay: '[mâine la] LT',
|
22
|
+
nextWeek: 'dddd [la] LT',
|
23
|
+
lastDay: '[ieri la] LT',
|
24
|
+
lastWeek: '[fosta] dddd [la] LT',
|
25
|
+
sameElse: 'L'
|
26
|
+
},
|
27
|
+
relativeTime : {
|
28
|
+
future : "peste %s",
|
29
|
+
past : "%s în urmă",
|
30
|
+
s : "câteva secunde",
|
31
|
+
m : "un minut",
|
32
|
+
mm : "%d minute",
|
33
|
+
h : "o oră",
|
34
|
+
hh : "%d ore",
|
35
|
+
d : "o zi",
|
36
|
+
dd : "%d zile",
|
37
|
+
M : "o lună",
|
38
|
+
MM : "%d luni",
|
39
|
+
y : "un an",
|
40
|
+
yy : "%d ani"
|
41
|
+
},
|
42
|
+
week : {
|
43
|
+
dow : 1, // Monday is the first day of the week.
|
44
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
50
45
|
}
|
51
|
-
|
52
|
-
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
53
|
-
this.moment.lang('ro', lang);
|
54
|
-
}
|
55
|
-
}());
|
46
|
+
});
|