momentjs-rails 1.5.0 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +5 -1
- data/changelog.md +4 -0
- data/vendor/assets/javascripts/moment.js +406 -223
- data/vendor/assets/javascripts/moment/ca.js +60 -0
- data/vendor/assets/javascripts/moment/da.js +50 -0
- data/vendor/assets/javascripts/moment/de.js +50 -0
- data/vendor/assets/javascripts/moment/en-gb.js +54 -0
- data/vendor/assets/javascripts/moment/es.js +60 -0
- data/vendor/assets/javascripts/moment/eu.js +50 -0
- data/vendor/assets/javascripts/moment/fi.js +94 -0
- data/vendor/assets/javascripts/moment/fr.js +50 -0
- data/vendor/assets/javascripts/moment/gl.js +60 -0
- data/vendor/assets/javascripts/moment/is.js +128 -0
- data/vendor/assets/javascripts/moment/it.js +50 -0
- data/vendor/assets/javascripts/moment/jp.js +57 -0
- data/vendor/assets/javascripts/moment/kr.js +54 -0
- data/vendor/assets/javascripts/moment/nb.js +50 -0
- data/vendor/assets/javascripts/moment/nl.js +50 -0
- data/vendor/assets/javascripts/moment/pl.js +72 -0
- data/vendor/assets/javascripts/moment/pt.js +54 -0
- data/vendor/assets/javascripts/moment/ru.js +103 -0
- data/vendor/assets/javascripts/moment/sv.js +54 -0
- data/vendor/assets/javascripts/moment/tr.js +54 -0
- data/vendor/assets/javascripts/moment/zh-cn.js +63 -0
- data/vendor/assets/javascripts/moment/zh-tw.js +63 -0
- metadata +74 -29
@@ -0,0 +1,60 @@
|
|
1
|
+
(function () {
|
2
|
+
var lang = {
|
3
|
+
months : "Gener_Febrer_Març_Abril_Maig_Juny_Juliol_Agost_Setembre_Octubre_Novembre_Desembre".split("_"),
|
4
|
+
monthsShort : "Gen._Febr._Mar._Abr._Mai._Jun._Jul._Ag._Set._Oct._Nov._Des.".split("_"),
|
5
|
+
weekdays : "Diumenge_Dilluns_Dimarts_Dimecres_Dijous_Divendres_Dissabte".split("_"),
|
6
|
+
weekdaysShort : "Dg._Dl._Dt._Dc._Dj._Dv._Ds.".split("_"),
|
7
|
+
longDateFormat : {
|
8
|
+
LT : "H:mm",
|
9
|
+
L : "DD/MM/YYYY",
|
10
|
+
LL : "D MMMM YYYY",
|
11
|
+
LLL : "D MMMM YYYY LT",
|
12
|
+
LLLL : "dddd D MMMM YYYY LT"
|
13
|
+
},
|
14
|
+
calendar : {
|
15
|
+
sameDay : function () {
|
16
|
+
return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
17
|
+
},
|
18
|
+
nextDay : function () {
|
19
|
+
return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
20
|
+
},
|
21
|
+
nextWeek : function () {
|
22
|
+
return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
23
|
+
},
|
24
|
+
lastDay : function () {
|
25
|
+
return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
26
|
+
},
|
27
|
+
lastWeek : function () {
|
28
|
+
return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
29
|
+
},
|
30
|
+
sameElse : 'L'
|
31
|
+
},
|
32
|
+
relativeTime : {
|
33
|
+
future : "en %s",
|
34
|
+
past : "fa %s",
|
35
|
+
s : "uns segons",
|
36
|
+
m : "un minut",
|
37
|
+
mm : "%d minuts",
|
38
|
+
h : "una hora",
|
39
|
+
hh : "%d hores",
|
40
|
+
d : "un dia",
|
41
|
+
dd : "%d dies",
|
42
|
+
M : "un mes",
|
43
|
+
MM : "%d mesos",
|
44
|
+
y : "un any",
|
45
|
+
yy : "%d anys"
|
46
|
+
},
|
47
|
+
ordinal : function (number) {
|
48
|
+
return 'º';
|
49
|
+
}
|
50
|
+
};
|
51
|
+
|
52
|
+
// Node
|
53
|
+
if (typeof module !== 'undefined') {
|
54
|
+
module.exports = lang;
|
55
|
+
}
|
56
|
+
// Browser
|
57
|
+
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
58
|
+
this.moment.lang('ca', lang);
|
59
|
+
}
|
60
|
+
}());
|
@@ -0,0 +1,50 @@
|
|
1
|
+
(function () {
|
2
|
+
var lang = {
|
3
|
+
months : "Januar_Februar_Marts_April_Maj_Juni_Juli_August_September_Oktober_November_December".split("_"),
|
4
|
+
monthsShort : "Jan_Feb_Mar_Apr_Maj_Jun_Jul_Aug_Sep_Okt_Nov_Dec".split("_"),
|
5
|
+
weekdays : "Søndag_Mandag_Tirsdag_Onsdag_Torsdag_Fredag_Lørdag".split("_"),
|
6
|
+
weekdaysShort : "Søn_Man_Tir_Ons_Tor_Fre_Lør".split("_"),
|
7
|
+
longDateFormat : {
|
8
|
+
LT : "h:mm A",
|
9
|
+
L : "DD/MM/YYYY",
|
10
|
+
LL : "D MMMM YYYY",
|
11
|
+
LLL : "D MMMM YYYY h:mm A",
|
12
|
+
LLLL : "dddd D. MMMM, YYYY h:mm A"
|
13
|
+
},
|
14
|
+
calendar : {
|
15
|
+
sameDay : '[I dag kl.] LT',
|
16
|
+
nextDay : '[I morgen kl.] LT',
|
17
|
+
nextWeek : 'dddd [kl.] LT',
|
18
|
+
lastDay : '[I går kl.] LT',
|
19
|
+
lastWeek : '[sidste] dddd [kl] LT',
|
20
|
+
sameElse : 'L'
|
21
|
+
},
|
22
|
+
relativeTime : {
|
23
|
+
future : "om %s",
|
24
|
+
past : "%s siden",
|
25
|
+
s : "få sekunder",
|
26
|
+
m : "minut",
|
27
|
+
mm : "%d minutter",
|
28
|
+
h : "time",
|
29
|
+
hh : "%d timer",
|
30
|
+
d : "dag",
|
31
|
+
dd : "%d dage",
|
32
|
+
M : "månede",
|
33
|
+
MM : "%d måneder",
|
34
|
+
y : "år",
|
35
|
+
yy : "%d år"
|
36
|
+
},
|
37
|
+
ordinal : function (number) {
|
38
|
+
return '.';
|
39
|
+
}
|
40
|
+
};
|
41
|
+
|
42
|
+
// Node
|
43
|
+
if (typeof module !== 'undefined') {
|
44
|
+
module.exports = lang;
|
45
|
+
}
|
46
|
+
// Browser
|
47
|
+
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
48
|
+
this.moment.lang('da', lang);
|
49
|
+
}
|
50
|
+
}());
|
@@ -0,0 +1,50 @@
|
|
1
|
+
(function () {
|
2
|
+
var lang = {
|
3
|
+
months : "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),
|
4
|
+
monthsShort : "Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),
|
5
|
+
weekdays : "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),
|
6
|
+
weekdaysShort : "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),
|
7
|
+
longDateFormat : {
|
8
|
+
LT: "H:mm U\\hr",
|
9
|
+
L : "DD.MM.YYYY",
|
10
|
+
LL : "D. MMMM YYYY",
|
11
|
+
LLL : "D. MMMM YYYY LT",
|
12
|
+
LLLL : "dddd, D. MMMM YYYY LT"
|
13
|
+
},
|
14
|
+
calendar : {
|
15
|
+
sameDay: "[Heute um] LT",
|
16
|
+
sameElse: "L",
|
17
|
+
nextDay: '[Morgen um] LT',
|
18
|
+
nextWeek: 'dddd [um] LT',
|
19
|
+
lastDay: '[Gestern um] LT',
|
20
|
+
lastWeek: '[letzten] dddd [um] LT'
|
21
|
+
},
|
22
|
+
relativeTime : {
|
23
|
+
future : "in %s",
|
24
|
+
past : "vor %s",
|
25
|
+
s : "ein paar Sekunden",
|
26
|
+
m : "einer Minute",
|
27
|
+
mm : "%d Minuten",
|
28
|
+
h : "einer Stunde",
|
29
|
+
hh : "%d Stunden",
|
30
|
+
d : "einem Tag",
|
31
|
+
dd : "%d Tagen",
|
32
|
+
M : "einem Monat",
|
33
|
+
MM : "%d Monaten",
|
34
|
+
y : "einem Jahr",
|
35
|
+
yy : "%d Jahren"
|
36
|
+
},
|
37
|
+
ordinal : function (number) {
|
38
|
+
return '.';
|
39
|
+
}
|
40
|
+
};
|
41
|
+
|
42
|
+
// Node
|
43
|
+
if (typeof module !== 'undefined') {
|
44
|
+
module.exports = lang;
|
45
|
+
}
|
46
|
+
// Browser
|
47
|
+
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
48
|
+
this.moment.lang('de', lang);
|
49
|
+
}
|
50
|
+
}());
|
@@ -0,0 +1,54 @@
|
|
1
|
+
(function () {
|
2
|
+
var lang = {
|
3
|
+
months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
4
|
+
monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
|
5
|
+
weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
6
|
+
weekdaysShort : "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
|
7
|
+
longDateFormat : {
|
8
|
+
LT : "h:mm A",
|
9
|
+
L : "DD/MM/YYYY",
|
10
|
+
LL : "D MMMM YYYY",
|
11
|
+
LLL : "D MMMM YYYY LT",
|
12
|
+
LLLL : "dddd, D MMMM YYYY LT"
|
13
|
+
},
|
14
|
+
calendar : {
|
15
|
+
sameDay : '[Today at] LT',
|
16
|
+
nextDay : '[Tomorrow at] LT',
|
17
|
+
nextWeek : 'dddd [at] LT',
|
18
|
+
lastDay : '[Yesterday at] LT',
|
19
|
+
lastWeek : '[last] dddd [at] LT',
|
20
|
+
sameElse : 'L'
|
21
|
+
},
|
22
|
+
relativeTime : {
|
23
|
+
future : "in %s",
|
24
|
+
past : "%s ago",
|
25
|
+
s : "a few seconds",
|
26
|
+
m : "a minute",
|
27
|
+
mm : "%d minutes",
|
28
|
+
h : "an hour",
|
29
|
+
hh : "%d hours",
|
30
|
+
d : "a day",
|
31
|
+
dd : "%d days",
|
32
|
+
M : "a month",
|
33
|
+
MM : "%d months",
|
34
|
+
y : "a year",
|
35
|
+
yy : "%d years"
|
36
|
+
},
|
37
|
+
ordinal : function (number) {
|
38
|
+
var b = number % 10;
|
39
|
+
return (~~ (number % 100 / 10) === 1) ? 'th' :
|
40
|
+
(b === 1) ? 'st' :
|
41
|
+
(b === 2) ? 'nd' :
|
42
|
+
(b === 3) ? 'rd' : 'th';
|
43
|
+
}
|
44
|
+
};
|
45
|
+
|
46
|
+
// Node
|
47
|
+
if (typeof module !== 'undefined') {
|
48
|
+
module.exports = lang;
|
49
|
+
}
|
50
|
+
// Browser
|
51
|
+
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
52
|
+
this.moment.lang('en-gb', lang);
|
53
|
+
}
|
54
|
+
}());
|
@@ -0,0 +1,60 @@
|
|
1
|
+
(function () {
|
2
|
+
var lang = {
|
3
|
+
months : "Enero_Febrero_Marzo_Abril_Mayo_Junio_Julio_Agosto_Septiembre_Octubre_Noviembre_Diciembre".split("_"),
|
4
|
+
monthsShort : "Ene._Feb._Mar._Abr._May._Jun._Jul._Ago._Sep._Oct._Nov._Dic.".split("_"),
|
5
|
+
weekdays : "Domingo_Lunes_Martes_Miércoles_Jueves_Viernes_Sábado".split("_"),
|
6
|
+
weekdaysShort : "Dom._Lun._Mar._Mié._Jue._Vie._Sáb.".split("_"),
|
7
|
+
longDateFormat : {
|
8
|
+
LT : "H:mm",
|
9
|
+
L : "DD/MM/YYYY",
|
10
|
+
LL : "D MMMM YYYY",
|
11
|
+
LLL : "D MMMM YYYY LT",
|
12
|
+
LLLL : "dddd D MMMM YYYY LT"
|
13
|
+
},
|
14
|
+
calendar : {
|
15
|
+
sameDay : function () {
|
16
|
+
return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
17
|
+
},
|
18
|
+
nextDay : function () {
|
19
|
+
return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
20
|
+
},
|
21
|
+
nextWeek : function () {
|
22
|
+
return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
23
|
+
},
|
24
|
+
lastDay : function () {
|
25
|
+
return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
26
|
+
},
|
27
|
+
lastWeek : function () {
|
28
|
+
return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
29
|
+
},
|
30
|
+
sameElse : 'L'
|
31
|
+
},
|
32
|
+
relativeTime : {
|
33
|
+
future : "en %s",
|
34
|
+
past : "hace %s",
|
35
|
+
s : "unos segundos",
|
36
|
+
m : "un minuto",
|
37
|
+
mm : "%d minutos",
|
38
|
+
h : "una hora",
|
39
|
+
hh : "%d horas",
|
40
|
+
d : "un día",
|
41
|
+
dd : "%d días",
|
42
|
+
M : "un mes",
|
43
|
+
MM : "%d meses",
|
44
|
+
y : "un año",
|
45
|
+
yy : "%d años"
|
46
|
+
},
|
47
|
+
ordinal : function (number) {
|
48
|
+
return 'º';
|
49
|
+
}
|
50
|
+
};
|
51
|
+
|
52
|
+
// Node
|
53
|
+
if (typeof module !== 'undefined') {
|
54
|
+
module.exports = lang;
|
55
|
+
}
|
56
|
+
// Browser
|
57
|
+
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
58
|
+
this.moment.lang('es', lang);
|
59
|
+
}
|
60
|
+
}());
|
@@ -0,0 +1,50 @@
|
|
1
|
+
(function () {
|
2
|
+
var lang = {
|
3
|
+
months : "urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),
|
4
|
+
monthsShort : "urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),
|
5
|
+
weekdays : "igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),
|
6
|
+
weekdaysShort : "ig._al._ar._az._og._ol._lr.".split("_"),
|
7
|
+
longDateFormat : {
|
8
|
+
LT : "HH:mm",
|
9
|
+
L : "YYYY-MM-DD",
|
10
|
+
LL : "YYYYko MMMMren D[a]",
|
11
|
+
LLL : "YYYYko MMMMren D[a] LT",
|
12
|
+
LLLL : "dddd, YYYYko MMMMren D[a] LT"
|
13
|
+
},
|
14
|
+
calendar : {
|
15
|
+
sameDay : '[gaur] LT[etan]',
|
16
|
+
nextDay : '[bihar] LT[etan]',
|
17
|
+
nextWeek : 'dddd LT[etan]',
|
18
|
+
lastDay : '[atzo] LT[etan]',
|
19
|
+
lastWeek : '[aurreko] dddd LT[etan]',
|
20
|
+
sameElse : 'L'
|
21
|
+
},
|
22
|
+
relativeTime : {
|
23
|
+
future : "%s barru",
|
24
|
+
past : "duela %s",
|
25
|
+
s : "segundo batzuk",
|
26
|
+
m : "minutu bat",
|
27
|
+
mm : "%d minutu",
|
28
|
+
h : "ordu bat",
|
29
|
+
hh : "%d ordu",
|
30
|
+
d : "egun bat",
|
31
|
+
dd : "%d egun",
|
32
|
+
M : "hilabete bat",
|
33
|
+
MM : "%d hilabete",
|
34
|
+
y : "urte bat",
|
35
|
+
yy : "%d urte"
|
36
|
+
},
|
37
|
+
ordinal : function (number) {
|
38
|
+
return '.';
|
39
|
+
}
|
40
|
+
};
|
41
|
+
|
42
|
+
// Node
|
43
|
+
if (typeof module !== 'undefined') {
|
44
|
+
module.exports = lang;
|
45
|
+
}
|
46
|
+
// Browser
|
47
|
+
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
48
|
+
this.moment.lang('eu', lang);
|
49
|
+
}
|
50
|
+
}());
|
@@ -0,0 +1,94 @@
|
|
1
|
+
(function () {
|
2
|
+
var numbers_past = ['nolla', 'yksi', 'kaksi', 'kolme', 'neljä', 'viisi',
|
3
|
+
'kuusi', 'seitsemän', 'kahdeksan', 'yhdeksän'];
|
4
|
+
var numbers_future = ['nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden',
|
5
|
+
'kuuden', numbers_past[7], numbers_past[8], numbers_past[9]];
|
6
|
+
|
7
|
+
function translate(number, withoutSuffix, key, isFuture) {
|
8
|
+
var result = "";
|
9
|
+
switch (key) {
|
10
|
+
case 's':
|
11
|
+
return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
|
12
|
+
case 'm':
|
13
|
+
return isFuture ? 'minuutin' : 'minuutti';
|
14
|
+
case 'mm':
|
15
|
+
result = isFuture ? 'minuutin' : 'minuuttia';
|
16
|
+
break;
|
17
|
+
case 'h':
|
18
|
+
return isFuture ? 'tunnin' : 'tunti';
|
19
|
+
case 'hh':
|
20
|
+
result = isFuture ? 'tunnin' : 'tuntia';
|
21
|
+
break;
|
22
|
+
case 'd':
|
23
|
+
return isFuture ? 'päivän' : 'päivä';
|
24
|
+
case 'dd':
|
25
|
+
result = isFuture ? 'päivän' : 'päivää';
|
26
|
+
break;
|
27
|
+
case 'M':
|
28
|
+
return isFuture ? 'kuukauden' : 'kuukausi';
|
29
|
+
case 'MM':
|
30
|
+
result = isFuture ? 'kuukauden' : 'kuukautta';
|
31
|
+
break;
|
32
|
+
case 'y':
|
33
|
+
return isFuture ? 'vuoden' : 'vuosi';
|
34
|
+
case 'yy':
|
35
|
+
result = isFuture ? 'vuoden' : 'vuotta';
|
36
|
+
break;
|
37
|
+
}
|
38
|
+
result = verbal_number(number, isFuture) + " " + result;
|
39
|
+
return result;
|
40
|
+
}
|
41
|
+
|
42
|
+
function verbal_number(number, isFuture) {
|
43
|
+
return number < 10 ? (isFuture ? numbers_future[number] : numbers_past[number]) : number;
|
44
|
+
}
|
45
|
+
|
46
|
+
var lang = {
|
47
|
+
months : "tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),
|
48
|
+
monthsShort : "tam_hel_maa_huh_tou_kes_hei_elo_syy_lok_mar_jou".split("_"),
|
49
|
+
weekdays : "sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),
|
50
|
+
weekdaysShort : "su_ma_ti_ke_to_pe_la".split("_"),
|
51
|
+
longDateFormat : {
|
52
|
+
LT : "HH.mm",
|
53
|
+
L : "DD.MM.YYYY",
|
54
|
+
LL : "Do MMMMt\\a YYYY",
|
55
|
+
LLL : "Do MMMMt\\a YYYY, klo LT",
|
56
|
+
LLLL : "dddd, Do MMMMt\\a YYYY, klo LT"
|
57
|
+
},
|
58
|
+
calendar : {
|
59
|
+
sameDay : '[tänään] [klo] LT',
|
60
|
+
nextDay : '[huomenna] [klo] LT',
|
61
|
+
nextWeek : 'dddd [klo] LT',
|
62
|
+
lastDay : '[eilen] [klo] LT',
|
63
|
+
lastWeek : '[viime] dddd[na] [klo] LT',
|
64
|
+
sameElse : 'L'
|
65
|
+
},
|
66
|
+
relativeTime : {
|
67
|
+
future : "%s päästä",
|
68
|
+
past : "%s sitten",
|
69
|
+
s : translate,
|
70
|
+
m : translate,
|
71
|
+
mm : translate,
|
72
|
+
h : translate,
|
73
|
+
hh : translate,
|
74
|
+
d : translate,
|
75
|
+
dd : translate,
|
76
|
+
M : translate,
|
77
|
+
MM : translate,
|
78
|
+
y : translate,
|
79
|
+
yy : translate
|
80
|
+
},
|
81
|
+
ordinal : function (number) {
|
82
|
+
return ".";
|
83
|
+
}
|
84
|
+
};
|
85
|
+
|
86
|
+
// Node
|
87
|
+
if (typeof module !== 'undefined') {
|
88
|
+
module.exports = lang;
|
89
|
+
}
|
90
|
+
// Browser
|
91
|
+
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
92
|
+
this.moment.lang('fi', lang);
|
93
|
+
}
|
94
|
+
}());
|
@@ -0,0 +1,50 @@
|
|
1
|
+
(function () {
|
2
|
+
var lang = {
|
3
|
+
months : "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),
|
4
|
+
monthsShort : "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
|
5
|
+
weekdays : "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
|
6
|
+
weekdaysShort : "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
|
7
|
+
longDateFormat : {
|
8
|
+
LT : "HH:mm",
|
9
|
+
L : "DD/MM/YYYY",
|
10
|
+
LL : "D MMMM YYYY",
|
11
|
+
LLL : "D MMMM YYYY LT",
|
12
|
+
LLLL : "dddd D MMMM YYYY LT"
|
13
|
+
},
|
14
|
+
calendar : {
|
15
|
+
sameDay: "[Aujourd'hui à] LT",
|
16
|
+
nextDay: '[Demain à] LT',
|
17
|
+
nextWeek: 'dddd [à] LT',
|
18
|
+
lastDay: '[Hier à] LT',
|
19
|
+
lastWeek: 'dddd [dernier à] LT',
|
20
|
+
sameElse: 'L'
|
21
|
+
},
|
22
|
+
relativeTime : {
|
23
|
+
future : "dans %s",
|
24
|
+
past : "il y a %s",
|
25
|
+
s : "quelques secondes",
|
26
|
+
m : "une minute",
|
27
|
+
mm : "%d minutes",
|
28
|
+
h : "une heure",
|
29
|
+
hh : "%d heures",
|
30
|
+
d : "un jour",
|
31
|
+
dd : "%d jours",
|
32
|
+
M : "un mois",
|
33
|
+
MM : "%d mois",
|
34
|
+
y : "une année",
|
35
|
+
yy : "%d années"
|
36
|
+
},
|
37
|
+
ordinal : function (number) {
|
38
|
+
return number === 1 ? 'er' : 'ème';
|
39
|
+
}
|
40
|
+
};
|
41
|
+
|
42
|
+
// Node
|
43
|
+
if (typeof module !== 'undefined') {
|
44
|
+
module.exports = lang;
|
45
|
+
}
|
46
|
+
// Browser
|
47
|
+
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
48
|
+
this.moment.lang('fr', lang);
|
49
|
+
}
|
50
|
+
}());
|