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,58 +1,50 @@
|
|
1
1
|
// moment.js language configuration
|
2
2
|
// language : chuvash (cv)
|
3
3
|
// author : Anatoly Mironov : https://github.com/mirontoli
|
4
|
-
(function () {
|
5
|
-
var lang = {
|
6
|
-
months : "кăрлач_нарăс_пуш_ака_май_çĕртме_утă_çурла_авăн_юпа_чӳк_раштав".split("_"),
|
7
|
-
monthsShort : "кăр_нар_пуш_ака_май_çĕр_утă_çур_ав_юпа_чӳк_раш".split("_"),
|
8
|
-
weekdays : "вырсарникун_тунтикун_ытларикун_юнкун_кĕçнерникун_эрнекун_шăматкун".split("_"),
|
9
|
-
weekdaysShort : "выр_тун_ытл_юн_кĕç_эрн_шăм".split("_"),
|
10
|
-
weekdaysMin : "вр_тн_ыт_юн_кç_эр_шм".split("_"),
|
11
|
-
longDateFormat : {
|
12
|
-
LT : "HH:mm",
|
13
|
-
L : "DD-MM-YYYY",
|
14
|
-
LL : "YYYY çулхи MMMM уйăхĕн D-мĕшĕ",
|
15
|
-
LLL : "YYYY çулхи MMMM уйăхĕн D-мĕшĕ, LT",
|
16
|
-
LLLL : "dddd, YYYY çулхи MMMM уйăхĕн D-мĕшĕ, LT"
|
17
|
-
},
|
18
|
-
calendar : {
|
19
|
-
sameDay: '[Паян] LT [сехетре]',
|
20
|
-
nextDay: '[Ыран] LT [сехетре]',
|
21
|
-
lastDay: '[Ĕнер] LT [сехетре]',
|
22
|
-
nextWeek: '[Çитес] dddd LT [сехетре]',
|
23
|
-
lastWeek: '[Иртнĕ] dddd LT [сехетре]',
|
24
|
-
sameElse: 'L'
|
25
|
-
},
|
26
|
-
relativeTime : {
|
27
|
-
future : function(output) {
|
28
|
-
var affix = /сехет$/i.exec(output)
|
29
|
-
? "рен" : /çул$/i.exec(output) ? "тан" : "ран";
|
30
|
-
return output + affix;
|
31
|
-
},
|
32
|
-
past : "%s каялла",
|
33
|
-
s : "пĕр-ик çеккунт",
|
34
|
-
m : "пĕр минут",
|
35
|
-
mm : "%d минут",
|
36
|
-
h : "пĕр сехет",
|
37
|
-
hh : "%d сехет",
|
38
|
-
d : "пĕр кун",
|
39
|
-
dd : "%d кун",
|
40
|
-
M : "пĕр уйăх",
|
41
|
-
MM : "%d уйăх",
|
42
|
-
y : "пĕр çул",
|
43
|
-
yy : "%d çул"
|
44
|
-
},
|
45
|
-
ordinal : function (number) {
|
46
|
-
return '-мĕш';
|
47
|
-
}
|
48
|
-
};
|
49
4
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
5
|
+
|
6
|
+
require('../moment').lang('cv', {
|
7
|
+
months : "кăрлач_нарăс_пуш_ака_май_çĕртме_утă_çурла_авăн_юпа_чӳк_раштав".split("_"),
|
8
|
+
monthsShort : "кăр_нар_пуш_ака_май_çĕр_утă_çур_ав_юпа_чӳк_раш".split("_"),
|
9
|
+
weekdays : "вырсарникун_тунтикун_ытларикун_юнкун_кĕçнерникун_эрнекун_шăматкун".split("_"),
|
10
|
+
weekdaysShort : "выр_тун_ытл_юн_кĕç_эрн_шăм".split("_"),
|
11
|
+
weekdaysMin : "вр_тн_ыт_юн_кç_эр_шм".split("_"),
|
12
|
+
longDateFormat : {
|
13
|
+
LT : "HH:mm",
|
14
|
+
L : "DD-MM-YYYY",
|
15
|
+
LL : "YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ]",
|
16
|
+
LLL : "YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT",
|
17
|
+
LLLL : "dddd, YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT"
|
18
|
+
},
|
19
|
+
calendar : {
|
20
|
+
sameDay: '[Паян] LT [сехетре]',
|
21
|
+
nextDay: '[Ыран] LT [сехетре]',
|
22
|
+
lastDay: '[Ĕнер] LT [сехетре]',
|
23
|
+
nextWeek: '[Çитес] dddd LT [сехетре]',
|
24
|
+
lastWeek: '[Иртнĕ] dddd LT [сехетре]',
|
25
|
+
sameElse: 'L'
|
26
|
+
},
|
27
|
+
relativeTime : {
|
28
|
+
future : function (output) {
|
29
|
+
var affix = /сехет$/i.exec(output) ? "рен" : /çул$/i.exec(output) ? "тан" : "ран";
|
30
|
+
return output + affix;
|
31
|
+
},
|
32
|
+
past : "%s каялла",
|
33
|
+
s : "пĕр-ик çеккунт",
|
34
|
+
m : "пĕр минут",
|
35
|
+
mm : "%d минут",
|
36
|
+
h : "пĕр сехет",
|
37
|
+
hh : "%d сехет",
|
38
|
+
d : "пĕр кун",
|
39
|
+
dd : "%d кун",
|
40
|
+
M : "пĕр уйăх",
|
41
|
+
MM : "%d уйăх",
|
42
|
+
y : "пĕр çул",
|
43
|
+
yy : "%d çул"
|
44
|
+
},
|
45
|
+
ordinal : '%d-мĕш',
|
46
|
+
week : {
|
47
|
+
dow : 1, // Monday is the first day of the week.
|
48
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
57
49
|
}
|
58
|
-
}
|
50
|
+
});
|
@@ -1,54 +1,46 @@
|
|
1
1
|
// moment.js language configuration
|
2
2
|
// language : danish (da)
|
3
3
|
// author : Ulrik Nielsen : https://github.com/mrbase
|
4
|
-
(function () {
|
5
|
-
var lang = {
|
6
|
-
months : "Januar_Februar_Marts_April_Maj_Juni_Juli_August_September_Oktober_November_December".split("_"),
|
7
|
-
monthsShort : "Jan_Feb_Mar_Apr_Maj_Jun_Jul_Aug_Sep_Okt_Nov_Dec".split("_"),
|
8
|
-
weekdays : "Søndag_Mandag_Tirsdag_Onsdag_Torsdag_Fredag_Lørdag".split("_"),
|
9
|
-
weekdaysShort : "Søn_Man_Tir_Ons_Tor_Fre_Lør".split("_"),
|
10
|
-
weekdaysMin : "Sø_Ma_Ti_On_To_Fr_Lø".split("_"),
|
11
|
-
longDateFormat : {
|
12
|
-
LT : "h:mm A",
|
13
|
-
L : "DD/MM/YYYY",
|
14
|
-
LL : "D MMMM YYYY",
|
15
|
-
LLL : "D MMMM YYYY h:mm A",
|
16
|
-
LLLL : "dddd D. MMMM, YYYY h:mm A"
|
17
|
-
},
|
18
|
-
calendar : {
|
19
|
-
sameDay : '[I dag kl.] LT',
|
20
|
-
nextDay : '[I morgen kl.] LT',
|
21
|
-
nextWeek : 'dddd [kl.] LT',
|
22
|
-
lastDay : '[I går kl.] LT',
|
23
|
-
lastWeek : '[sidste] dddd [kl] LT',
|
24
|
-
sameElse : 'L'
|
25
|
-
},
|
26
|
-
relativeTime : {
|
27
|
-
future : "om %s",
|
28
|
-
past : "%s siden",
|
29
|
-
s : "få sekunder",
|
30
|
-
m : "minut",
|
31
|
-
mm : "%d minutter",
|
32
|
-
h : "time",
|
33
|
-
hh : "%d timer",
|
34
|
-
d : "dag",
|
35
|
-
dd : "%d dage",
|
36
|
-
M : "månede",
|
37
|
-
MM : "%d måneder",
|
38
|
-
y : "år",
|
39
|
-
yy : "%d år"
|
40
|
-
},
|
41
|
-
ordinal : function (number) {
|
42
|
-
return '.';
|
43
|
-
}
|
44
|
-
};
|
45
4
|
|
46
|
-
|
47
|
-
|
48
|
-
|
5
|
+
require('../moment').lang('da', {
|
6
|
+
months : "Januar_Februar_Marts_April_Maj_Juni_Juli_August_September_Oktober_November_December".split("_"),
|
7
|
+
monthsShort : "Jan_Feb_Mar_Apr_Maj_Jun_Jul_Aug_Sep_Okt_Nov_Dec".split("_"),
|
8
|
+
weekdays : "Søndag_Mandag_Tirsdag_Onsdag_Torsdag_Fredag_Lørdag".split("_"),
|
9
|
+
weekdaysShort : "Søn_Man_Tir_Ons_Tor_Fre_Lør".split("_"),
|
10
|
+
weekdaysMin : "Sø_Ma_Ti_On_To_Fr_Lø".split("_"),
|
11
|
+
longDateFormat : {
|
12
|
+
LT : "h:mm A",
|
13
|
+
L : "DD/MM/YYYY",
|
14
|
+
LL : "D MMMM YYYY",
|
15
|
+
LLL : "D MMMM YYYY h:mm A",
|
16
|
+
LLLL : "dddd D. MMMM, YYYY h:mm A"
|
17
|
+
},
|
18
|
+
calendar : {
|
19
|
+
sameDay : '[I dag kl.] LT',
|
20
|
+
nextDay : '[I morgen kl.] LT',
|
21
|
+
nextWeek : 'dddd [kl.] LT',
|
22
|
+
lastDay : '[I går kl.] LT',
|
23
|
+
lastWeek : '[sidste] dddd [kl] LT',
|
24
|
+
sameElse : 'L'
|
25
|
+
},
|
26
|
+
relativeTime : {
|
27
|
+
future : "om %s",
|
28
|
+
past : "%s siden",
|
29
|
+
s : "få sekunder",
|
30
|
+
m : "minut",
|
31
|
+
mm : "%d minutter",
|
32
|
+
h : "time",
|
33
|
+
hh : "%d timer",
|
34
|
+
d : "dag",
|
35
|
+
dd : "%d dage",
|
36
|
+
M : "månede",
|
37
|
+
MM : "%d måneder",
|
38
|
+
y : "år",
|
39
|
+
yy : "%d år"
|
40
|
+
},
|
41
|
+
ordinal : '%d.',
|
42
|
+
week : {
|
43
|
+
dow : 1, // Monday is the first day of the week.
|
44
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
49
45
|
}
|
50
|
-
|
51
|
-
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
52
|
-
this.moment.lang('da', lang);
|
53
|
-
}
|
54
|
-
}());
|
46
|
+
});
|
@@ -1,54 +1,46 @@
|
|
1
1
|
// moment.js language configuration
|
2
2
|
// language : german (de)
|
3
3
|
// author : lluchs : https://github.com/lluchs
|
4
|
-
(function () {
|
5
|
-
var lang = {
|
6
|
-
months : "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),
|
7
|
-
monthsShort : "Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),
|
8
|
-
weekdays : "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),
|
9
|
-
weekdaysShort : "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),
|
10
|
-
weekdaysMin : "So_Mo_Di_Mi_Do_Fr_Sa".split("_"),
|
11
|
-
longDateFormat : {
|
12
|
-
LT: "H:mm U\\hr",
|
13
|
-
L : "DD.MM.YYYY",
|
14
|
-
LL : "D. MMMM YYYY",
|
15
|
-
LLL : "D. MMMM YYYY LT",
|
16
|
-
LLLL : "dddd, D. MMMM YYYY LT"
|
17
|
-
},
|
18
|
-
calendar : {
|
19
|
-
sameDay: "[Heute um] LT",
|
20
|
-
sameElse: "L",
|
21
|
-
nextDay: '[Morgen um] LT',
|
22
|
-
nextWeek: 'dddd [um] LT',
|
23
|
-
lastDay: '[Gestern um] LT',
|
24
|
-
lastWeek: '[letzten] dddd [um] LT'
|
25
|
-
},
|
26
|
-
relativeTime : {
|
27
|
-
future : "in %s",
|
28
|
-
past : "vor %s",
|
29
|
-
s : "ein paar Sekunden",
|
30
|
-
m : "einer Minute",
|
31
|
-
mm : "%d Minuten",
|
32
|
-
h : "einer Stunde",
|
33
|
-
hh : "%d Stunden",
|
34
|
-
d : "einem Tag",
|
35
|
-
dd : "%d Tagen",
|
36
|
-
M : "einem Monat",
|
37
|
-
MM : "%d Monaten",
|
38
|
-
y : "einem Jahr",
|
39
|
-
yy : "%d Jahren"
|
40
|
-
},
|
41
|
-
ordinal : function (number) {
|
42
|
-
return '.';
|
43
|
-
}
|
44
|
-
};
|
45
4
|
|
46
|
-
|
47
|
-
|
48
|
-
|
5
|
+
require('../moment').lang('de', {
|
6
|
+
months : "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),
|
7
|
+
monthsShort : "Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),
|
8
|
+
weekdays : "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),
|
9
|
+
weekdaysShort : "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),
|
10
|
+
weekdaysMin : "So_Mo_Di_Mi_Do_Fr_Sa".split("_"),
|
11
|
+
longDateFormat : {
|
12
|
+
LT: "H:mm U\\hr",
|
13
|
+
L : "DD.MM.YYYY",
|
14
|
+
LL : "D. MMMM YYYY",
|
15
|
+
LLL : "D. MMMM YYYY LT",
|
16
|
+
LLLL : "dddd, D. MMMM YYYY LT"
|
17
|
+
},
|
18
|
+
calendar : {
|
19
|
+
sameDay: "[Heute um] LT",
|
20
|
+
sameElse: "L",
|
21
|
+
nextDay: '[Morgen um] LT',
|
22
|
+
nextWeek: 'dddd [um] LT',
|
23
|
+
lastDay: '[Gestern um] LT',
|
24
|
+
lastWeek: '[letzten] dddd [um] LT'
|
25
|
+
},
|
26
|
+
relativeTime : {
|
27
|
+
future : "in %s",
|
28
|
+
past : "vor %s",
|
29
|
+
s : "ein paar Sekunden",
|
30
|
+
m : "einer Minute",
|
31
|
+
mm : "%d Minuten",
|
32
|
+
h : "einer Stunde",
|
33
|
+
hh : "%d Stunden",
|
34
|
+
d : "einem Tag",
|
35
|
+
dd : "%d Tagen",
|
36
|
+
M : "einem Monat",
|
37
|
+
MM : "%d Monaten",
|
38
|
+
y : "einem Jahr",
|
39
|
+
yy : "%d Jahren"
|
40
|
+
},
|
41
|
+
ordinal : '%d.',
|
42
|
+
week : {
|
43
|
+
dow : 1, // Monday is the first day of the week.
|
44
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
49
45
|
}
|
50
|
-
|
51
|
-
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
52
|
-
this.moment.lang('de', lang);
|
53
|
-
}
|
54
|
-
}());
|
46
|
+
});
|
@@ -1,58 +1,49 @@
|
|
1
1
|
// moment.js language configuration
|
2
2
|
// language : canadian english (en-ca)
|
3
3
|
// author : Jonathan Abourbih : https://github.com/jonbca
|
4
|
-
(function () {
|
5
|
-
var lang = {
|
6
|
-
months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
7
|
-
monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
|
8
|
-
weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
9
|
-
weekdaysShort : "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
|
10
|
-
weekdaysMin : "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
|
11
|
-
longDateFormat : {
|
12
|
-
LT : "h:mm A",
|
13
|
-
L : "YYYY-MM-DD",
|
14
|
-
LL : "D MMMM, YYYY",
|
15
|
-
LLL : "D MMMM, YYYY LT",
|
16
|
-
LLLL : "dddd, D MMMM, YYYY LT"
|
17
|
-
},
|
18
|
-
calendar : {
|
19
|
-
sameDay : '[Today at] LT',
|
20
|
-
nextDay : '[Tomorrow at] LT',
|
21
|
-
nextWeek : 'dddd [at] LT',
|
22
|
-
lastDay : '[Yesterday at] LT',
|
23
|
-
lastWeek : '[last] dddd [at] LT',
|
24
|
-
sameElse : 'L'
|
25
|
-
},
|
26
|
-
relativeTime : {
|
27
|
-
future : "in %s",
|
28
|
-
past : "%s ago",
|
29
|
-
s : "a few seconds",
|
30
|
-
m : "a minute",
|
31
|
-
mm : "%d minutes",
|
32
|
-
h : "an hour",
|
33
|
-
hh : "%d hours",
|
34
|
-
d : "a day",
|
35
|
-
dd : "%d days",
|
36
|
-
M : "a month",
|
37
|
-
MM : "%d months",
|
38
|
-
y : "a year",
|
39
|
-
yy : "%d years"
|
40
|
-
},
|
41
|
-
ordinal : function (number) {
|
42
|
-
var b = number % 10;
|
43
|
-
return (~~ (number % 100 / 10) === 1) ? 'th' :
|
44
|
-
(b === 1) ? 'st' :
|
45
|
-
(b === 2) ? 'nd' :
|
46
|
-
(b === 3) ? 'rd' : 'th';
|
47
|
-
}
|
48
|
-
};
|
49
4
|
|
50
|
-
|
51
|
-
|
52
|
-
|
5
|
+
require('../moment').lang('en-ca', {
|
6
|
+
months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
7
|
+
monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
|
8
|
+
weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
9
|
+
weekdaysShort : "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
|
10
|
+
weekdaysMin : "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
|
11
|
+
longDateFormat : {
|
12
|
+
LT : "h:mm A",
|
13
|
+
L : "YYYY-MM-DD",
|
14
|
+
LL : "D MMMM, YYYY",
|
15
|
+
LLL : "D MMMM, YYYY LT",
|
16
|
+
LLLL : "dddd, D MMMM, YYYY LT"
|
17
|
+
},
|
18
|
+
calendar : {
|
19
|
+
sameDay : '[Today at] LT',
|
20
|
+
nextDay : '[Tomorrow at] LT',
|
21
|
+
nextWeek : 'dddd [at] LT',
|
22
|
+
lastDay : '[Yesterday at] LT',
|
23
|
+
lastWeek : '[last] dddd [at] LT',
|
24
|
+
sameElse : 'L'
|
25
|
+
},
|
26
|
+
relativeTime : {
|
27
|
+
future : "in %s",
|
28
|
+
past : "%s ago",
|
29
|
+
s : "a few seconds",
|
30
|
+
m : "a minute",
|
31
|
+
mm : "%d minutes",
|
32
|
+
h : "an hour",
|
33
|
+
hh : "%d hours",
|
34
|
+
d : "a day",
|
35
|
+
dd : "%d days",
|
36
|
+
M : "a month",
|
37
|
+
MM : "%d months",
|
38
|
+
y : "a year",
|
39
|
+
yy : "%d years"
|
40
|
+
},
|
41
|
+
ordinal : function (number) {
|
42
|
+
var b = number % 10,
|
43
|
+
output = (~~ (number % 100 / 10) === 1) ? 'th' :
|
44
|
+
(b === 1) ? 'st' :
|
45
|
+
(b === 2) ? 'nd' :
|
46
|
+
(b === 3) ? 'rd' : 'th';
|
47
|
+
return number + output;
|
53
48
|
}
|
54
|
-
|
55
|
-
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
56
|
-
this.moment.lang('en-ca', lang);
|
57
|
-
}
|
58
|
-
}());
|
49
|
+
});
|
@@ -1,58 +1,53 @@
|
|
1
1
|
// moment.js language configuration
|
2
2
|
// language : great britain english (en-gb)
|
3
3
|
// author : Chris Gedrim : https://github.com/chrisgedrim
|
4
|
-
(function () {
|
5
|
-
var lang = {
|
6
|
-
months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
7
|
-
monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
|
8
|
-
weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
9
|
-
weekdaysShort : "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
|
10
|
-
weekdaysMin : "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
|
11
|
-
longDateFormat : {
|
12
|
-
LT : "h:mm A",
|
13
|
-
L : "DD/MM/YYYY",
|
14
|
-
LL : "D MMMM YYYY",
|
15
|
-
LLL : "D MMMM YYYY LT",
|
16
|
-
LLLL : "dddd, D MMMM YYYY LT"
|
17
|
-
},
|
18
|
-
calendar : {
|
19
|
-
sameDay : '[Today at] LT',
|
20
|
-
nextDay : '[Tomorrow at] LT',
|
21
|
-
nextWeek : 'dddd [at] LT',
|
22
|
-
lastDay : '[Yesterday at] LT',
|
23
|
-
lastWeek : '[last] dddd [at] LT',
|
24
|
-
sameElse : 'L'
|
25
|
-
},
|
26
|
-
relativeTime : {
|
27
|
-
future : "in %s",
|
28
|
-
past : "%s ago",
|
29
|
-
s : "a few seconds",
|
30
|
-
m : "a minute",
|
31
|
-
mm : "%d minutes",
|
32
|
-
h : "an hour",
|
33
|
-
hh : "%d hours",
|
34
|
-
d : "a day",
|
35
|
-
dd : "%d days",
|
36
|
-
M : "a month",
|
37
|
-
MM : "%d months",
|
38
|
-
y : "a year",
|
39
|
-
yy : "%d years"
|
40
|
-
},
|
41
|
-
ordinal : function (number) {
|
42
|
-
var b = number % 10;
|
43
|
-
return (~~ (number % 100 / 10) === 1) ? 'th' :
|
44
|
-
(b === 1) ? 'st' :
|
45
|
-
(b === 2) ? 'nd' :
|
46
|
-
(b === 3) ? 'rd' : 'th';
|
47
|
-
}
|
48
|
-
};
|
49
4
|
|
50
|
-
|
51
|
-
|
52
|
-
|
5
|
+
require('../moment').lang('en-gb', {
|
6
|
+
months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
7
|
+
monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
|
8
|
+
weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
9
|
+
weekdaysShort : "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
|
10
|
+
weekdaysMin : "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
|
11
|
+
longDateFormat : {
|
12
|
+
LT : "h:mm A",
|
13
|
+
L : "DD/MM/YYYY",
|
14
|
+
LL : "D MMMM YYYY",
|
15
|
+
LLL : "D MMMM YYYY LT",
|
16
|
+
LLLL : "dddd, D MMMM YYYY LT"
|
17
|
+
},
|
18
|
+
calendar : {
|
19
|
+
sameDay : '[Today at] LT',
|
20
|
+
nextDay : '[Tomorrow at] LT',
|
21
|
+
nextWeek : 'dddd [at] LT',
|
22
|
+
lastDay : '[Yesterday at] LT',
|
23
|
+
lastWeek : '[last] dddd [at] LT',
|
24
|
+
sameElse : 'L'
|
25
|
+
},
|
26
|
+
relativeTime : {
|
27
|
+
future : "in %s",
|
28
|
+
past : "%s ago",
|
29
|
+
s : "a few seconds",
|
30
|
+
m : "a minute",
|
31
|
+
mm : "%d minutes",
|
32
|
+
h : "an hour",
|
33
|
+
hh : "%d hours",
|
34
|
+
d : "a day",
|
35
|
+
dd : "%d days",
|
36
|
+
M : "a month",
|
37
|
+
MM : "%d months",
|
38
|
+
y : "a year",
|
39
|
+
yy : "%d years"
|
40
|
+
},
|
41
|
+
ordinal : function (number) {
|
42
|
+
var b = number % 10,
|
43
|
+
output = (~~ (number % 100 / 10) === 1) ? 'th' :
|
44
|
+
(b === 1) ? 'st' :
|
45
|
+
(b === 2) ? 'nd' :
|
46
|
+
(b === 3) ? 'rd' : 'th';
|
47
|
+
return number + output;
|
48
|
+
},
|
49
|
+
week : {
|
50
|
+
dow : 1, // Monday is the first day of the week.
|
51
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
53
52
|
}
|
54
|
-
|
55
|
-
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
56
|
-
this.moment.lang('en-gb', lang);
|
57
|
-
}
|
58
|
-
}());
|
53
|
+
});
|