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
@@ -2,27 +2,62 @@
|
|
2
2
|
//! locale : Cambodian [km]
|
3
3
|
//! author : Kruy Vanna : https://github.com/kruyvanna
|
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
|
|
7
|
+
var symbolMap = {
|
8
|
+
1: '១',
|
9
|
+
2: '២',
|
10
|
+
3: '៣',
|
11
|
+
4: '៤',
|
12
|
+
5: '៥',
|
13
|
+
6: '៦',
|
14
|
+
7: '៧',
|
15
|
+
8: '៨',
|
16
|
+
9: '៩',
|
17
|
+
0: '០',
|
18
|
+
},
|
19
|
+
numberMap = {
|
20
|
+
'១': '1',
|
21
|
+
'២': '2',
|
22
|
+
'៣': '3',
|
23
|
+
'៤': '4',
|
24
|
+
'៥': '5',
|
25
|
+
'៦': '6',
|
26
|
+
'៧': '7',
|
27
|
+
'៨': '8',
|
28
|
+
'៩': '9',
|
29
|
+
'០': '0',
|
30
|
+
};
|
12
31
|
|
13
|
-
|
14
|
-
months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
|
15
|
-
|
32
|
+
export default moment.defineLocale('km', {
|
33
|
+
months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
|
34
|
+
'_'
|
35
|
+
),
|
36
|
+
monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
|
37
|
+
'_'
|
38
|
+
),
|
16
39
|
weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
|
17
|
-
weekdaysShort: '
|
18
|
-
weekdaysMin: '
|
40
|
+
weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
|
41
|
+
weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
|
42
|
+
weekdaysParseExact: true,
|
19
43
|
longDateFormat: {
|
20
44
|
LT: 'HH:mm',
|
21
|
-
LTS
|
45
|
+
LTS: 'HH:mm:ss',
|
22
46
|
L: 'DD/MM/YYYY',
|
23
47
|
LL: 'D MMMM YYYY',
|
24
48
|
LLL: 'D MMMM YYYY HH:mm',
|
25
|
-
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
49
|
+
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
50
|
+
},
|
51
|
+
meridiemParse: /ព្រឹក|ល្ងាច/,
|
52
|
+
isPM: function (input) {
|
53
|
+
return input === 'ល្ងាច';
|
54
|
+
},
|
55
|
+
meridiem: function (hour, minute, isLower) {
|
56
|
+
if (hour < 12) {
|
57
|
+
return 'ព្រឹក';
|
58
|
+
} else {
|
59
|
+
return 'ល្ងាច';
|
60
|
+
}
|
26
61
|
},
|
27
62
|
calendar: {
|
28
63
|
sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
|
@@ -30,7 +65,7 @@ var km = moment.defineLocale('km', {
|
|
30
65
|
nextWeek: 'dddd [ម៉ោង] LT',
|
31
66
|
lastDay: '[ម្សិលមិញ ម៉ោង] LT',
|
32
67
|
lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
|
33
|
-
sameElse: 'L'
|
68
|
+
sameElse: 'L',
|
34
69
|
},
|
35
70
|
relativeTime: {
|
36
71
|
future: '%sទៀត',
|
@@ -46,14 +81,22 @@ var km = moment.defineLocale('km', {
|
|
46
81
|
M: 'មួយខែ',
|
47
82
|
MM: '%d ខែ',
|
48
83
|
y: 'មួយឆ្នាំ',
|
49
|
-
yy: '%d ឆ្នាំ'
|
84
|
+
yy: '%d ឆ្នាំ',
|
85
|
+
},
|
86
|
+
dayOfMonthOrdinalParse: /ទី\d{1,2}/,
|
87
|
+
ordinal: 'ទី%d',
|
88
|
+
preparse: function (string) {
|
89
|
+
return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
|
90
|
+
return numberMap[match];
|
91
|
+
});
|
92
|
+
},
|
93
|
+
postformat: function (string) {
|
94
|
+
return string.replace(/\d/g, function (match) {
|
95
|
+
return symbolMap[match];
|
96
|
+
});
|
50
97
|
},
|
51
98
|
week: {
|
52
99
|
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
|
-
}
|
100
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
101
|
+
},
|
55
102
|
});
|
56
|
-
|
57
|
-
return km;
|
58
|
-
|
59
|
-
})));
|
@@ -2,77 +2,77 @@
|
|
2
2
|
//! locale : Kannada [kn]
|
3
3
|
//! author : Rajeev Naik : https://github.com/rajeevnaikte
|
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';
|
11
|
-
|
5
|
+
import moment from '../moment';
|
12
6
|
|
13
7
|
var symbolMap = {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
}
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
};
|
8
|
+
1: '೧',
|
9
|
+
2: '೨',
|
10
|
+
3: '೩',
|
11
|
+
4: '೪',
|
12
|
+
5: '೫',
|
13
|
+
6: '೬',
|
14
|
+
7: '೭',
|
15
|
+
8: '೮',
|
16
|
+
9: '೯',
|
17
|
+
0: '೦',
|
18
|
+
},
|
19
|
+
numberMap = {
|
20
|
+
'೧': '1',
|
21
|
+
'೨': '2',
|
22
|
+
'೩': '3',
|
23
|
+
'೪': '4',
|
24
|
+
'೫': '5',
|
25
|
+
'೬': '6',
|
26
|
+
'೭': '7',
|
27
|
+
'೮': '8',
|
28
|
+
'೯': '9',
|
29
|
+
'೦': '0',
|
30
|
+
};
|
37
31
|
|
38
|
-
|
39
|
-
months
|
40
|
-
|
32
|
+
export default moment.defineLocale('kn', {
|
33
|
+
months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(
|
34
|
+
'_'
|
35
|
+
),
|
36
|
+
monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(
|
37
|
+
'_'
|
38
|
+
),
|
41
39
|
monthsParseExact: true,
|
42
|
-
weekdays
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
40
|
+
weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(
|
41
|
+
'_'
|
42
|
+
),
|
43
|
+
weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
|
44
|
+
weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
|
45
|
+
longDateFormat: {
|
46
|
+
LT: 'A h:mm',
|
47
|
+
LTS: 'A h:mm:ss',
|
48
|
+
L: 'DD/MM/YYYY',
|
49
|
+
LL: 'D MMMM YYYY',
|
50
|
+
LLL: 'D MMMM YYYY, A h:mm',
|
51
|
+
LLLL: 'dddd, D MMMM YYYY, A h:mm',
|
52
52
|
},
|
53
|
-
calendar
|
54
|
-
sameDay
|
55
|
-
nextDay
|
56
|
-
nextWeek
|
57
|
-
lastDay
|
58
|
-
lastWeek
|
59
|
-
sameElse
|
53
|
+
calendar: {
|
54
|
+
sameDay: '[ಇಂದು] LT',
|
55
|
+
nextDay: '[ನಾಳೆ] LT',
|
56
|
+
nextWeek: 'dddd, LT',
|
57
|
+
lastDay: '[ನಿನ್ನೆ] LT',
|
58
|
+
lastWeek: '[ಕೊನೆಯ] dddd, LT',
|
59
|
+
sameElse: 'L',
|
60
60
|
},
|
61
|
-
relativeTime
|
62
|
-
future
|
63
|
-
past
|
64
|
-
s
|
65
|
-
ss
|
66
|
-
m
|
67
|
-
mm
|
68
|
-
h
|
69
|
-
hh
|
70
|
-
d
|
71
|
-
dd
|
72
|
-
M
|
73
|
-
MM
|
74
|
-
y
|
75
|
-
yy
|
61
|
+
relativeTime: {
|
62
|
+
future: '%s ನಂತರ',
|
63
|
+
past: '%s ಹಿಂದೆ',
|
64
|
+
s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
|
65
|
+
ss: '%d ಸೆಕೆಂಡುಗಳು',
|
66
|
+
m: 'ಒಂದು ನಿಮಿಷ',
|
67
|
+
mm: '%d ನಿಮಿಷ',
|
68
|
+
h: 'ಒಂದು ಗಂಟೆ',
|
69
|
+
hh: '%d ಗಂಟೆ',
|
70
|
+
d: 'ಒಂದು ದಿನ',
|
71
|
+
dd: '%d ದಿನ',
|
72
|
+
M: 'ಒಂದು ತಿಂಗಳು',
|
73
|
+
MM: '%d ತಿಂಗಳು',
|
74
|
+
y: 'ಒಂದು ವರ್ಷ',
|
75
|
+
yy: '%d ವರ್ಷ',
|
76
76
|
},
|
77
77
|
preparse: function (string) {
|
78
78
|
return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
|
@@ -85,7 +85,7 @@ var kn = moment.defineLocale('kn', {
|
|
85
85
|
});
|
86
86
|
},
|
87
87
|
meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
|
88
|
-
meridiemHour
|
88
|
+
meridiemHour: function (hour, meridiem) {
|
89
89
|
if (hour === 12) {
|
90
90
|
hour = 0;
|
91
91
|
}
|
@@ -99,7 +99,7 @@ var kn = moment.defineLocale('kn', {
|
|
99
99
|
return hour + 12;
|
100
100
|
}
|
101
101
|
},
|
102
|
-
meridiem
|
102
|
+
meridiem: function (hour, minute, isLower) {
|
103
103
|
if (hour < 4) {
|
104
104
|
return 'ರಾತ್ರಿ';
|
105
105
|
} else if (hour < 10) {
|
@@ -113,15 +113,11 @@ var kn = moment.defineLocale('kn', {
|
|
113
113
|
}
|
114
114
|
},
|
115
115
|
dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
|
116
|
-
ordinal
|
116
|
+
ordinal: function (number) {
|
117
117
|
return number + 'ನೇ';
|
118
118
|
},
|
119
|
-
week
|
120
|
-
dow
|
121
|
-
doy
|
122
|
-
}
|
119
|
+
week: {
|
120
|
+
dow: 0, // Sunday is the first day of the week.
|
121
|
+
doy: 6, // The week that contains Jan 6th is the first week of the year.
|
122
|
+
},
|
123
123
|
});
|
124
|
-
|
125
|
-
return kn;
|
126
|
-
|
127
|
-
})));
|
@@ -3,58 +3,54 @@
|
|
3
3
|
//! author : Kyungwook, Park : https://github.com/kyungw00k
|
4
4
|
//! author : Jeeeyul Lee <jeeeyul@gmail.com>
|
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
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
8
|
+
export default moment.defineLocale('ko', {
|
9
|
+
months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
|
10
|
+
monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(
|
11
|
+
'_'
|
12
|
+
),
|
13
|
+
weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
|
14
|
+
weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
|
15
|
+
weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
|
16
|
+
longDateFormat: {
|
17
|
+
LT: 'A h:mm',
|
18
|
+
LTS: 'A h:mm:ss',
|
19
|
+
L: 'YYYY.MM.DD.',
|
20
|
+
LL: 'YYYY년 MMMM D일',
|
21
|
+
LLL: 'YYYY년 MMMM D일 A h:mm',
|
22
|
+
LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
|
23
|
+
l: 'YYYY.MM.DD.',
|
24
|
+
ll: 'YYYY년 MMMM D일',
|
25
|
+
lll: 'YYYY년 MMMM D일 A h:mm',
|
26
|
+
llll: 'YYYY년 MMMM D일 dddd A h:mm',
|
31
27
|
},
|
32
|
-
calendar
|
33
|
-
sameDay
|
34
|
-
nextDay
|
35
|
-
nextWeek
|
36
|
-
lastDay
|
37
|
-
lastWeek
|
38
|
-
sameElse
|
28
|
+
calendar: {
|
29
|
+
sameDay: '오늘 LT',
|
30
|
+
nextDay: '내일 LT',
|
31
|
+
nextWeek: 'dddd LT',
|
32
|
+
lastDay: '어제 LT',
|
33
|
+
lastWeek: '지난주 dddd LT',
|
34
|
+
sameElse: 'L',
|
39
35
|
},
|
40
|
-
relativeTime
|
41
|
-
future
|
42
|
-
past
|
43
|
-
s
|
44
|
-
ss
|
45
|
-
m
|
46
|
-
mm
|
47
|
-
h
|
48
|
-
hh
|
49
|
-
d
|
50
|
-
dd
|
51
|
-
M
|
52
|
-
MM
|
53
|
-
y
|
54
|
-
yy
|
36
|
+
relativeTime: {
|
37
|
+
future: '%s 후',
|
38
|
+
past: '%s 전',
|
39
|
+
s: '몇 초',
|
40
|
+
ss: '%d초',
|
41
|
+
m: '1분',
|
42
|
+
mm: '%d분',
|
43
|
+
h: '한 시간',
|
44
|
+
hh: '%d시간',
|
45
|
+
d: '하루',
|
46
|
+
dd: '%d일',
|
47
|
+
M: '한 달',
|
48
|
+
MM: '%d달',
|
49
|
+
y: '일 년',
|
50
|
+
yy: '%d년',
|
55
51
|
},
|
56
|
-
dayOfMonthOrdinalParse
|
57
|
-
ordinal
|
52
|
+
dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
|
53
|
+
ordinal: function (number, period) {
|
58
54
|
switch (period) {
|
59
55
|
case 'd':
|
60
56
|
case 'D':
|
@@ -69,15 +65,11 @@ var ko = moment.defineLocale('ko', {
|
|
69
65
|
return number;
|
70
66
|
}
|
71
67
|
},
|
72
|
-
meridiemParse
|
73
|
-
isPM
|
68
|
+
meridiemParse: /오전|오후/,
|
69
|
+
isPM: function (token) {
|
74
70
|
return token === '오후';
|
75
71
|
},
|
76
|
-
meridiem
|
72
|
+
meridiem: function (hour, minute, isUpper) {
|
77
73
|
return hour < 12 ? '오전' : '오후';
|
78
|
-
}
|
74
|
+
},
|
79
75
|
});
|
80
|
-
|
81
|
-
return ko;
|
82
|
-
|
83
|
-
})));
|
@@ -0,0 +1,118 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Kurdish [ku]
|
3
|
+
//! author : Shahram Mebashar : https://github.com/ShahramMebashar
|
4
|
+
|
5
|
+
import moment from '../moment';
|
6
|
+
|
7
|
+
var symbolMap = {
|
8
|
+
1: '١',
|
9
|
+
2: '٢',
|
10
|
+
3: '٣',
|
11
|
+
4: '٤',
|
12
|
+
5: '٥',
|
13
|
+
6: '٦',
|
14
|
+
7: '٧',
|
15
|
+
8: '٨',
|
16
|
+
9: '٩',
|
17
|
+
0: '٠',
|
18
|
+
},
|
19
|
+
numberMap = {
|
20
|
+
'١': '1',
|
21
|
+
'٢': '2',
|
22
|
+
'٣': '3',
|
23
|
+
'٤': '4',
|
24
|
+
'٥': '5',
|
25
|
+
'٦': '6',
|
26
|
+
'٧': '7',
|
27
|
+
'٨': '8',
|
28
|
+
'٩': '9',
|
29
|
+
'٠': '0',
|
30
|
+
},
|
31
|
+
months = [
|
32
|
+
'کانونی دووەم',
|
33
|
+
'شوبات',
|
34
|
+
'ئازار',
|
35
|
+
'نیسان',
|
36
|
+
'ئایار',
|
37
|
+
'حوزەیران',
|
38
|
+
'تەمموز',
|
39
|
+
'ئاب',
|
40
|
+
'ئەیلوول',
|
41
|
+
'تشرینی یەكەم',
|
42
|
+
'تشرینی دووەم',
|
43
|
+
'كانونی یەکەم',
|
44
|
+
];
|
45
|
+
|
46
|
+
export default moment.defineLocale('ku', {
|
47
|
+
months: months,
|
48
|
+
monthsShort: months,
|
49
|
+
weekdays: 'یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه'.split(
|
50
|
+
'_'
|
51
|
+
),
|
52
|
+
weekdaysShort: 'یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه'.split(
|
53
|
+
'_'
|
54
|
+
),
|
55
|
+
weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),
|
56
|
+
weekdaysParseExact: true,
|
57
|
+
longDateFormat: {
|
58
|
+
LT: 'HH:mm',
|
59
|
+
LTS: 'HH:mm:ss',
|
60
|
+
L: 'DD/MM/YYYY',
|
61
|
+
LL: 'D MMMM YYYY',
|
62
|
+
LLL: 'D MMMM YYYY HH:mm',
|
63
|
+
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
64
|
+
},
|
65
|
+
meridiemParse: /ئێواره|بهیانی/,
|
66
|
+
isPM: function (input) {
|
67
|
+
return /ئێواره/.test(input);
|
68
|
+
},
|
69
|
+
meridiem: function (hour, minute, isLower) {
|
70
|
+
if (hour < 12) {
|
71
|
+
return 'بهیانی';
|
72
|
+
} else {
|
73
|
+
return 'ئێواره';
|
74
|
+
}
|
75
|
+
},
|
76
|
+
calendar: {
|
77
|
+
sameDay: '[ئهمرۆ كاتژمێر] LT',
|
78
|
+
nextDay: '[بهیانی كاتژمێر] LT',
|
79
|
+
nextWeek: 'dddd [كاتژمێر] LT',
|
80
|
+
lastDay: '[دوێنێ كاتژمێر] LT',
|
81
|
+
lastWeek: 'dddd [كاتژمێر] LT',
|
82
|
+
sameElse: 'L',
|
83
|
+
},
|
84
|
+
relativeTime: {
|
85
|
+
future: 'له %s',
|
86
|
+
past: '%s',
|
87
|
+
s: 'چهند چركهیهك',
|
88
|
+
ss: 'چركه %d',
|
89
|
+
m: 'یهك خولهك',
|
90
|
+
mm: '%d خولهك',
|
91
|
+
h: 'یهك كاتژمێر',
|
92
|
+
hh: '%d كاتژمێر',
|
93
|
+
d: 'یهك ڕۆژ',
|
94
|
+
dd: '%d ڕۆژ',
|
95
|
+
M: 'یهك مانگ',
|
96
|
+
MM: '%d مانگ',
|
97
|
+
y: 'یهك ساڵ',
|
98
|
+
yy: '%d ساڵ',
|
99
|
+
},
|
100
|
+
preparse: function (string) {
|
101
|
+
return string
|
102
|
+
.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
|
103
|
+
return numberMap[match];
|
104
|
+
})
|
105
|
+
.replace(/،/g, ',');
|
106
|
+
},
|
107
|
+
postformat: function (string) {
|
108
|
+
return string
|
109
|
+
.replace(/\d/g, function (match) {
|
110
|
+
return symbolMap[match];
|
111
|
+
})
|
112
|
+
.replace(/,/g, '،');
|
113
|
+
},
|
114
|
+
week: {
|
115
|
+
dow: 6, // Saturday is the first day of the week.
|
116
|
+
doy: 12, // The week that contains Jan 12th is the first week of the year.
|
117
|
+
},
|
118
|
+
});
|
@@ -2,14 +2,7 @@
|
|
2
2
|
//! locale : Kyrgyz [ky]
|
3
3
|
//! author : Chyngyz Arystan uulu : https://github.com/chyngyz
|
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';
|
11
|
-
|
12
|
-
|
5
|
+
import moment from '../moment';
|
13
6
|
|
14
7
|
var suffixes = {
|
15
8
|
0: '-чү',
|
@@ -31,59 +24,61 @@ var suffixes = {
|
|
31
24
|
70: '-чи',
|
32
25
|
80: '-чи',
|
33
26
|
90: '-чу',
|
34
|
-
100: '-чү'
|
27
|
+
100: '-чү',
|
35
28
|
};
|
36
29
|
|
37
|
-
|
38
|
-
months
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
30
|
+
export default moment.defineLocale('ky', {
|
31
|
+
months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
|
32
|
+
'_'
|
33
|
+
),
|
34
|
+
monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split(
|
35
|
+
'_'
|
36
|
+
),
|
37
|
+
weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split(
|
38
|
+
'_'
|
39
|
+
),
|
40
|
+
weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
|
41
|
+
weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
|
42
|
+
longDateFormat: {
|
43
|
+
LT: 'HH:mm',
|
44
|
+
LTS: 'HH:mm:ss',
|
45
|
+
L: 'DD.MM.YYYY',
|
46
|
+
LL: 'D MMMM YYYY',
|
47
|
+
LLL: 'D MMMM YYYY HH:mm',
|
48
|
+
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
50
49
|
},
|
51
|
-
calendar
|
52
|
-
sameDay
|
53
|
-
nextDay
|
54
|
-
nextWeek
|
55
|
-
lastDay
|
56
|
-
lastWeek
|
57
|
-
sameElse
|
50
|
+
calendar: {
|
51
|
+
sameDay: '[Бүгүн саат] LT',
|
52
|
+
nextDay: '[Эртең саат] LT',
|
53
|
+
nextWeek: 'dddd [саат] LT',
|
54
|
+
lastDay: '[Кечээ саат] LT',
|
55
|
+
lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',
|
56
|
+
sameElse: 'L',
|
58
57
|
},
|
59
|
-
relativeTime
|
60
|
-
future
|
61
|
-
past
|
62
|
-
s
|
63
|
-
ss
|
64
|
-
m
|
65
|
-
mm
|
66
|
-
h
|
67
|
-
hh
|
68
|
-
d
|
69
|
-
dd
|
70
|
-
M
|
71
|
-
MM
|
72
|
-
y
|
73
|
-
yy
|
58
|
+
relativeTime: {
|
59
|
+
future: '%s ичинде',
|
60
|
+
past: '%s мурун',
|
61
|
+
s: 'бирнече секунд',
|
62
|
+
ss: '%d секунд',
|
63
|
+
m: 'бир мүнөт',
|
64
|
+
mm: '%d мүнөт',
|
65
|
+
h: 'бир саат',
|
66
|
+
hh: '%d саат',
|
67
|
+
d: 'бир күн',
|
68
|
+
dd: '%d күн',
|
69
|
+
M: 'бир ай',
|
70
|
+
MM: '%d ай',
|
71
|
+
y: 'бир жыл',
|
72
|
+
yy: '%d жыл',
|
74
73
|
},
|
75
74
|
dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
|
76
|
-
ordinal
|
75
|
+
ordinal: function (number) {
|
77
76
|
var a = number % 10,
|
78
77
|
b = number >= 100 ? 100 : null;
|
79
78
|
return number + (suffixes[number] || suffixes[a] || suffixes[b]);
|
80
79
|
},
|
81
|
-
week
|
82
|
-
dow
|
83
|
-
doy
|
84
|
-
}
|
80
|
+
week: {
|
81
|
+
dow: 1, // Monday is the first day of the week.
|
82
|
+
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
83
|
+
},
|
85
84
|
});
|
86
|
-
|
87
|
-
return ky;
|
88
|
-
|
89
|
-
})));
|