momentjs-rails 2.15.1 → 2.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/news.md +3 -0
- data/test/integration/navigation_test.rb +1 -1
- data/vendor/assets/javascripts/moment.js +3653 -3586
- data/vendor/assets/javascripts/moment/af.js +59 -59
- data/vendor/assets/javascripts/moment/ar-dz.js +59 -0
- data/vendor/assets/javascripts/moment/ar-ly.js +111 -107
- data/vendor/assets/javascripts/moment/ar-ma.js +46 -46
- data/vendor/assets/javascripts/moment/ar-sa.js +90 -89
- data/vendor/assets/javascripts/moment/ar-tn.js +46 -46
- data/vendor/assets/javascripts/moment/ar.js +125 -120
- data/vendor/assets/javascripts/moment/az.js +90 -90
- data/vendor/assets/javascripts/moment/be.js +112 -112
- data/vendor/assets/javascripts/moment/bg.js +74 -74
- data/vendor/assets/javascripts/moment/bn.js +104 -104
- data/vendor/assets/javascripts/moment/bo.js +104 -104
- data/vendor/assets/javascripts/moment/br.js +89 -89
- data/vendor/assets/javascripts/moment/bs.js +125 -125
- data/vendor/assets/javascripts/moment/ca.js +63 -63
- data/vendor/assets/javascripts/moment/cs.js +154 -154
- data/vendor/assets/javascripts/moment/cv.js +49 -49
- data/vendor/assets/javascripts/moment/cy.js +65 -65
- data/vendor/assets/javascripts/moment/da.js +47 -47
- data/vendor/assets/javascripts/moment/de-at.js +62 -62
- data/vendor/assets/javascripts/moment/de.js +62 -62
- data/vendor/assets/javascripts/moment/dv.js +84 -83
- data/vendor/assets/javascripts/moment/el.js +81 -81
- data/vendor/assets/javascripts/moment/en-au.js +54 -54
- data/vendor/assets/javascripts/moment/en-ca.js +50 -50
- data/vendor/assets/javascripts/moment/en-gb.js +54 -54
- data/vendor/assets/javascripts/moment/en-ie.js +54 -54
- data/vendor/assets/javascripts/moment/en-nz.js +54 -54
- data/vendor/assets/javascripts/moment/eo.js +57 -57
- data/vendor/assets/javascripts/moment/es-do.js +63 -63
- data/vendor/assets/javascripts/moment/es.js +63 -63
- data/vendor/assets/javascripts/moment/et.js +64 -64
- data/vendor/assets/javascripts/moment/eu.js +53 -53
- data/vendor/assets/javascripts/moment/fa.js +92 -91
- data/vendor/assets/javascripts/moment/fi.js +92 -92
- data/vendor/assets/javascripts/moment/fo.js +47 -47
- data/vendor/assets/javascripts/moment/fr-ca.js +47 -47
- data/vendor/assets/javascripts/moment/fr-ch.js +51 -51
- data/vendor/assets/javascripts/moment/fr.js +51 -51
- data/vendor/assets/javascripts/moment/fy.js +58 -58
- data/vendor/assets/javascripts/moment/gd.js +58 -58
- data/vendor/assets/javascripts/moment/gl.js +61 -61
- data/vendor/assets/javascripts/moment/he.js +78 -78
- data/vendor/assets/javascripts/moment/hi.js +109 -109
- data/vendor/assets/javascripts/moment/hr.js +128 -128
- data/vendor/assets/javascripts/moment/hu.js +92 -92
- data/vendor/assets/javascripts/moment/hy-am.js +79 -79
- data/vendor/assets/javascripts/moment/id.js +68 -68
- data/vendor/assets/javascripts/moment/is.js +106 -106
- data/vendor/assets/javascripts/moment/it.js +54 -54
- data/vendor/assets/javascripts/moment/ja.js +62 -62
- data/vendor/assets/javascripts/moment/jv.js +69 -69
- data/vendor/assets/javascripts/moment/ka.js +71 -71
- data/vendor/assets/javascripts/moment/kk.js +73 -73
- data/vendor/assets/javascripts/moment/km.js +45 -45
- data/vendor/assets/javascripts/moment/ko.js +51 -51
- data/vendor/assets/javascripts/moment/ky.js +73 -73
- data/vendor/assets/javascripts/moment/lb.js +114 -114
- data/vendor/assets/javascripts/moment/lo.js +56 -56
- data/vendor/assets/javascripts/moment/lt.js +100 -100
- data/vendor/assets/javascripts/moment/lv.js +81 -81
- data/vendor/assets/javascripts/moment/me.js +93 -93
- data/vendor/assets/javascripts/moment/mi.js +51 -51
- data/vendor/assets/javascripts/moment/mk.js +74 -74
- data/vendor/assets/javascripts/moment/ml.js +67 -67
- data/vendor/assets/javascripts/moment/mr.js +139 -139
- data/vendor/assets/javascripts/moment/ms-my.js +68 -68
- data/vendor/assets/javascripts/moment/ms.js +68 -68
- data/vendor/assets/javascripts/moment/my.js +79 -78
- data/vendor/assets/javascripts/moment/nb.js +49 -49
- data/vendor/assets/javascripts/moment/ne.js +108 -108
- data/vendor/assets/javascripts/moment/nl-be.js +86 -0
- data/vendor/assets/javascripts/moment/nl.js +67 -67
- data/vendor/assets/javascripts/moment/nn.js +47 -47
- data/vendor/assets/javascripts/moment/pa-in.js +109 -109
- data/vendor/assets/javascripts/moment/pl.js +88 -88
- data/vendor/assets/javascripts/moment/pt-br.js +47 -47
- data/vendor/assets/javascripts/moment/pt.js +51 -51
- data/vendor/assets/javascripts/moment/ro.js +59 -59
- data/vendor/assets/javascripts/moment/ru.js +153 -153
- data/vendor/assets/javascripts/moment/se.js +47 -47
- data/vendor/assets/javascripts/moment/si.js +57 -57
- data/vendor/assets/javascripts/moment/sk.js +132 -132
- data/vendor/assets/javascripts/moment/sl.js +144 -144
- data/vendor/assets/javascripts/moment/sq.js +55 -55
- data/vendor/assets/javascripts/moment/sr-cyrl.js +93 -93
- data/vendor/assets/javascripts/moment/sr.js +93 -93
- data/vendor/assets/javascripts/moment/ss.js +73 -73
- data/vendor/assets/javascripts/moment/sv.js +56 -56
- data/vendor/assets/javascripts/moment/sw.js +46 -46
- data/vendor/assets/javascripts/moment/ta.js +115 -114
- data/vendor/assets/javascripts/moment/te.js +75 -75
- data/vendor/assets/javascripts/moment/tet.js +68 -0
- data/vendor/assets/javascripts/moment/th.js +53 -53
- data/vendor/assets/javascripts/moment/tl-ph.js +49 -49
- data/vendor/assets/javascripts/moment/tlh.js +100 -100
- data/vendor/assets/javascripts/moment/tr.js +74 -74
- data/vendor/assets/javascripts/moment/tzl.js +75 -75
- data/vendor/assets/javascripts/moment/tzm-latn.js +45 -45
- data/vendor/assets/javascripts/moment/tzm.js +45 -45
- data/vendor/assets/javascripts/moment/uk.js +125 -125
- data/vendor/assets/javascripts/moment/uz.js +45 -45
- data/vendor/assets/javascripts/moment/vi.js +65 -65
- data/vendor/assets/javascripts/moment/x-pseudo.js +55 -55
- data/vendor/assets/javascripts/moment/yo.js +60 -0
- data/vendor/assets/javascripts/moment/zh-cn.js +107 -107
- data/vendor/assets/javascripts/moment/zh-hk.js +89 -89
- data/vendor/assets/javascripts/moment/zh-tw.js +89 -89
- metadata +6 -2
@@ -7,84 +7,84 @@
|
|
7
7
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
8
8
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
9
9
|
factory(global.moment)
|
10
|
-
}(this, function (moment) { 'use strict';
|
10
|
+
}(this, (function (moment) { 'use strict';
|
11
11
|
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
}
|
44
|
-
},
|
45
|
-
sameElse : 'L'
|
46
|
-
},
|
47
|
-
relativeTime : {
|
48
|
-
future : 'после %s',
|
49
|
-
past : 'пред %s',
|
50
|
-
s : 'неколку секунди',
|
51
|
-
m : 'минута',
|
52
|
-
mm : '%d минути',
|
53
|
-
h : 'час',
|
54
|
-
hh : '%d часа',
|
55
|
-
d : 'ден',
|
56
|
-
dd : '%d дена',
|
57
|
-
M : 'месец',
|
58
|
-
MM : '%d месеци',
|
59
|
-
y : 'година',
|
60
|
-
yy : '%d години'
|
61
|
-
},
|
62
|
-
ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
|
63
|
-
ordinal : function (number) {
|
64
|
-
var lastDigit = number % 10,
|
65
|
-
last2Digits = number % 100;
|
66
|
-
if (number === 0) {
|
67
|
-
return number + '-ев';
|
68
|
-
} else if (last2Digits === 0) {
|
69
|
-
return number + '-ен';
|
70
|
-
} else if (last2Digits > 10 && last2Digits < 20) {
|
71
|
-
return number + '-ти';
|
72
|
-
} else if (lastDigit === 1) {
|
73
|
-
return number + '-ви';
|
74
|
-
} else if (lastDigit === 2) {
|
75
|
-
return number + '-ри';
|
76
|
-
} else if (lastDigit === 7 || lastDigit === 8) {
|
77
|
-
return number + '-ми';
|
78
|
-
} else {
|
79
|
-
return number + '-ти';
|
13
|
+
var mk = moment.defineLocale('mk', {
|
14
|
+
months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
|
15
|
+
monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
|
16
|
+
weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
|
17
|
+
weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
|
18
|
+
weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'),
|
19
|
+
longDateFormat : {
|
20
|
+
LT : 'H:mm',
|
21
|
+
LTS : 'H:mm:ss',
|
22
|
+
L : 'D.MM.YYYY',
|
23
|
+
LL : 'D MMMM YYYY',
|
24
|
+
LLL : 'D MMMM YYYY H:mm',
|
25
|
+
LLLL : 'dddd, D MMMM YYYY H:mm'
|
26
|
+
},
|
27
|
+
calendar : {
|
28
|
+
sameDay : '[Денес во] LT',
|
29
|
+
nextDay : '[Утре во] LT',
|
30
|
+
nextWeek : '[Во] dddd [во] LT',
|
31
|
+
lastDay : '[Вчера во] LT',
|
32
|
+
lastWeek : function () {
|
33
|
+
switch (this.day()) {
|
34
|
+
case 0:
|
35
|
+
case 3:
|
36
|
+
case 6:
|
37
|
+
return '[Изминатата] dddd [во] LT';
|
38
|
+
case 1:
|
39
|
+
case 2:
|
40
|
+
case 4:
|
41
|
+
case 5:
|
42
|
+
return '[Изминатиот] dddd [во] LT';
|
80
43
|
}
|
81
44
|
},
|
82
|
-
|
83
|
-
|
84
|
-
|
45
|
+
sameElse : 'L'
|
46
|
+
},
|
47
|
+
relativeTime : {
|
48
|
+
future : 'после %s',
|
49
|
+
past : 'пред %s',
|
50
|
+
s : 'неколку секунди',
|
51
|
+
m : 'минута',
|
52
|
+
mm : '%d минути',
|
53
|
+
h : 'час',
|
54
|
+
hh : '%d часа',
|
55
|
+
d : 'ден',
|
56
|
+
dd : '%d дена',
|
57
|
+
M : 'месец',
|
58
|
+
MM : '%d месеци',
|
59
|
+
y : 'година',
|
60
|
+
yy : '%d години'
|
61
|
+
},
|
62
|
+
ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
|
63
|
+
ordinal : function (number) {
|
64
|
+
var lastDigit = number % 10,
|
65
|
+
last2Digits = number % 100;
|
66
|
+
if (number === 0) {
|
67
|
+
return number + '-ев';
|
68
|
+
} else if (last2Digits === 0) {
|
69
|
+
return number + '-ен';
|
70
|
+
} else if (last2Digits > 10 && last2Digits < 20) {
|
71
|
+
return number + '-ти';
|
72
|
+
} else if (lastDigit === 1) {
|
73
|
+
return number + '-ви';
|
74
|
+
} else if (lastDigit === 2) {
|
75
|
+
return number + '-ри';
|
76
|
+
} else if (lastDigit === 7 || lastDigit === 8) {
|
77
|
+
return number + '-ми';
|
78
|
+
} else {
|
79
|
+
return number + '-ти';
|
85
80
|
}
|
86
|
-
}
|
81
|
+
},
|
82
|
+
week : {
|
83
|
+
dow : 1, // Monday is the first day of the week.
|
84
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
85
|
+
}
|
86
|
+
});
|
87
87
|
|
88
|
-
|
88
|
+
return mk;
|
89
89
|
|
90
|
-
}));
|
90
|
+
})));
|
@@ -7,75 +7,75 @@
|
|
7
7
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
8
8
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
9
9
|
factory(global.moment)
|
10
|
-
}(this, function (moment) { 'use strict';
|
10
|
+
}(this, (function (moment) { 'use strict';
|
11
11
|
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
}
|
56
|
-
if ((meridiem === 'രാത്രി' && hour >= 4) ||
|
57
|
-
meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
|
58
|
-
meridiem === 'വൈകുന്നേരം') {
|
59
|
-
return hour + 12;
|
60
|
-
} else {
|
61
|
-
return hour;
|
62
|
-
}
|
63
|
-
},
|
64
|
-
meridiem : function (hour, minute, isLower) {
|
65
|
-
if (hour < 4) {
|
66
|
-
return 'രാത്രി';
|
67
|
-
} else if (hour < 12) {
|
68
|
-
return 'രാവിലെ';
|
69
|
-
} else if (hour < 17) {
|
70
|
-
return 'ഉച്ച കഴിഞ്ഞ്';
|
71
|
-
} else if (hour < 20) {
|
72
|
-
return 'വൈകുന്നേരം';
|
73
|
-
} else {
|
74
|
-
return 'രാത്രി';
|
75
|
-
}
|
13
|
+
var ml = moment.defineLocale('ml', {
|
14
|
+
months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
|
15
|
+
monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
|
16
|
+
monthsParseExact : true,
|
17
|
+
weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
|
18
|
+
weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
|
19
|
+
weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : 'A h:mm -നു',
|
22
|
+
LTS : 'A h:mm:ss -നു',
|
23
|
+
L : 'DD/MM/YYYY',
|
24
|
+
LL : 'D MMMM YYYY',
|
25
|
+
LLL : 'D MMMM YYYY, A h:mm -നു',
|
26
|
+
LLLL : 'dddd, D MMMM YYYY, A h:mm -നു'
|
27
|
+
},
|
28
|
+
calendar : {
|
29
|
+
sameDay : '[ഇന്ന്] LT',
|
30
|
+
nextDay : '[നാളെ] LT',
|
31
|
+
nextWeek : 'dddd, LT',
|
32
|
+
lastDay : '[ഇന്നലെ] LT',
|
33
|
+
lastWeek : '[കഴിഞ്ഞ] dddd, LT',
|
34
|
+
sameElse : 'L'
|
35
|
+
},
|
36
|
+
relativeTime : {
|
37
|
+
future : '%s കഴിഞ്ഞ്',
|
38
|
+
past : '%s മുൻപ്',
|
39
|
+
s : 'അൽപ നിമിഷങ്ങൾ',
|
40
|
+
m : 'ഒരു മിനിറ്റ്',
|
41
|
+
mm : '%d മിനിറ്റ്',
|
42
|
+
h : 'ഒരു മണിക്കൂർ',
|
43
|
+
hh : '%d മണിക്കൂർ',
|
44
|
+
d : 'ഒരു ദിവസം',
|
45
|
+
dd : '%d ദിവസം',
|
46
|
+
M : 'ഒരു മാസം',
|
47
|
+
MM : '%d മാസം',
|
48
|
+
y : 'ഒരു വർഷം',
|
49
|
+
yy : '%d വർഷം'
|
50
|
+
},
|
51
|
+
meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
|
52
|
+
meridiemHour : function (hour, meridiem) {
|
53
|
+
if (hour === 12) {
|
54
|
+
hour = 0;
|
76
55
|
}
|
77
|
-
|
56
|
+
if ((meridiem === 'രാത്രി' && hour >= 4) ||
|
57
|
+
meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
|
58
|
+
meridiem === 'വൈകുന്നേരം') {
|
59
|
+
return hour + 12;
|
60
|
+
} else {
|
61
|
+
return hour;
|
62
|
+
}
|
63
|
+
},
|
64
|
+
meridiem : function (hour, minute, isLower) {
|
65
|
+
if (hour < 4) {
|
66
|
+
return 'രാത്രി';
|
67
|
+
} else if (hour < 12) {
|
68
|
+
return 'രാവിലെ';
|
69
|
+
} else if (hour < 17) {
|
70
|
+
return 'ഉച്ച കഴിഞ്ഞ്';
|
71
|
+
} else if (hour < 20) {
|
72
|
+
return 'വൈകുന്നേരം';
|
73
|
+
} else {
|
74
|
+
return 'രാത്രി';
|
75
|
+
}
|
76
|
+
}
|
77
|
+
});
|
78
78
|
|
79
|
-
|
79
|
+
return ml;
|
80
80
|
|
81
|
-
}));
|
81
|
+
})));
|
@@ -8,152 +8,152 @@
|
|
8
8
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
9
9
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
10
10
|
factory(global.moment)
|
11
|
-
}(this, function (moment) { 'use strict';
|
11
|
+
}(this, (function (moment) { 'use strict';
|
12
12
|
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
14
|
+
var symbolMap = {
|
15
|
+
'1': '१',
|
16
|
+
'2': '२',
|
17
|
+
'3': '३',
|
18
|
+
'4': '४',
|
19
|
+
'5': '५',
|
20
|
+
'6': '६',
|
21
|
+
'7': '७',
|
22
|
+
'8': '८',
|
23
|
+
'9': '९',
|
24
|
+
'0': '०'
|
25
|
+
};
|
26
|
+
var numberMap = {
|
27
|
+
'१': '1',
|
28
|
+
'२': '2',
|
29
|
+
'३': '3',
|
30
|
+
'४': '4',
|
31
|
+
'५': '5',
|
32
|
+
'६': '6',
|
33
|
+
'७': '7',
|
34
|
+
'८': '8',
|
35
|
+
'९': '9',
|
36
|
+
'०': '0'
|
37
|
+
};
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
}
|
39
|
+
function relativeTimeMr(number, withoutSuffix, string, isFuture)
|
40
|
+
{
|
41
|
+
var output = '';
|
42
|
+
if (withoutSuffix) {
|
43
|
+
switch (string) {
|
44
|
+
case 's': output = 'काही सेकंद'; break;
|
45
|
+
case 'm': output = 'एक मिनिट'; break;
|
46
|
+
case 'mm': output = '%d मिनिटे'; break;
|
47
|
+
case 'h': output = 'एक तास'; break;
|
48
|
+
case 'hh': output = '%d तास'; break;
|
49
|
+
case 'd': output = 'एक दिवस'; break;
|
50
|
+
case 'dd': output = '%d दिवस'; break;
|
51
|
+
case 'M': output = 'एक महिना'; break;
|
52
|
+
case 'MM': output = '%d महिने'; break;
|
53
|
+
case 'y': output = 'एक वर्ष'; break;
|
54
|
+
case 'yy': output = '%d वर्षे'; break;
|
56
55
|
}
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
56
|
+
}
|
57
|
+
else {
|
58
|
+
switch (string) {
|
59
|
+
case 's': output = 'काही सेकंदां'; break;
|
60
|
+
case 'm': output = 'एका मिनिटा'; break;
|
61
|
+
case 'mm': output = '%d मिनिटां'; break;
|
62
|
+
case 'h': output = 'एका तासा'; break;
|
63
|
+
case 'hh': output = '%d तासां'; break;
|
64
|
+
case 'd': output = 'एका दिवसा'; break;
|
65
|
+
case 'dd': output = '%d दिवसां'; break;
|
66
|
+
case 'M': output = 'एका महिन्या'; break;
|
67
|
+
case 'MM': output = '%d महिन्यां'; break;
|
68
|
+
case 'y': output = 'एका वर्षा'; break;
|
69
|
+
case 'yy': output = '%d वर्षां'; break;
|
71
70
|
}
|
72
|
-
return output.replace(/%d/i, number);
|
73
71
|
}
|
72
|
+
return output.replace(/%d/i, number);
|
73
|
+
}
|
74
74
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
}
|
150
|
-
},
|
151
|
-
week : {
|
152
|
-
dow : 0, // Sunday is the first day of the week.
|
153
|
-
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
75
|
+
var mr = moment.defineLocale('mr', {
|
76
|
+
months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
|
77
|
+
monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
|
78
|
+
monthsParseExact : true,
|
79
|
+
weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
|
80
|
+
weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
|
81
|
+
weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
|
82
|
+
longDateFormat : {
|
83
|
+
LT : 'A h:mm वाजता',
|
84
|
+
LTS : 'A h:mm:ss वाजता',
|
85
|
+
L : 'DD/MM/YYYY',
|
86
|
+
LL : 'D MMMM YYYY',
|
87
|
+
LLL : 'D MMMM YYYY, A h:mm वाजता',
|
88
|
+
LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता'
|
89
|
+
},
|
90
|
+
calendar : {
|
91
|
+
sameDay : '[आज] LT',
|
92
|
+
nextDay : '[उद्या] LT',
|
93
|
+
nextWeek : 'dddd, LT',
|
94
|
+
lastDay : '[काल] LT',
|
95
|
+
lastWeek: '[मागील] dddd, LT',
|
96
|
+
sameElse : 'L'
|
97
|
+
},
|
98
|
+
relativeTime : {
|
99
|
+
future: '%sमध्ये',
|
100
|
+
past: '%sपूर्वी',
|
101
|
+
s: relativeTimeMr,
|
102
|
+
m: relativeTimeMr,
|
103
|
+
mm: relativeTimeMr,
|
104
|
+
h: relativeTimeMr,
|
105
|
+
hh: relativeTimeMr,
|
106
|
+
d: relativeTimeMr,
|
107
|
+
dd: relativeTimeMr,
|
108
|
+
M: relativeTimeMr,
|
109
|
+
MM: relativeTimeMr,
|
110
|
+
y: relativeTimeMr,
|
111
|
+
yy: relativeTimeMr
|
112
|
+
},
|
113
|
+
preparse: function (string) {
|
114
|
+
return string.replace(/[१२३४५६७८९०]/g, function (match) {
|
115
|
+
return numberMap[match];
|
116
|
+
});
|
117
|
+
},
|
118
|
+
postformat: function (string) {
|
119
|
+
return string.replace(/\d/g, function (match) {
|
120
|
+
return symbolMap[match];
|
121
|
+
});
|
122
|
+
},
|
123
|
+
meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
|
124
|
+
meridiemHour : function (hour, meridiem) {
|
125
|
+
if (hour === 12) {
|
126
|
+
hour = 0;
|
127
|
+
}
|
128
|
+
if (meridiem === 'रात्री') {
|
129
|
+
return hour < 4 ? hour : hour + 12;
|
130
|
+
} else if (meridiem === 'सकाळी') {
|
131
|
+
return hour;
|
132
|
+
} else if (meridiem === 'दुपारी') {
|
133
|
+
return hour >= 10 ? hour : hour + 12;
|
134
|
+
} else if (meridiem === 'सायंकाळी') {
|
135
|
+
return hour + 12;
|
136
|
+
}
|
137
|
+
},
|
138
|
+
meridiem: function (hour, minute, isLower) {
|
139
|
+
if (hour < 4) {
|
140
|
+
return 'रात्री';
|
141
|
+
} else if (hour < 10) {
|
142
|
+
return 'सकाळी';
|
143
|
+
} else if (hour < 17) {
|
144
|
+
return 'दुपारी';
|
145
|
+
} else if (hour < 20) {
|
146
|
+
return 'सायंकाळी';
|
147
|
+
} else {
|
148
|
+
return 'रात्री';
|
154
149
|
}
|
155
|
-
}
|
150
|
+
},
|
151
|
+
week : {
|
152
|
+
dow : 0, // Sunday is the first day of the week.
|
153
|
+
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
154
|
+
}
|
155
|
+
});
|
156
156
|
|
157
|
-
|
157
|
+
return mr;
|
158
158
|
|
159
|
-
}));
|
159
|
+
})));
|