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,77 +2,120 @@
|
|
2
2
|
//! locale : Hindi [hi]
|
3
3
|
//! author : Mayank Singhal : https://github.com/mayanksinghal
|
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
|
+
},
|
31
|
+
monthsParse = [
|
32
|
+
/^जन/i,
|
33
|
+
/^फ़र|फर/i,
|
34
|
+
/^मार्च/i,
|
35
|
+
/^अप्रै/i,
|
36
|
+
/^मई/i,
|
37
|
+
/^जून/i,
|
38
|
+
/^जुल/i,
|
39
|
+
/^अग/i,
|
40
|
+
/^सितं|सित/i,
|
41
|
+
/^अक्टू/i,
|
42
|
+
/^नव|नवं/i,
|
43
|
+
/^दिसं|दिस/i,
|
44
|
+
],
|
45
|
+
shortMonthsParse = [
|
46
|
+
/^जन/i,
|
47
|
+
/^फ़र/i,
|
48
|
+
/^मार्च/i,
|
49
|
+
/^अप्रै/i,
|
50
|
+
/^मई/i,
|
51
|
+
/^जून/i,
|
52
|
+
/^जुल/i,
|
53
|
+
/^अग/i,
|
54
|
+
/^सित/i,
|
55
|
+
/^अक्टू/i,
|
56
|
+
/^नव/i,
|
57
|
+
/^दिस/i,
|
58
|
+
];
|
37
59
|
|
38
|
-
|
39
|
-
months
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
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 बजे'
|
60
|
+
export default moment.defineLocale('hi', {
|
61
|
+
months: {
|
62
|
+
format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split(
|
63
|
+
'_'
|
64
|
+
),
|
65
|
+
standalone: 'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split(
|
66
|
+
'_'
|
67
|
+
),
|
52
68
|
},
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
69
|
+
monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split(
|
70
|
+
'_'
|
71
|
+
),
|
72
|
+
weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
|
73
|
+
weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
|
74
|
+
weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
|
75
|
+
longDateFormat: {
|
76
|
+
LT: 'A h:mm बजे',
|
77
|
+
LTS: 'A h:mm:ss बजे',
|
78
|
+
L: 'DD/MM/YYYY',
|
79
|
+
LL: 'D MMMM YYYY',
|
80
|
+
LLL: 'D MMMM YYYY, A h:mm बजे',
|
81
|
+
LLLL: 'dddd, D MMMM YYYY, A h:mm बजे',
|
60
82
|
},
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
83
|
+
|
84
|
+
monthsParse: monthsParse,
|
85
|
+
longMonthsParse: monthsParse,
|
86
|
+
shortMonthsParse: shortMonthsParse,
|
87
|
+
|
88
|
+
monthsRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
|
89
|
+
|
90
|
+
monthsShortRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
|
91
|
+
|
92
|
+
monthsStrictRegex: /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,
|
93
|
+
|
94
|
+
monthsShortStrictRegex: /^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,
|
95
|
+
|
96
|
+
calendar: {
|
97
|
+
sameDay: '[आज] LT',
|
98
|
+
nextDay: '[कल] LT',
|
99
|
+
nextWeek: 'dddd, LT',
|
100
|
+
lastDay: '[कल] LT',
|
101
|
+
lastWeek: '[पिछले] dddd, LT',
|
102
|
+
sameElse: 'L',
|
103
|
+
},
|
104
|
+
relativeTime: {
|
105
|
+
future: '%s में',
|
106
|
+
past: '%s पहले',
|
107
|
+
s: 'कुछ ही क्षण',
|
108
|
+
ss: '%d सेकंड',
|
109
|
+
m: 'एक मिनट',
|
110
|
+
mm: '%d मिनट',
|
111
|
+
h: 'एक घंटा',
|
112
|
+
hh: '%d घंटे',
|
113
|
+
d: 'एक दिन',
|
114
|
+
dd: '%d दिन',
|
115
|
+
M: 'एक महीने',
|
116
|
+
MM: '%d महीने',
|
117
|
+
y: 'एक वर्ष',
|
118
|
+
yy: '%d वर्ष',
|
76
119
|
},
|
77
120
|
preparse: function (string) {
|
78
121
|
return string.replace(/[१२३४५६७८९०]/g, function (match) {
|
@@ -87,7 +130,7 @@ var hi = moment.defineLocale('hi', {
|
|
87
130
|
// Hindi notation for meridiems are quite fuzzy in practice. While there exists
|
88
131
|
// a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
|
89
132
|
meridiemParse: /रात|सुबह|दोपहर|शाम/,
|
90
|
-
meridiemHour
|
133
|
+
meridiemHour: function (hour, meridiem) {
|
91
134
|
if (hour === 12) {
|
92
135
|
hour = 0;
|
93
136
|
}
|
@@ -101,7 +144,7 @@ var hi = moment.defineLocale('hi', {
|
|
101
144
|
return hour + 12;
|
102
145
|
}
|
103
146
|
},
|
104
|
-
meridiem
|
147
|
+
meridiem: function (hour, minute, isLower) {
|
105
148
|
if (hour < 4) {
|
106
149
|
return 'रात';
|
107
150
|
} else if (hour < 10) {
|
@@ -114,12 +157,8 @@ var hi = moment.defineLocale('hi', {
|
|
114
157
|
return 'रात';
|
115
158
|
}
|
116
159
|
},
|
117
|
-
week
|
118
|
-
dow
|
119
|
-
doy
|
120
|
-
}
|
160
|
+
week: {
|
161
|
+
dow: 0, // Sunday is the first day of the week.
|
162
|
+
doy: 6, // The week that contains Jan 6th is the first week of the year.
|
163
|
+
},
|
121
164
|
});
|
122
|
-
|
123
|
-
return hi;
|
124
|
-
|
125
|
-
})));
|
@@ -2,13 +2,7 @@
|
|
2
2
|
//! locale : Croatian [hr]
|
3
3
|
//! author : Bojan Marković : https://github.com/bmarkovic
|
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
|
function translate(number, withoutSuffix, key) {
|
14
8
|
var result = number + ' ';
|
@@ -72,29 +66,37 @@ function translate(number, withoutSuffix, key) {
|
|
72
66
|
}
|
73
67
|
}
|
74
68
|
|
75
|
-
|
76
|
-
months
|
77
|
-
format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(
|
78
|
-
|
69
|
+
export default moment.defineLocale('hr', {
|
70
|
+
months: {
|
71
|
+
format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(
|
72
|
+
'_'
|
73
|
+
),
|
74
|
+
standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(
|
75
|
+
'_'
|
76
|
+
),
|
79
77
|
},
|
80
|
-
monthsShort
|
78
|
+
monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(
|
79
|
+
'_'
|
80
|
+
),
|
81
81
|
monthsParseExact: true,
|
82
|
-
weekdays
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
82
|
+
weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
|
83
|
+
'_'
|
84
|
+
),
|
85
|
+
weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
|
86
|
+
weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
|
87
|
+
weekdaysParseExact: true,
|
88
|
+
longDateFormat: {
|
89
|
+
LT: 'H:mm',
|
90
|
+
LTS: 'H:mm:ss',
|
91
|
+
L: 'DD.MM.YYYY',
|
92
|
+
LL: 'Do MMMM YYYY',
|
93
|
+
LLL: 'Do MMMM YYYY H:mm',
|
94
|
+
LLLL: 'dddd, Do MMMM YYYY H:mm',
|
93
95
|
},
|
94
|
-
calendar
|
95
|
-
sameDay
|
96
|
-
nextDay
|
97
|
-
nextWeek
|
96
|
+
calendar: {
|
97
|
+
sameDay: '[danas u] LT',
|
98
|
+
nextDay: '[sutra u] LT',
|
99
|
+
nextWeek: function () {
|
98
100
|
switch (this.day()) {
|
99
101
|
case 0:
|
100
102
|
return '[u] [nedjelju] [u] LT';
|
@@ -109,12 +111,13 @@ var hr = moment.defineLocale('hr', {
|
|
109
111
|
return '[u] dddd [u] LT';
|
110
112
|
}
|
111
113
|
},
|
112
|
-
lastDay
|
113
|
-
lastWeek
|
114
|
+
lastDay: '[jučer u] LT',
|
115
|
+
lastWeek: function () {
|
114
116
|
switch (this.day()) {
|
115
117
|
case 0:
|
118
|
+
return '[prošlu] [nedjelju] [u] LT';
|
116
119
|
case 3:
|
117
|
-
return '[prošlu]
|
120
|
+
return '[prošlu] [srijedu] [u] LT';
|
118
121
|
case 6:
|
119
122
|
return '[prošle] [subote] [u] LT';
|
120
123
|
case 1:
|
@@ -124,32 +127,28 @@ var hr = moment.defineLocale('hr', {
|
|
124
127
|
return '[prošli] dddd [u] LT';
|
125
128
|
}
|
126
129
|
},
|
127
|
-
sameElse
|
130
|
+
sameElse: 'L',
|
128
131
|
},
|
129
|
-
relativeTime
|
130
|
-
future
|
131
|
-
past
|
132
|
-
s
|
133
|
-
ss
|
134
|
-
m
|
135
|
-
mm
|
136
|
-
h
|
137
|
-
hh
|
138
|
-
d
|
139
|
-
dd
|
140
|
-
M
|
141
|
-
MM
|
142
|
-
y
|
143
|
-
yy
|
132
|
+
relativeTime: {
|
133
|
+
future: 'za %s',
|
134
|
+
past: 'prije %s',
|
135
|
+
s: 'par sekundi',
|
136
|
+
ss: translate,
|
137
|
+
m: translate,
|
138
|
+
mm: translate,
|
139
|
+
h: translate,
|
140
|
+
hh: translate,
|
141
|
+
d: 'dan',
|
142
|
+
dd: translate,
|
143
|
+
M: 'mjesec',
|
144
|
+
MM: translate,
|
145
|
+
y: 'godinu',
|
146
|
+
yy: translate,
|
144
147
|
},
|
145
148
|
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
146
|
-
ordinal
|
147
|
-
week
|
148
|
-
dow
|
149
|
-
doy
|
150
|
-
}
|
149
|
+
ordinal: '%d.',
|
150
|
+
week: {
|
151
|
+
dow: 1, // Monday is the first day of the week.
|
152
|
+
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
153
|
+
},
|
151
154
|
});
|
152
|
-
|
153
|
-
return hr;
|
154
|
-
|
155
|
-
})));
|
@@ -1,23 +1,24 @@
|
|
1
1
|
//! moment.js locale configuration
|
2
2
|
//! locale : Hungarian [hu]
|
3
3
|
//! author : Adam Brunner : https://github.com/adambrunner
|
4
|
+
//! author : Peter Viszt : https://github.com/passatgt
|
4
5
|
|
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';
|
6
|
+
import moment from '../moment';
|
11
7
|
|
12
|
-
|
13
|
-
|
8
|
+
var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(
|
9
|
+
' '
|
10
|
+
);
|
14
11
|
function translate(number, withoutSuffix, key, isFuture) {
|
15
12
|
var num = number;
|
16
13
|
switch (key) {
|
17
14
|
case 's':
|
18
|
-
return
|
15
|
+
return isFuture || withoutSuffix
|
16
|
+
? 'néhány másodperc'
|
17
|
+
: 'néhány másodperce';
|
19
18
|
case 'ss':
|
20
|
-
return num + (isFuture || withoutSuffix)
|
19
|
+
return num + (isFuture || withoutSuffix)
|
20
|
+
? ' másodperc'
|
21
|
+
: ' másodperce';
|
21
22
|
case 'm':
|
22
23
|
return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
|
23
24
|
case 'mm':
|
@@ -42,70 +43,76 @@ function translate(number, withoutSuffix, key, isFuture) {
|
|
42
43
|
return '';
|
43
44
|
}
|
44
45
|
function week(isFuture) {
|
45
|
-
return (
|
46
|
+
return (
|
47
|
+
(isFuture ? '' : '[múlt] ') +
|
48
|
+
'[' +
|
49
|
+
weekEndings[this.day()] +
|
50
|
+
'] LT[-kor]'
|
51
|
+
);
|
46
52
|
}
|
47
53
|
|
48
|
-
|
49
|
-
months
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
54
|
+
export default moment.defineLocale('hu', {
|
55
|
+
months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(
|
56
|
+
'_'
|
57
|
+
),
|
58
|
+
monthsShort: 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split(
|
59
|
+
'_'
|
60
|
+
),
|
61
|
+
monthsParseExact: true,
|
62
|
+
weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
|
63
|
+
weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
|
64
|
+
weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
|
65
|
+
longDateFormat: {
|
66
|
+
LT: 'H:mm',
|
67
|
+
LTS: 'H:mm:ss',
|
68
|
+
L: 'YYYY.MM.DD.',
|
69
|
+
LL: 'YYYY. MMMM D.',
|
70
|
+
LLL: 'YYYY. MMMM D. H:mm',
|
71
|
+
LLLL: 'YYYY. MMMM D., dddd H:mm',
|
61
72
|
},
|
62
73
|
meridiemParse: /de|du/i,
|
63
74
|
isPM: function (input) {
|
64
75
|
return input.charAt(1).toLowerCase() === 'u';
|
65
76
|
},
|
66
|
-
meridiem
|
77
|
+
meridiem: function (hours, minutes, isLower) {
|
67
78
|
if (hours < 12) {
|
68
79
|
return isLower === true ? 'de' : 'DE';
|
69
80
|
} else {
|
70
81
|
return isLower === true ? 'du' : 'DU';
|
71
82
|
}
|
72
83
|
},
|
73
|
-
calendar
|
74
|
-
sameDay
|
75
|
-
nextDay
|
76
|
-
nextWeek
|
84
|
+
calendar: {
|
85
|
+
sameDay: '[ma] LT[-kor]',
|
86
|
+
nextDay: '[holnap] LT[-kor]',
|
87
|
+
nextWeek: function () {
|
77
88
|
return week.call(this, true);
|
78
89
|
},
|
79
|
-
lastDay
|
80
|
-
lastWeek
|
90
|
+
lastDay: '[tegnap] LT[-kor]',
|
91
|
+
lastWeek: function () {
|
81
92
|
return week.call(this, false);
|
82
93
|
},
|
83
|
-
sameElse
|
94
|
+
sameElse: 'L',
|
84
95
|
},
|
85
|
-
relativeTime
|
86
|
-
future
|
87
|
-
past
|
88
|
-
s
|
89
|
-
ss
|
90
|
-
m
|
91
|
-
mm
|
92
|
-
h
|
93
|
-
hh
|
94
|
-
d
|
95
|
-
dd
|
96
|
-
M
|
97
|
-
MM
|
98
|
-
y
|
99
|
-
yy
|
96
|
+
relativeTime: {
|
97
|
+
future: '%s múlva',
|
98
|
+
past: '%s',
|
99
|
+
s: translate,
|
100
|
+
ss: translate,
|
101
|
+
m: translate,
|
102
|
+
mm: translate,
|
103
|
+
h: translate,
|
104
|
+
hh: translate,
|
105
|
+
d: translate,
|
106
|
+
dd: translate,
|
107
|
+
M: translate,
|
108
|
+
MM: translate,
|
109
|
+
y: translate,
|
110
|
+
yy: translate,
|
100
111
|
},
|
101
112
|
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
102
|
-
ordinal
|
103
|
-
week
|
104
|
-
dow
|
105
|
-
doy
|
106
|
-
}
|
113
|
+
ordinal: '%d.',
|
114
|
+
week: {
|
115
|
+
dow: 1, // Monday is the first day of the week.
|
116
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
117
|
+
},
|
107
118
|
});
|
108
|
-
|
109
|
-
return hu;
|
110
|
-
|
111
|
-
})));
|
@@ -2,32 +2,32 @@
|
|
2
2
|
//! locale : Armenian [hy-am]
|
3
3
|
//! author : Armendarabyan : https://github.com/armendarabyan
|
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
|
-
|
7
|
+
export default moment.defineLocale('hy-am', {
|
8
|
+
months: {
|
9
|
+
format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split(
|
10
|
+
'_'
|
11
|
+
),
|
12
|
+
standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split(
|
13
|
+
'_'
|
14
|
+
),
|
17
15
|
},
|
18
|
-
monthsShort
|
19
|
-
weekdays
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
16
|
+
monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
|
17
|
+
weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split(
|
18
|
+
'_'
|
19
|
+
),
|
20
|
+
weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
|
21
|
+
weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
|
22
|
+
longDateFormat: {
|
23
|
+
LT: 'HH:mm',
|
24
|
+
LTS: 'HH:mm:ss',
|
25
|
+
L: 'DD.MM.YYYY',
|
26
|
+
LL: 'D MMMM YYYY թ.',
|
27
|
+
LLL: 'D MMMM YYYY թ., HH:mm',
|
28
|
+
LLLL: 'dddd, D MMMM YYYY թ., HH:mm',
|
29
29
|
},
|
30
|
-
calendar
|
30
|
+
calendar: {
|
31
31
|
sameDay: '[այսօր] LT',
|
32
32
|
nextDay: '[վաղը] LT',
|
33
33
|
lastDay: '[երեկ] LT',
|
@@ -37,29 +37,29 @@ var hyAm = moment.defineLocale('hy-am', {
|
|
37
37
|
lastWeek: function () {
|
38
38
|
return '[անցած] dddd [օրը ժամը] LT';
|
39
39
|
},
|
40
|
-
sameElse: 'L'
|
40
|
+
sameElse: 'L',
|
41
41
|
},
|
42
|
-
relativeTime
|
43
|
-
future
|
44
|
-
past
|
45
|
-
s
|
46
|
-
ss
|
47
|
-
m
|
48
|
-
mm
|
49
|
-
h
|
50
|
-
hh
|
51
|
-
d
|
52
|
-
dd
|
53
|
-
M
|
54
|
-
MM
|
55
|
-
y
|
56
|
-
yy
|
42
|
+
relativeTime: {
|
43
|
+
future: '%s հետո',
|
44
|
+
past: '%s առաջ',
|
45
|
+
s: 'մի քանի վայրկյան',
|
46
|
+
ss: '%d վայրկյան',
|
47
|
+
m: 'րոպե',
|
48
|
+
mm: '%d րոպե',
|
49
|
+
h: 'ժամ',
|
50
|
+
hh: '%d ժամ',
|
51
|
+
d: 'օր',
|
52
|
+
dd: '%d օր',
|
53
|
+
M: 'ամիս',
|
54
|
+
MM: '%d ամիս',
|
55
|
+
y: 'տարի',
|
56
|
+
yy: '%d տարի',
|
57
57
|
},
|
58
58
|
meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
|
59
59
|
isPM: function (input) {
|
60
60
|
return /^(ցերեկվա|երեկոյան)$/.test(input);
|
61
61
|
},
|
62
|
-
meridiem
|
62
|
+
meridiem: function (hour) {
|
63
63
|
if (hour < 4) {
|
64
64
|
return 'գիշերվա';
|
65
65
|
} else if (hour < 12) {
|
@@ -85,12 +85,8 @@ var hyAm = moment.defineLocale('hy-am', {
|
|
85
85
|
return number;
|
86
86
|
}
|
87
87
|
},
|
88
|
-
week
|
89
|
-
dow
|
90
|
-
doy
|
91
|
-
}
|
88
|
+
week: {
|
89
|
+
dow: 1, // Monday is the first day of the week.
|
90
|
+
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
91
|
+
},
|
92
92
|
});
|
93
|
-
|
94
|
-
return hyAm;
|
95
|
-
|
96
|
-
})));
|