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,46 @@
|
|
1
1
|
// moment.js language configuration
|
2
2
|
// language : korean (ko)
|
3
3
|
// author : Kyungwook, Park : https://github.com/kyungw00k
|
4
|
-
(function () {
|
5
|
-
var lang = {
|
6
|
-
months : "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
|
7
|
-
monthsShort : "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
|
8
|
-
weekdays : "일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),
|
9
|
-
weekdaysShort : "일_월_화_수_목_금_토".split("_"),
|
10
|
-
weekdaysMin : "일_월_화_수_목_금_토".split("_"),
|
11
|
-
longDateFormat : {
|
12
|
-
LT : "A h시 mm분",
|
13
|
-
L : "YYYY.MM.DD",
|
14
|
-
LL : "YYYY년 MMMM D일",
|
15
|
-
LLL : "YYYY년 MMMM D일 LT",
|
16
|
-
LLLL : "YYYY년 MMMM D일 dddd LT"
|
17
|
-
},
|
18
|
-
meridiem : function (hour, minute, isUpper) {
|
19
|
-
return hour < 12 ? '오전' : '오후';
|
20
|
-
},
|
21
|
-
calendar : {
|
22
|
-
sameDay : '오늘 LT',
|
23
|
-
nextDay : '내일 LT',
|
24
|
-
nextWeek : 'dddd LT',
|
25
|
-
lastDay : '어제 LT',
|
26
|
-
lastWeek : '지난주 dddd LT',
|
27
|
-
sameElse : 'L'
|
28
|
-
},
|
29
|
-
relativeTime : {
|
30
|
-
future : "%s 후",
|
31
|
-
past : "%s 전",
|
32
|
-
s : "몇초",
|
33
|
-
ss : "%d초",
|
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
|
-
|
57
|
-
|
58
|
-
|
5
|
+
require('../moment').lang('ko', {
|
6
|
+
months : "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
|
7
|
+
monthsShort : "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
|
8
|
+
weekdays : "일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),
|
9
|
+
weekdaysShort : "일_월_화_수_목_금_토".split("_"),
|
10
|
+
weekdaysMin : "일_월_화_수_목_금_토".split("_"),
|
11
|
+
longDateFormat : {
|
12
|
+
LT : "A h시 mm분",
|
13
|
+
L : "YYYY.MM.DD",
|
14
|
+
LL : "YYYY년 MMMM D일",
|
15
|
+
LLL : "YYYY년 MMMM D일 LT",
|
16
|
+
LLLL : "YYYY년 MMMM D일 dddd LT"
|
17
|
+
},
|
18
|
+
meridiem : function (hour, minute, isUpper) {
|
19
|
+
return hour < 12 ? '오전' : '오후';
|
20
|
+
},
|
21
|
+
calendar : {
|
22
|
+
sameDay : '오늘 LT',
|
23
|
+
nextDay : '내일 LT',
|
24
|
+
nextWeek : 'dddd LT',
|
25
|
+
lastDay : '어제 LT',
|
26
|
+
lastWeek : '지난주 dddd LT',
|
27
|
+
sameElse : 'L'
|
28
|
+
},
|
29
|
+
relativeTime : {
|
30
|
+
future : "%s 후",
|
31
|
+
past : "%s 전",
|
32
|
+
s : "몇초",
|
33
|
+
ss : "%d초",
|
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
|
+
});
|
@@ -0,0 +1,67 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : latvian (lv)
|
3
|
+
// author : Kristaps Karlsons : https://github.com/skakri
|
4
|
+
|
5
|
+
var units = {
|
6
|
+
'mm': 'minūti_minūtes_minūte_minūtes',
|
7
|
+
'hh': 'stundu_stundas_stunda_stundas',
|
8
|
+
'dd': 'dienu_dienas_diena_dienas',
|
9
|
+
'MM': 'mēnesi_mēnešus_mēnesis_mēneši',
|
10
|
+
'yy': 'gadu_gadus_gads_gadi'
|
11
|
+
};
|
12
|
+
|
13
|
+
function format(word, number, withoutSuffix) {
|
14
|
+
var forms = word.split('_');
|
15
|
+
if (withoutSuffix) {
|
16
|
+
return number % 10 === 1 && number !== 11 ? forms[2] : forms[3];
|
17
|
+
} else {
|
18
|
+
return number % 10 === 1 && number !== 11 ? forms[0] : forms[1];
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
function relativeTimeWithPlural(number, withoutSuffix, key) {
|
23
|
+
return number + ' ' + format(units[key], number, withoutSuffix);
|
24
|
+
}
|
25
|
+
|
26
|
+
require('../moment').lang('lv', {
|
27
|
+
months : "janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),
|
28
|
+
monthsShort : "jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),
|
29
|
+
weekdays : "svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),
|
30
|
+
weekdaysShort : "Sv_P_O_T_C_Pk_S".split("_"),
|
31
|
+
weekdaysMin : "Sv_P_O_T_C_Pk_S".split("_"),
|
32
|
+
longDateFormat : {
|
33
|
+
LT : "HH:mm",
|
34
|
+
L : "YYYY.MM.DD.",
|
35
|
+
LL : "YYYY. [gada] D. MMMM",
|
36
|
+
LLL : "YYYY. [gada] D. MMMM, LT",
|
37
|
+
LLLL : "YYYY. [gada] D. MMMM, dddd, LT"
|
38
|
+
},
|
39
|
+
calendar : {
|
40
|
+
sameDay : '[Šodien pulksten] LT',
|
41
|
+
nextDay : '[Rīt pulksten] LT',
|
42
|
+
nextWeek : 'dddd [pulksten] LT',
|
43
|
+
lastDay : '[Vakar pulksten] LT',
|
44
|
+
lastWeek : '[Pagājušā] dddd [pulksten] LT',
|
45
|
+
sameElse : 'L'
|
46
|
+
},
|
47
|
+
relativeTime : {
|
48
|
+
future : "%s vēlāk",
|
49
|
+
past : "%s agrāk",
|
50
|
+
s : "dažas sekundes",
|
51
|
+
m : "minūti",
|
52
|
+
mm : relativeTimeWithPlural,
|
53
|
+
h : "stundu",
|
54
|
+
hh : relativeTimeWithPlural,
|
55
|
+
d : "dienu",
|
56
|
+
dd : relativeTimeWithPlural,
|
57
|
+
M : "mēnesi",
|
58
|
+
MM : relativeTimeWithPlural,
|
59
|
+
y : "gadu",
|
60
|
+
yy : relativeTimeWithPlural
|
61
|
+
},
|
62
|
+
ordinal : '%d.',
|
63
|
+
week : {
|
64
|
+
dow : 1, // Monday is the first day of the week.
|
65
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
66
|
+
}
|
67
|
+
});
|
@@ -1,54 +1,46 @@
|
|
1
1
|
// moment.js language configuration
|
2
2
|
// language : norwegian bokmål (nb)
|
3
3
|
// author : Espen Hovlandsdal : https://github.com/rexxars
|
4
|
-
(function () {
|
5
|
-
var lang = {
|
6
|
-
months : "januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),
|
7
|
-
monthsShort : "jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".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 : "HH:mm",
|
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: '[I dag klokken] LT',
|
20
|
-
nextDay: '[I morgen klokken] LT',
|
21
|
-
nextWeek: 'dddd [klokken] LT',
|
22
|
-
lastDay: '[I går klokken] LT',
|
23
|
-
lastWeek: '[Forrige] dddd [klokken] LT',
|
24
|
-
sameElse: 'L'
|
25
|
-
},
|
26
|
-
relativeTime : {
|
27
|
-
future : "om %s",
|
28
|
-
past : "for %s siden",
|
29
|
-
s : "noen sekunder",
|
30
|
-
m : "ett minutt",
|
31
|
-
mm : "%d minutter",
|
32
|
-
h : "en time",
|
33
|
-
hh : "%d timer",
|
34
|
-
d : "en dag",
|
35
|
-
dd : "%d dager",
|
36
|
-
M : "en måned",
|
37
|
-
MM : "%d måneder",
|
38
|
-
y : "ett år",
|
39
|
-
yy : "%d år"
|
40
|
-
},
|
41
|
-
ordinal : function (number) {
|
42
|
-
return '.';
|
43
|
-
}
|
44
|
-
};
|
45
4
|
|
46
|
-
|
47
|
-
|
48
|
-
|
5
|
+
require('../moment').lang('nb', {
|
6
|
+
months : "januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),
|
7
|
+
monthsShort : "jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".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 : "HH:mm",
|
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: '[I dag klokken] LT',
|
20
|
+
nextDay: '[I morgen klokken] LT',
|
21
|
+
nextWeek: 'dddd [klokken] LT',
|
22
|
+
lastDay: '[I går klokken] LT',
|
23
|
+
lastWeek: '[Forrige] dddd [klokken] LT',
|
24
|
+
sameElse: 'L'
|
25
|
+
},
|
26
|
+
relativeTime : {
|
27
|
+
future : "om %s",
|
28
|
+
past : "for %s siden",
|
29
|
+
s : "noen sekunder",
|
30
|
+
m : "ett minutt",
|
31
|
+
mm : "%d minutter",
|
32
|
+
h : "en time",
|
33
|
+
hh : "%d timer",
|
34
|
+
d : "en dag",
|
35
|
+
dd : "%d dager",
|
36
|
+
M : "en måned",
|
37
|
+
MM : "%d måneder",
|
38
|
+
y : "ett å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('nb', lang);
|
53
|
-
}
|
54
|
-
}());
|
46
|
+
});
|
@@ -0,0 +1,95 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : nepali/nepalese
|
3
|
+
// author : suvash : https://github.com/suvash
|
4
|
+
|
5
|
+
var symbolMap = {
|
6
|
+
'1': '१',
|
7
|
+
'2': '२',
|
8
|
+
'3': '३',
|
9
|
+
'4': '४',
|
10
|
+
'5': '५',
|
11
|
+
'6': '६',
|
12
|
+
'7': '७',
|
13
|
+
'8': '८',
|
14
|
+
'9': '९',
|
15
|
+
'0': '०'
|
16
|
+
},
|
17
|
+
numberMap = {
|
18
|
+
'१': '1',
|
19
|
+
'२': '2',
|
20
|
+
'३': '3',
|
21
|
+
'४': '4',
|
22
|
+
'५': '5',
|
23
|
+
'६': '6',
|
24
|
+
'७': '7',
|
25
|
+
'८': '8',
|
26
|
+
'९': '9',
|
27
|
+
'०': '0'
|
28
|
+
};
|
29
|
+
|
30
|
+
require('../moment').lang('ne', {
|
31
|
+
months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split("_"),
|
32
|
+
monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split("_"),
|
33
|
+
weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split("_"),
|
34
|
+
weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split("_"),
|
35
|
+
weekdaysMin : 'आइ._सो._मङ्_बु._बि._शु._श.'.split("_"),
|
36
|
+
longDateFormat : {
|
37
|
+
LT : "Aको h:mm बजे",
|
38
|
+
L : "DD/MM/YYYY",
|
39
|
+
LL : "D MMMM YYYY",
|
40
|
+
LLL : "D MMMM YYYY, LT",
|
41
|
+
LLLL : "dddd, D MMMM YYYY, LT"
|
42
|
+
},
|
43
|
+
preparse: function (string) {
|
44
|
+
return string.replace(/[१२३४५६७८९०]/g, function (match) {
|
45
|
+
return numberMap[match];
|
46
|
+
});
|
47
|
+
},
|
48
|
+
postformat: function (string) {
|
49
|
+
return string.replace(/\d/g, function (match) {
|
50
|
+
return symbolMap[match];
|
51
|
+
});
|
52
|
+
},
|
53
|
+
meridiem : function (hour, minute, isLower) {
|
54
|
+
if (hour < 3) {
|
55
|
+
return "राती";
|
56
|
+
} else if (hour < 10) {
|
57
|
+
return "बिहान";
|
58
|
+
} else if (hour < 15) {
|
59
|
+
return "दिउँसो";
|
60
|
+
} else if (hour < 18) {
|
61
|
+
return "बेलुका";
|
62
|
+
} else if (hour < 20) {
|
63
|
+
return "साँझ";
|
64
|
+
} else {
|
65
|
+
return "राती";
|
66
|
+
}
|
67
|
+
},
|
68
|
+
calendar : {
|
69
|
+
sameDay : '[आज] LT',
|
70
|
+
nextDay : '[भोली] LT',
|
71
|
+
nextWeek : '[आउँदो] dddd[,] LT',
|
72
|
+
lastDay : '[हिजो] LT',
|
73
|
+
lastWeek : '[गएको] dddd[,] LT',
|
74
|
+
sameElse : 'L'
|
75
|
+
},
|
76
|
+
relativeTime : {
|
77
|
+
future : "%sमा",
|
78
|
+
past : "%s अगाडी",
|
79
|
+
s : "केही समय",
|
80
|
+
m : "एक मिनेट",
|
81
|
+
mm : "%d मिनेट",
|
82
|
+
h : "एक घण्टा",
|
83
|
+
hh : "%d घण्टा",
|
84
|
+
d : "एक दिन",
|
85
|
+
dd : "%d दिन",
|
86
|
+
M : "एक महिना",
|
87
|
+
MM : "%d महिना",
|
88
|
+
y : "एक बर्ष",
|
89
|
+
yy : "%d बर्ष"
|
90
|
+
},
|
91
|
+
week : {
|
92
|
+
dow : 1, // Monday is the first day of the week.
|
93
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
94
|
+
}
|
95
|
+
});
|
@@ -1,62 +1,57 @@
|
|
1
1
|
// moment.js language configuration
|
2
2
|
// language : dutch (nl)
|
3
3
|
// author : Joris Röling : https://github.com/jjupiter
|
4
|
-
(function () {
|
5
|
-
var monthsShortWithDots = "jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_");
|
6
|
-
var monthsShortWithoutDots = "jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_");
|
7
|
-
var lang = {
|
8
|
-
months : "januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),
|
9
|
-
monthsShort : function (m, format) {
|
10
|
-
if (/-MMM-/.test(format)) {
|
11
|
-
return monthsShortWithoutDots[m.month()];
|
12
|
-
} else {
|
13
|
-
return monthsShortWithDots[m.month()];
|
14
|
-
}
|
15
|
-
},
|
16
|
-
weekdays : "zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),
|
17
|
-
weekdaysShort : "zo._ma._di._wo._do._vr._za.".split("_"),
|
18
|
-
weekdaysMin : "Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),
|
19
|
-
longDateFormat : {
|
20
|
-
LT : "HH:mm",
|
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: '[Vandaag om] LT',
|
28
|
-
nextDay: '[Morgen om] LT',
|
29
|
-
nextWeek: 'dddd [om] LT',
|
30
|
-
lastDay: '[Gisteren om] LT',
|
31
|
-
lastWeek: '[afgelopen] dddd [om] LT',
|
32
|
-
sameElse: 'L'
|
33
|
-
},
|
34
|
-
relativeTime : {
|
35
|
-
future : "over %s",
|
36
|
-
past : "%s geleden",
|
37
|
-
s : "een paar seconden",
|
38
|
-
m : "één minuut",
|
39
|
-
mm : "%d minuten",
|
40
|
-
h : "één uur",
|
41
|
-
hh : "%d uur",
|
42
|
-
d : "één dag",
|
43
|
-
dd : "%d dagen",
|
44
|
-
M : "één maand",
|
45
|
-
MM : "%d maanden",
|
46
|
-
y : "één jaar",
|
47
|
-
yy : "%d jaar"
|
48
|
-
},
|
49
|
-
ordinal : function (number) {
|
50
|
-
return (number === 1 || number === 8 || number >= 20) ? 'ste' : 'de';
|
51
|
-
}
|
52
|
-
};
|
53
4
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
5
|
+
var monthsShortWithDots = "jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),
|
6
|
+
monthsShortWithoutDots = "jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_");
|
7
|
+
|
8
|
+
require('../moment').lang('nl', {
|
9
|
+
months : "januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),
|
10
|
+
monthsShort : function (m, format) {
|
11
|
+
if (/-MMM-/.test(format)) {
|
12
|
+
return monthsShortWithoutDots[m.month()];
|
13
|
+
} else {
|
14
|
+
return monthsShortWithDots[m.month()];
|
15
|
+
}
|
16
|
+
},
|
17
|
+
weekdays : "zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),
|
18
|
+
weekdaysShort : "zo._ma._di._wo._do._vr._za.".split("_"),
|
19
|
+
weekdaysMin : "Zo_Ma_Di_Wo_Do_Vr_Za".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: '[Vandaag om] LT',
|
29
|
+
nextDay: '[Morgen om] LT',
|
30
|
+
nextWeek: 'dddd [om] LT',
|
31
|
+
lastDay: '[Gisteren om] LT',
|
32
|
+
lastWeek: '[afgelopen] dddd [om] LT',
|
33
|
+
sameElse: 'L'
|
34
|
+
},
|
35
|
+
relativeTime : {
|
36
|
+
future : "over %s",
|
37
|
+
past : "%s geleden",
|
38
|
+
s : "een paar seconden",
|
39
|
+
m : "één minuut",
|
40
|
+
mm : "%d minuten",
|
41
|
+
h : "één uur",
|
42
|
+
hh : "%d uur",
|
43
|
+
d : "één dag",
|
44
|
+
dd : "%d dagen",
|
45
|
+
M : "één maand",
|
46
|
+
MM : "%d maanden",
|
47
|
+
y : "één jaar",
|
48
|
+
yy : "%d jaar"
|
49
|
+
},
|
50
|
+
ordinal : function (number) {
|
51
|
+
return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
|
52
|
+
},
|
53
|
+
week : {
|
54
|
+
dow : 1, // Monday is the first day of the week.
|
55
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
61
56
|
}
|
62
|
-
}
|
57
|
+
});
|