momentjs-rails 2.20.1 → 2.29.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/dummy/app/assets/config/manifest.js +1 -0
- data/test/dummy/config/environments/development.rb +2 -0
- data/test/dummy/config/environments/production.rb +1 -0
- data/test/dummy/config/environments/test.rb +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-H/-H77gbOgi-dwHJoevs2PsAJBV-nde7DFDWBPXqUrMkw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-y/-ypqz4WBYM3Qftk20RenhtH0iPKxdtyu6t3hVOjJLL4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1l/1l4oJ9T6GJ0pN-vGrH1QH9XT7AVF3Z9pakdHrxcsuXw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3T/3TjWGZFWBLAEGSW7kQIDJIL6_MukMwz_wLDMwgYsN1E.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3e/3eGeoVsqjktkiAfNQ4zBuxtb0rtVWyQsKgjho5OHYnY.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9C/9Cy8L_tqI8SvH-pVigMqBlPTus4vnZvt3YE2y8--beE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9z/9zOsSzS7x1TCGFnvxdjQdrEL2MENRZARP2fzL5JYLF0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/AP/AP7JoF1ZWY1lf5txW64EpzKJEzOIsR9Wkn_V0pl6Kzo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Bu/BuxnmLYpqxwN3qck74Nh3Adaqz5VwdArL7wCZx6TnII.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/JO/JO9QyaKhLUs4VF1ODPXLiqcSziQS4x3sudms-3GYjww.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Mn/MnWwrzXFar6jFGAfp8PS_cZXjeFYCA85xsTQT758958.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/OM/OM7fRuvTUPQcZERsO6Tsv0fvTdZqsRZbN-mYK00TwnI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Pn/PnNlsrskw8SKHpOLkqJgEN_HjZzB2jsQZauj-dnQQ2A.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Rf/RfFWq_tyttbS2wyfSc0kKvcSxUeC_m01sL3Dl6EWEqM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ru/RuQ9HENefRmSoZaLfw7LalsxdBHpKJMyc2c3OQ_kQr8.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/T-/T-9_ffpUxh6GAYTAzM3sF5lykyt9GVpcbKZaRXxw0wA.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Zj/Zjn9OiwGREdMXvLZA-tY289lQslnn7R3BrSwhsntMWQ.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Zm/Zmp1hSfJjOVQBTRXZ-xSs8qqIK6lmyQ4GK_uYVsDVJc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/bR/bRSmDUPNI--mMuAgRHWf1r56iydNwHRg_wniS8HqhNg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dA/dAAcqCClwz0OKgpbEd9G3OUYKW1TeNqJV49Zxh2bQ5A.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dh/dhlLaVScr1-Ty5UFcg6xdU4xSWIuySWzjcC5OU2mOf4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/gt/gtu4KqwPpmom4hwtRz9x180bzJzATR6V8hyE3uHsyas.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/kl/klJHIoyRhrimisvwpjAPKxae89riL_0exIgpv4u3u5Y.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/m1/m16f5eEXdsOfzbCB88BS3eojIypOTYQjyyv5kkTDwxY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/mm/mmqv3-gEoPWhMrVamMnpI1csCNLKpv-qVQgHERXQNaU.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/rp/rpqm2QeVJPWIySovDg4XdCnI6X5_FXCd0pZhuOnwAfk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wx/wxFkskdA6iSIVZxka368Y8wkP-3edr2nlW4VSOI6GhY.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/xP/xPbdGyTHlpGRgIS0gbG9suCByeakXeTFaQ1B_h3_aUI.cache +0 -0
- data/test/integration/navigation_test.rb +1 -1
- data/vendor/assets/javascripts/moment/af.js +51 -54
- data/vendor/assets/javascripts/moment/ar-dz.js +150 -54
- data/vendor/assets/javascripts/moment/ar-kw.js +40 -46
- data/vendor/assets/javascripts/moment/ar-ly.js +141 -97
- data/vendor/assets/javascripts/moment/ar-ma.js +40 -46
- data/vendor/assets/javascripts/moment/ar-sa.js +75 -77
- data/vendor/assets/javascripts/moment/ar-tn.js +15 -21
- data/vendor/assets/javascripts/moment/ar.js +158 -112
- data/vendor/assets/javascripts/moment/az.js +52 -57
- data/vendor/assets/javascripts/moment/be.js +69 -63
- data/vendor/assets/javascripts/moment/bg.js +49 -53
- data/vendor/assets/javascripts/moment/bm.js +43 -51
- data/vendor/assets/javascripts/moment/bn-bd.js +128 -0
- data/vendor/assets/javascripts/moment/bn.js +76 -78
- data/vendor/assets/javascripts/moment/bo.js +80 -78
- data/vendor/assets/javascripts/moment/br.js +115 -59
- data/vendor/assets/javascripts/moment/bs.js +48 -52
- data/vendor/assets/javascripts/moment/ca.js +76 -68
- data/vendor/assets/javascripts/moment/cs.js +80 -89
- data/vendor/assets/javascripts/moment/cv.js +45 -47
- data/vendor/assets/javascripts/moment/cy.js +41 -26
- data/vendor/assets/javascripts/moment/da.js +43 -51
- data/vendor/assets/javascripts/moment/de-at.js +53 -54
- data/vendor/assets/javascripts/moment/de-ch.js +54 -55
- data/vendor/assets/javascripts/moment/de.js +53 -54
- data/vendor/assets/javascripts/moment/dv.js +64 -75
- data/vendor/assets/javascripts/moment/el.js +63 -60
- data/vendor/assets/javascripts/moment/en-au.js +55 -55
- data/vendor/assets/javascripts/moment/en-ca.js +52 -52
- data/vendor/assets/javascripts/moment/en-gb.js +55 -55
- data/vendor/assets/javascripts/moment/en-ie.js +55 -55
- data/vendor/assets/javascripts/moment/en-il.js +64 -0
- data/vendor/assets/javascripts/moment/en-in.js +68 -0
- data/vendor/assets/javascripts/moment/en-nz.js +55 -55
- data/vendor/assets/javascripts/moment/en-sg.js +68 -0
- data/vendor/assets/javascripts/moment/eo.js +46 -52
- data/vendor/assets/javascripts/moment/es-do.js +75 -63
- data/vendor/assets/javascripts/moment/es-mx.js +106 -0
- data/vendor/assets/javascripts/moment/es-us.js +83 -61
- data/vendor/assets/javascripts/moment/es.js +83 -70
- data/vendor/assets/javascripts/moment/et.js +58 -62
- data/vendor/assets/javascripts/moment/eu.js +53 -57
- data/vendor/assets/javascripts/moment/fa.js +84 -82
- data/vendor/assets/javascripts/moment/fi.js +72 -61
- data/vendor/assets/javascripts/moment/fil.js +58 -0
- data/vendor/assets/javascripts/moment/fo.js +46 -51
- data/vendor/assets/javascripts/moment/fr-ca.js +44 -50
- data/vendor/assets/javascripts/moment/fr-ch.js +47 -53
- data/vendor/assets/javascripts/moment/fr.js +72 -52
- data/vendor/assets/javascripts/moment/fy.js +52 -51
- data/vendor/assets/javascripts/moment/ga.js +95 -0
- data/vendor/assets/javascripts/moment/gd.js +81 -63
- data/vendor/assets/javascripts/moment/gl.js +54 -58
- data/vendor/assets/javascripts/moment/gom-deva.js +124 -0
- data/vendor/assets/javascripts/moment/gom-latn.js +70 -70
- data/vendor/assets/javascripts/moment/gu.js +30 -34
- data/vendor/assets/javascripts/moment/he.js +48 -54
- data/vendor/assets/javascripts/moment/hi.js +115 -76
- data/vendor/assets/javascripts/moment/hr.js +54 -55
- data/vendor/assets/javascripts/moment/hu.js +63 -56
- data/vendor/assets/javascripts/moment/hy-am.js +44 -48
- data/vendor/assets/javascripts/moment/id.js +44 -52
- data/vendor/assets/javascripts/moment/is.js +61 -55
- data/vendor/assets/javascripts/moment/it-ch.js +64 -0
- data/vendor/assets/javascripts/moment/it.js +89 -54
- data/vendor/assets/javascripts/moment/ja.js +122 -55
- data/vendor/assets/javascripts/moment/jv.js +44 -52
- data/vendor/assets/javascripts/moment/ka.js +68 -66
- data/vendor/assets/javascripts/moment/kk.js +46 -52
- data/vendor/assets/javascripts/moment/km.js +64 -21
- data/vendor/assets/javascripts/moment/kn.js +72 -76
- data/vendor/assets/javascripts/moment/ko.js +48 -56
- data/vendor/assets/javascripts/moment/ku.js +118 -0
- data/vendor/assets/javascripts/moment/ky.js +48 -53
- data/vendor/assets/javascripts/moment/lb.js +39 -42
- data/vendor/assets/javascripts/moment/lo.js +44 -50
- data/vendor/assets/javascripts/moment/lt.js +79 -75
- data/vendor/assets/javascripts/moment/lv.js +57 -63
- data/vendor/assets/javascripts/moment/me.js +53 -48
- data/vendor/assets/javascripts/moment/mi.js +15 -21
- data/vendor/assets/javascripts/moment/mk.js +46 -52
- data/vendor/assets/javascripts/moment/ml.js +51 -53
- data/vendor/assets/javascripts/moment/mn.js +99 -0
- data/vendor/assets/javascripts/moment/mr.js +140 -100
- data/vendor/assets/javascripts/moment/ms-my.js +43 -51
- data/vendor/assets/javascripts/moment/ms.js +43 -51
- data/vendor/assets/javascripts/moment/mt.js +45 -51
- data/vendor/assets/javascripts/moment/my.js +37 -43
- data/vendor/assets/javascripts/moment/nb.js +45 -48
- data/vendor/assets/javascripts/moment/ne.js +73 -77
- data/vendor/assets/javascripts/moment/nl-be.js +70 -57
- data/vendor/assets/javascripts/moment/nl.js +72 -57
- data/vendor/assets/javascripts/moment/nn.js +46 -47
- data/vendor/assets/javascripts/moment/oc-lnc.js +83 -0
- data/vendor/assets/javascripts/moment/pa-in.js +72 -76
- data/vendor/assets/javascripts/moment/pl.js +67 -55
- data/vendor/assets/javascripts/moment/pt-br.js +41 -46
- data/vendor/assets/javascripts/moment/pt.js +46 -50
- data/vendor/assets/javascripts/moment/ro.js +49 -51
- data/vendor/assets/javascripts/moment/ru.js +104 -83
- data/vendor/assets/javascripts/moment/sd.js +56 -74
- data/vendor/assets/javascripts/moment/se.js +41 -46
- data/vendor/assets/javascripts/moment/si.js +48 -52
- data/vendor/assets/javascripts/moment/sk.js +52 -66
- data/vendor/assets/javascripts/moment/sl.js +50 -54
- data/vendor/assets/javascripts/moment/sq.js +47 -53
- data/vendor/assets/javascripts/moment/sr-cyrl.js +53 -49
- data/vendor/assets/javascripts/moment/sr.js +56 -50
- data/vendor/assets/javascripts/moment/ss.js +48 -55
- data/vendor/assets/javascripts/moment/sv.js +51 -53
- data/vendor/assets/javascripts/moment/sw.js +45 -51
- data/vendor/assets/javascripts/moment/ta.js +75 -77
- data/vendor/assets/javascripts/moment/te.js +51 -55
- data/vendor/assets/javascripts/moment/tet.js +49 -50
- data/vendor/assets/javascripts/moment/tg.js +116 -0
- data/vendor/assets/javascripts/moment/th.js +45 -49
- data/vendor/assets/javascripts/moment/tk.js +91 -0
- data/vendor/assets/javascripts/moment/tl-ph.js +40 -46
- data/vendor/assets/javascripts/moment/tlh.js +69 -67
- data/vendor/assets/javascripts/moment/tr.js +91 -76
- data/vendor/assets/javascripts/moment/tzl.js +65 -69
- data/vendor/assets/javascripts/moment/tzm-latn.js +39 -45
- data/vendor/assets/javascripts/moment/tzm.js +38 -44
- data/vendor/assets/javascripts/moment/ug-cn.js +110 -0
- data/vendor/assets/javascripts/moment/uk.js +78 -68
- data/vendor/assets/javascripts/moment/ur.js +56 -74
- data/vendor/assets/javascripts/moment/uz-latn.js +44 -50
- data/vendor/assets/javascripts/moment/uz.js +42 -50
- data/vendor/assets/javascripts/moment/vi.js +54 -55
- data/vendor/assets/javascripts/moment/x-pseudo.js +58 -56
- data/vendor/assets/javascripts/moment/yo.js +44 -52
- data/vendor/assets/javascripts/moment/zh-cn.js +66 -58
- data/vendor/assets/javascripts/moment/zh-hk.js +58 -63
- data/vendor/assets/javascripts/moment/zh-mo.js +100 -0
- data/vendor/assets/javascripts/moment/zh-tw.js +55 -61
- data/vendor/assets/javascripts/moment.js +2673 -1546
- metadata +92 -31
- 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
@@ -3,101 +3,145 @@
|
|
3
3
|
//! author : Harshad Kale : https://github.com/kalehv
|
4
4
|
//! author : Vivek Athalye : https://github.com/vnathalye
|
5
5
|
|
6
|
-
|
7
|
-
typeof exports === 'object' && typeof module !== 'undefined'
|
8
|
-
&& typeof require === 'function' ? factory(require('../moment')) :
|
9
|
-
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
10
|
-
factory(global.moment)
|
11
|
-
}(this, (function (moment) { 'use strict';
|
12
|
-
|
6
|
+
import moment from '../moment';
|
13
7
|
|
14
8
|
var symbolMap = {
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
}
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
};
|
9
|
+
1: '१',
|
10
|
+
2: '२',
|
11
|
+
3: '३',
|
12
|
+
4: '४',
|
13
|
+
5: '५',
|
14
|
+
6: '६',
|
15
|
+
7: '७',
|
16
|
+
8: '८',
|
17
|
+
9: '९',
|
18
|
+
0: '०',
|
19
|
+
},
|
20
|
+
numberMap = {
|
21
|
+
'१': '1',
|
22
|
+
'२': '2',
|
23
|
+
'३': '3',
|
24
|
+
'४': '4',
|
25
|
+
'५': '5',
|
26
|
+
'६': '6',
|
27
|
+
'७': '7',
|
28
|
+
'८': '8',
|
29
|
+
'९': '9',
|
30
|
+
'०': '0',
|
31
|
+
};
|
38
32
|
|
39
|
-
function relativeTimeMr(number, withoutSuffix, string, isFuture)
|
40
|
-
{
|
33
|
+
function relativeTimeMr(number, withoutSuffix, string, isFuture) {
|
41
34
|
var output = '';
|
42
35
|
if (withoutSuffix) {
|
43
36
|
switch (string) {
|
44
|
-
case 's':
|
45
|
-
|
46
|
-
|
47
|
-
case '
|
48
|
-
|
49
|
-
|
50
|
-
case '
|
51
|
-
|
52
|
-
|
53
|
-
case '
|
54
|
-
|
55
|
-
|
37
|
+
case 's':
|
38
|
+
output = 'काही सेकंद';
|
39
|
+
break;
|
40
|
+
case 'ss':
|
41
|
+
output = '%d सेकंद';
|
42
|
+
break;
|
43
|
+
case 'm':
|
44
|
+
output = 'एक मिनिट';
|
45
|
+
break;
|
46
|
+
case 'mm':
|
47
|
+
output = '%d मिनिटे';
|
48
|
+
break;
|
49
|
+
case 'h':
|
50
|
+
output = 'एक तास';
|
51
|
+
break;
|
52
|
+
case 'hh':
|
53
|
+
output = '%d तास';
|
54
|
+
break;
|
55
|
+
case 'd':
|
56
|
+
output = 'एक दिवस';
|
57
|
+
break;
|
58
|
+
case 'dd':
|
59
|
+
output = '%d दिवस';
|
60
|
+
break;
|
61
|
+
case 'M':
|
62
|
+
output = 'एक महिना';
|
63
|
+
break;
|
64
|
+
case 'MM':
|
65
|
+
output = '%d महिने';
|
66
|
+
break;
|
67
|
+
case 'y':
|
68
|
+
output = 'एक वर्ष';
|
69
|
+
break;
|
70
|
+
case 'yy':
|
71
|
+
output = '%d वर्षे';
|
72
|
+
break;
|
56
73
|
}
|
57
|
-
}
|
58
|
-
else {
|
74
|
+
} else {
|
59
75
|
switch (string) {
|
60
|
-
case 's':
|
61
|
-
|
62
|
-
|
63
|
-
case '
|
64
|
-
|
65
|
-
|
66
|
-
case '
|
67
|
-
|
68
|
-
|
69
|
-
case '
|
70
|
-
|
71
|
-
|
76
|
+
case 's':
|
77
|
+
output = 'काही सेकंदां';
|
78
|
+
break;
|
79
|
+
case 'ss':
|
80
|
+
output = '%d सेकंदां';
|
81
|
+
break;
|
82
|
+
case 'm':
|
83
|
+
output = 'एका मिनिटा';
|
84
|
+
break;
|
85
|
+
case 'mm':
|
86
|
+
output = '%d मिनिटां';
|
87
|
+
break;
|
88
|
+
case 'h':
|
89
|
+
output = 'एका तासा';
|
90
|
+
break;
|
91
|
+
case 'hh':
|
92
|
+
output = '%d तासां';
|
93
|
+
break;
|
94
|
+
case 'd':
|
95
|
+
output = 'एका दिवसा';
|
96
|
+
break;
|
97
|
+
case 'dd':
|
98
|
+
output = '%d दिवसां';
|
99
|
+
break;
|
100
|
+
case 'M':
|
101
|
+
output = 'एका महिन्या';
|
102
|
+
break;
|
103
|
+
case 'MM':
|
104
|
+
output = '%d महिन्यां';
|
105
|
+
break;
|
106
|
+
case 'y':
|
107
|
+
output = 'एका वर्षा';
|
108
|
+
break;
|
109
|
+
case 'yy':
|
110
|
+
output = '%d वर्षां';
|
111
|
+
break;
|
72
112
|
}
|
73
113
|
}
|
74
114
|
return output.replace(/%d/i, number);
|
75
115
|
}
|
76
116
|
|
77
|
-
|
78
|
-
months
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
117
|
+
export default moment.defineLocale('mr', {
|
118
|
+
months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
|
119
|
+
'_'
|
120
|
+
),
|
121
|
+
monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
|
122
|
+
'_'
|
123
|
+
),
|
124
|
+
monthsParseExact: true,
|
125
|
+
weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
|
126
|
+
weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
|
127
|
+
weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
|
128
|
+
longDateFormat: {
|
129
|
+
LT: 'A h:mm वाजता',
|
130
|
+
LTS: 'A h:mm:ss वाजता',
|
131
|
+
L: 'DD/MM/YYYY',
|
132
|
+
LL: 'D MMMM YYYY',
|
133
|
+
LLL: 'D MMMM YYYY, A h:mm वाजता',
|
134
|
+
LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता',
|
91
135
|
},
|
92
|
-
calendar
|
93
|
-
sameDay
|
94
|
-
nextDay
|
95
|
-
nextWeek
|
96
|
-
lastDay
|
136
|
+
calendar: {
|
137
|
+
sameDay: '[आज] LT',
|
138
|
+
nextDay: '[उद्या] LT',
|
139
|
+
nextWeek: 'dddd, LT',
|
140
|
+
lastDay: '[काल] LT',
|
97
141
|
lastWeek: '[मागील] dddd, LT',
|
98
|
-
sameElse
|
142
|
+
sameElse: 'L',
|
99
143
|
},
|
100
|
-
relativeTime
|
144
|
+
relativeTime: {
|
101
145
|
future: '%sमध्ये',
|
102
146
|
past: '%sपूर्वी',
|
103
147
|
s: relativeTimeMr,
|
@@ -111,7 +155,7 @@ var mr = moment.defineLocale('mr', {
|
|
111
155
|
M: relativeTimeMr,
|
112
156
|
MM: relativeTimeMr,
|
113
157
|
y: relativeTimeMr,
|
114
|
-
yy: relativeTimeMr
|
158
|
+
yy: relativeTimeMr,
|
115
159
|
},
|
116
160
|
preparse: function (string) {
|
117
161
|
return string.replace(/[१२३४५६७८९०]/g, function (match) {
|
@@ -123,25 +167,25 @@ var mr = moment.defineLocale('mr', {
|
|
123
167
|
return symbolMap[match];
|
124
168
|
});
|
125
169
|
},
|
126
|
-
meridiemParse:
|
127
|
-
meridiemHour
|
170
|
+
meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
|
171
|
+
meridiemHour: function (hour, meridiem) {
|
128
172
|
if (hour === 12) {
|
129
173
|
hour = 0;
|
130
174
|
}
|
131
|
-
if (meridiem === '
|
132
|
-
return hour < 4 ? hour : hour + 12;
|
133
|
-
} else if (meridiem === 'सकाळी') {
|
175
|
+
if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {
|
134
176
|
return hour;
|
135
|
-
} else if (
|
136
|
-
|
137
|
-
|
138
|
-
|
177
|
+
} else if (
|
178
|
+
meridiem === 'दुपारी' ||
|
179
|
+
meridiem === 'सायंकाळी' ||
|
180
|
+
meridiem === 'रात्री'
|
181
|
+
) {
|
182
|
+
return hour >= 12 ? hour : hour + 12;
|
139
183
|
}
|
140
184
|
},
|
141
185
|
meridiem: function (hour, minute, isLower) {
|
142
|
-
if (hour <
|
143
|
-
return '
|
144
|
-
} else if (hour <
|
186
|
+
if (hour >= 0 && hour < 6) {
|
187
|
+
return 'पहाटे';
|
188
|
+
} else if (hour < 12) {
|
145
189
|
return 'सकाळी';
|
146
190
|
} else if (hour < 17) {
|
147
191
|
return 'दुपारी';
|
@@ -151,12 +195,8 @@ var mr = moment.defineLocale('mr', {
|
|
151
195
|
return 'रात्री';
|
152
196
|
}
|
153
197
|
},
|
154
|
-
week
|
155
|
-
dow
|
156
|
-
doy
|
157
|
-
}
|
198
|
+
week: {
|
199
|
+
dow: 0, // Sunday is the first day of the week.
|
200
|
+
doy: 6, // The week that contains Jan 6th is the first week of the year.
|
201
|
+
},
|
158
202
|
});
|
159
|
-
|
160
|
-
return mr;
|
161
|
-
|
162
|
-
})));
|
@@ -3,27 +3,23 @@
|
|
3
3
|
//! note : DEPRECATED, the correct one is [ms]
|
4
4
|
//! author : Weldan Jamili : https://github.com/weldan
|
5
5
|
|
6
|
-
|
7
|
-
typeof exports === 'object' && typeof module !== 'undefined'
|
8
|
-
&& typeof require === 'function' ? factory(require('../moment')) :
|
9
|
-
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
10
|
-
factory(global.moment)
|
11
|
-
}(this, (function (moment) { 'use strict';
|
6
|
+
import moment from '../moment';
|
12
7
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
8
|
+
export default moment.defineLocale('ms-my', {
|
9
|
+
months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
|
10
|
+
'_'
|
11
|
+
),
|
12
|
+
monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
|
13
|
+
weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
|
14
|
+
weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
|
15
|
+
weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
|
16
|
+
longDateFormat: {
|
17
|
+
LT: 'HH.mm',
|
18
|
+
LTS: 'HH.mm.ss',
|
19
|
+
L: 'DD/MM/YYYY',
|
20
|
+
LL: 'D MMMM YYYY',
|
21
|
+
LLL: 'D MMMM YYYY [pukul] HH.mm',
|
22
|
+
LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
|
27
23
|
},
|
28
24
|
meridiemParse: /pagi|tengahari|petang|malam/,
|
29
25
|
meridiemHour: function (hour, meridiem) {
|
@@ -38,7 +34,7 @@ var msMy = moment.defineLocale('ms-my', {
|
|
38
34
|
return hour + 12;
|
39
35
|
}
|
40
36
|
},
|
41
|
-
meridiem
|
37
|
+
meridiem: function (hours, minutes, isLower) {
|
42
38
|
if (hours < 11) {
|
43
39
|
return 'pagi';
|
44
40
|
} else if (hours < 15) {
|
@@ -49,36 +45,32 @@ var msMy = moment.defineLocale('ms-my', {
|
|
49
45
|
return 'malam';
|
50
46
|
}
|
51
47
|
},
|
52
|
-
calendar
|
53
|
-
sameDay
|
54
|
-
nextDay
|
55
|
-
nextWeek
|
56
|
-
lastDay
|
57
|
-
lastWeek
|
58
|
-
sameElse
|
48
|
+
calendar: {
|
49
|
+
sameDay: '[Hari ini pukul] LT',
|
50
|
+
nextDay: '[Esok pukul] LT',
|
51
|
+
nextWeek: 'dddd [pukul] LT',
|
52
|
+
lastDay: '[Kelmarin pukul] LT',
|
53
|
+
lastWeek: 'dddd [lepas pukul] LT',
|
54
|
+
sameElse: 'L',
|
55
|
+
},
|
56
|
+
relativeTime: {
|
57
|
+
future: 'dalam %s',
|
58
|
+
past: '%s yang lepas',
|
59
|
+
s: 'beberapa saat',
|
60
|
+
ss: '%d saat',
|
61
|
+
m: 'seminit',
|
62
|
+
mm: '%d minit',
|
63
|
+
h: 'sejam',
|
64
|
+
hh: '%d jam',
|
65
|
+
d: 'sehari',
|
66
|
+
dd: '%d hari',
|
67
|
+
M: 'sebulan',
|
68
|
+
MM: '%d bulan',
|
69
|
+
y: 'setahun',
|
70
|
+
yy: '%d tahun',
|
59
71
|
},
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
s : 'beberapa saat',
|
64
|
-
ss : '%d saat',
|
65
|
-
m : 'seminit',
|
66
|
-
mm : '%d minit',
|
67
|
-
h : 'sejam',
|
68
|
-
hh : '%d jam',
|
69
|
-
d : 'sehari',
|
70
|
-
dd : '%d hari',
|
71
|
-
M : 'sebulan',
|
72
|
-
MM : '%d bulan',
|
73
|
-
y : 'setahun',
|
74
|
-
yy : '%d tahun'
|
72
|
+
week: {
|
73
|
+
dow: 1, // Monday is the first day of the week.
|
74
|
+
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
75
75
|
},
|
76
|
-
week : {
|
77
|
-
dow : 1, // Monday is the first day of the week.
|
78
|
-
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
79
|
-
}
|
80
76
|
});
|
81
|
-
|
82
|
-
return msMy;
|
83
|
-
|
84
|
-
})));
|
@@ -2,27 +2,23 @@
|
|
2
2
|
//! locale : Malay [ms]
|
3
3
|
//! author : Weldan Jamili : https://github.com/weldan
|
4
4
|
|
5
|
-
|
6
|
-
typeof exports === 'object' && typeof module !== 'undefined'
|
7
|
-
&& typeof require === 'function' ? factory(require('../moment')) :
|
8
|
-
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
9
|
-
factory(global.moment)
|
10
|
-
}(this, (function (moment) { 'use strict';
|
5
|
+
import moment from '../moment';
|
11
6
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
7
|
+
export default moment.defineLocale('ms', {
|
8
|
+
months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
|
9
|
+
'_'
|
10
|
+
),
|
11
|
+
monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
|
12
|
+
weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
|
13
|
+
weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
|
14
|
+
weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
|
15
|
+
longDateFormat: {
|
16
|
+
LT: 'HH.mm',
|
17
|
+
LTS: 'HH.mm.ss',
|
18
|
+
L: 'DD/MM/YYYY',
|
19
|
+
LL: 'D MMMM YYYY',
|
20
|
+
LLL: 'D MMMM YYYY [pukul] HH.mm',
|
21
|
+
LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
|
26
22
|
},
|
27
23
|
meridiemParse: /pagi|tengahari|petang|malam/,
|
28
24
|
meridiemHour: function (hour, meridiem) {
|
@@ -37,7 +33,7 @@ var ms = moment.defineLocale('ms', {
|
|
37
33
|
return hour + 12;
|
38
34
|
}
|
39
35
|
},
|
40
|
-
meridiem
|
36
|
+
meridiem: function (hours, minutes, isLower) {
|
41
37
|
if (hours < 11) {
|
42
38
|
return 'pagi';
|
43
39
|
} else if (hours < 15) {
|
@@ -48,36 +44,32 @@ var ms = moment.defineLocale('ms', {
|
|
48
44
|
return 'malam';
|
49
45
|
}
|
50
46
|
},
|
51
|
-
calendar
|
52
|
-
sameDay
|
53
|
-
nextDay
|
54
|
-
nextWeek
|
55
|
-
lastDay
|
56
|
-
lastWeek
|
57
|
-
sameElse
|
47
|
+
calendar: {
|
48
|
+
sameDay: '[Hari ini pukul] LT',
|
49
|
+
nextDay: '[Esok pukul] LT',
|
50
|
+
nextWeek: 'dddd [pukul] LT',
|
51
|
+
lastDay: '[Kelmarin pukul] LT',
|
52
|
+
lastWeek: 'dddd [lepas pukul] LT',
|
53
|
+
sameElse: 'L',
|
54
|
+
},
|
55
|
+
relativeTime: {
|
56
|
+
future: 'dalam %s',
|
57
|
+
past: '%s yang lepas',
|
58
|
+
s: 'beberapa saat',
|
59
|
+
ss: '%d saat',
|
60
|
+
m: 'seminit',
|
61
|
+
mm: '%d minit',
|
62
|
+
h: 'sejam',
|
63
|
+
hh: '%d jam',
|
64
|
+
d: 'sehari',
|
65
|
+
dd: '%d hari',
|
66
|
+
M: 'sebulan',
|
67
|
+
MM: '%d bulan',
|
68
|
+
y: 'setahun',
|
69
|
+
yy: '%d tahun',
|
58
70
|
},
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
s : 'beberapa saat',
|
63
|
-
ss : '%d saat',
|
64
|
-
m : 'seminit',
|
65
|
-
mm : '%d minit',
|
66
|
-
h : 'sejam',
|
67
|
-
hh : '%d jam',
|
68
|
-
d : 'sehari',
|
69
|
-
dd : '%d hari',
|
70
|
-
M : 'sebulan',
|
71
|
-
MM : '%d bulan',
|
72
|
-
y : 'setahun',
|
73
|
-
yy : '%d tahun'
|
71
|
+
week: {
|
72
|
+
dow: 1, // Monday is the first day of the week.
|
73
|
+
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
74
74
|
},
|
75
|
-
week : {
|
76
|
-
dow : 1, // Monday is the first day of the week.
|
77
|
-
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
78
|
-
}
|
79
75
|
});
|
80
|
-
|
81
|
-
return ms;
|
82
|
-
|
83
|
-
})));
|
@@ -2,60 +2,54 @@
|
|
2
2
|
//! locale : Maltese (Malta) [mt]
|
3
3
|
//! author : Alessandro Maruccia : https://github.com/alesma
|
4
4
|
|
5
|
-
|
6
|
-
typeof exports === 'object' && typeof module !== 'undefined'
|
7
|
-
&& typeof require === 'function' ? factory(require('../moment')) :
|
8
|
-
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
9
|
-
factory(global.moment)
|
10
|
-
}(this, (function (moment) { 'use strict';
|
5
|
+
import moment from '../moment';
|
11
6
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
7
|
+
export default moment.defineLocale('mt', {
|
8
|
+
months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split(
|
9
|
+
'_'
|
10
|
+
),
|
11
|
+
monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
|
12
|
+
weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split(
|
13
|
+
'_'
|
14
|
+
),
|
15
|
+
weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
|
16
|
+
weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
|
17
|
+
longDateFormat: {
|
18
|
+
LT: 'HH:mm',
|
19
|
+
LTS: 'HH:mm:ss',
|
20
|
+
L: 'DD/MM/YYYY',
|
21
|
+
LL: 'D MMMM YYYY',
|
22
|
+
LLL: 'D MMMM YYYY HH:mm',
|
23
|
+
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
26
24
|
},
|
27
|
-
calendar
|
28
|
-
sameDay
|
29
|
-
nextDay
|
30
|
-
nextWeek
|
31
|
-
lastDay
|
32
|
-
lastWeek
|
33
|
-
sameElse
|
25
|
+
calendar: {
|
26
|
+
sameDay: '[Illum fil-]LT',
|
27
|
+
nextDay: '[Għada fil-]LT',
|
28
|
+
nextWeek: 'dddd [fil-]LT',
|
29
|
+
lastDay: '[Il-bieraħ fil-]LT',
|
30
|
+
lastWeek: 'dddd [li għadda] [fil-]LT',
|
31
|
+
sameElse: 'L',
|
34
32
|
},
|
35
|
-
relativeTime
|
36
|
-
future
|
37
|
-
past
|
38
|
-
s
|
39
|
-
ss
|
40
|
-
m
|
41
|
-
mm
|
42
|
-
h
|
43
|
-
hh
|
44
|
-
d
|
45
|
-
dd
|
46
|
-
M
|
47
|
-
MM
|
48
|
-
y
|
49
|
-
yy
|
33
|
+
relativeTime: {
|
34
|
+
future: 'f’ %s',
|
35
|
+
past: '%s ilu',
|
36
|
+
s: 'ftit sekondi',
|
37
|
+
ss: '%d sekondi',
|
38
|
+
m: 'minuta',
|
39
|
+
mm: '%d minuti',
|
40
|
+
h: 'siegħa',
|
41
|
+
hh: '%d siegħat',
|
42
|
+
d: 'ġurnata',
|
43
|
+
dd: '%d ġranet',
|
44
|
+
M: 'xahar',
|
45
|
+
MM: '%d xhur',
|
46
|
+
y: 'sena',
|
47
|
+
yy: '%d sni',
|
50
48
|
},
|
51
|
-
dayOfMonthOrdinalParse
|
49
|
+
dayOfMonthOrdinalParse: /\d{1,2}º/,
|
52
50
|
ordinal: '%dº',
|
53
|
-
week
|
54
|
-
dow
|
55
|
-
doy
|
56
|
-
}
|
51
|
+
week: {
|
52
|
+
dow: 1, // Monday is the first day of the week.
|
53
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
54
|
+
},
|
57
55
|
});
|
58
|
-
|
59
|
-
return mt;
|
60
|
-
|
61
|
-
})));
|