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,66 +2,66 @@
|
|
2
2
|
//! locale : Bulgarian [bg]
|
3
3
|
//! author : Krasen Borisov : https://github.com/kraz
|
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('bg', {
|
8
|
+
months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(
|
9
|
+
'_'
|
10
|
+
),
|
11
|
+
monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
|
12
|
+
weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(
|
13
|
+
'_'
|
14
|
+
),
|
15
|
+
weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
|
16
|
+
weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
|
17
|
+
longDateFormat: {
|
18
|
+
LT: 'H:mm',
|
19
|
+
LTS: 'H:mm:ss',
|
20
|
+
L: 'D.MM.YYYY',
|
21
|
+
LL: 'D MMMM YYYY',
|
22
|
+
LLL: 'D MMMM YYYY H:mm',
|
23
|
+
LLLL: 'dddd, D MMMM YYYY H:mm',
|
26
24
|
},
|
27
|
-
calendar
|
28
|
-
sameDay
|
29
|
-
nextDay
|
30
|
-
nextWeek
|
31
|
-
lastDay
|
32
|
-
lastWeek
|
25
|
+
calendar: {
|
26
|
+
sameDay: '[Днес в] LT',
|
27
|
+
nextDay: '[Утре в] LT',
|
28
|
+
nextWeek: 'dddd [в] LT',
|
29
|
+
lastDay: '[Вчера в] LT',
|
30
|
+
lastWeek: function () {
|
33
31
|
switch (this.day()) {
|
34
32
|
case 0:
|
35
33
|
case 3:
|
36
34
|
case 6:
|
37
|
-
return '[
|
35
|
+
return '[Миналата] dddd [в] LT';
|
38
36
|
case 1:
|
39
37
|
case 2:
|
40
38
|
case 4:
|
41
39
|
case 5:
|
42
|
-
return '[
|
40
|
+
return '[Миналия] dddd [в] LT';
|
43
41
|
}
|
44
42
|
},
|
45
|
-
sameElse
|
43
|
+
sameElse: 'L',
|
46
44
|
},
|
47
|
-
relativeTime
|
48
|
-
future
|
49
|
-
past
|
50
|
-
s
|
51
|
-
ss
|
52
|
-
m
|
53
|
-
mm
|
54
|
-
h
|
55
|
-
hh
|
56
|
-
d
|
57
|
-
dd
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
45
|
+
relativeTime: {
|
46
|
+
future: 'след %s',
|
47
|
+
past: 'преди %s',
|
48
|
+
s: 'няколко секунди',
|
49
|
+
ss: '%d секунди',
|
50
|
+
m: 'минута',
|
51
|
+
mm: '%d минути',
|
52
|
+
h: 'час',
|
53
|
+
hh: '%d часа',
|
54
|
+
d: 'ден',
|
55
|
+
dd: '%d дена',
|
56
|
+
w: 'седмица',
|
57
|
+
ww: '%d седмици',
|
58
|
+
M: 'месец',
|
59
|
+
MM: '%d месеца',
|
60
|
+
y: 'година',
|
61
|
+
yy: '%d години',
|
62
62
|
},
|
63
63
|
dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
|
64
|
-
ordinal
|
64
|
+
ordinal: function (number) {
|
65
65
|
var lastDigit = number % 10,
|
66
66
|
last2Digits = number % 100;
|
67
67
|
if (number === 0) {
|
@@ -80,12 +80,8 @@ var bg = moment.defineLocale('bg', {
|
|
80
80
|
return number + '-ти';
|
81
81
|
}
|
82
82
|
},
|
83
|
-
week
|
84
|
-
dow
|
85
|
-
doy
|
86
|
-
}
|
83
|
+
week: {
|
84
|
+
dow: 1, // Monday is the first day of the week.
|
85
|
+
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
86
|
+
},
|
87
87
|
});
|
88
|
-
|
89
|
-
return bg;
|
90
|
-
|
91
|
-
})));
|
@@ -1,60 +1,52 @@
|
|
1
1
|
//! moment.js locale configuration
|
2
2
|
//! locale : Bambara [bm]
|
3
3
|
//! author : Estelle Comment : https://github.com/estellecomment
|
4
|
-
|
5
|
-
;(function (global, factory) {
|
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
4
|
// Language contact person : Abdoufata Kane : https://github.com/abdoufata
|
13
5
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
6
|
+
import moment from '../moment';
|
7
|
+
|
8
|
+
export default moment.defineLocale('bm', {
|
9
|
+
months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(
|
10
|
+
'_'
|
11
|
+
),
|
12
|
+
monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
|
13
|
+
weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
|
14
|
+
weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
|
15
|
+
weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
|
16
|
+
longDateFormat: {
|
17
|
+
LT: 'HH:mm',
|
18
|
+
LTS: 'HH:mm:ss',
|
19
|
+
L: 'DD/MM/YYYY',
|
20
|
+
LL: 'MMMM [tile] D [san] YYYY',
|
21
|
+
LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
|
22
|
+
LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
|
27
23
|
},
|
28
|
-
calendar
|
29
|
-
sameDay
|
30
|
-
nextDay
|
31
|
-
nextWeek
|
32
|
-
lastDay
|
33
|
-
lastWeek
|
34
|
-
sameElse
|
24
|
+
calendar: {
|
25
|
+
sameDay: '[Bi lɛrɛ] LT',
|
26
|
+
nextDay: '[Sini lɛrɛ] LT',
|
27
|
+
nextWeek: 'dddd [don lɛrɛ] LT',
|
28
|
+
lastDay: '[Kunu lɛrɛ] LT',
|
29
|
+
lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
|
30
|
+
sameElse: 'L',
|
35
31
|
},
|
36
|
-
relativeTime
|
37
|
-
future
|
38
|
-
past
|
39
|
-
s
|
40
|
-
ss
|
41
|
-
m
|
42
|
-
mm
|
43
|
-
h
|
44
|
-
hh
|
45
|
-
d
|
46
|
-
dd
|
47
|
-
M
|
48
|
-
MM
|
49
|
-
y
|
50
|
-
yy
|
32
|
+
relativeTime: {
|
33
|
+
future: '%s kɔnɔ',
|
34
|
+
past: 'a bɛ %s bɔ',
|
35
|
+
s: 'sanga dama dama',
|
36
|
+
ss: 'sekondi %d',
|
37
|
+
m: 'miniti kelen',
|
38
|
+
mm: 'miniti %d',
|
39
|
+
h: 'lɛrɛ kelen',
|
40
|
+
hh: 'lɛrɛ %d',
|
41
|
+
d: 'tile kelen',
|
42
|
+
dd: 'tile %d',
|
43
|
+
M: 'kalo kelen',
|
44
|
+
MM: 'kalo %d',
|
45
|
+
y: 'san kelen',
|
46
|
+
yy: 'san %d',
|
47
|
+
},
|
48
|
+
week: {
|
49
|
+
dow: 1, // Monday is the first day of the week.
|
50
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
51
51
|
},
|
52
|
-
week : {
|
53
|
-
dow : 1, // Monday is the first day of the week.
|
54
|
-
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
55
|
-
}
|
56
52
|
});
|
57
|
-
|
58
|
-
return bm;
|
59
|
-
|
60
|
-
})));
|
@@ -0,0 +1,128 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Bengali (Bangladesh) [bn-bd]
|
3
|
+
//! author : Asraf Hossain Patoary : https://github.com/ashwoolford
|
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
|
+
|
32
|
+
export default moment.defineLocale('bn-bd', {
|
33
|
+
months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
|
34
|
+
'_'
|
35
|
+
),
|
36
|
+
monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
|
37
|
+
'_'
|
38
|
+
),
|
39
|
+
weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
|
40
|
+
'_'
|
41
|
+
),
|
42
|
+
weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
|
43
|
+
weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
|
44
|
+
longDateFormat: {
|
45
|
+
LT: 'A h:mm সময়',
|
46
|
+
LTS: 'A h:mm:ss সময়',
|
47
|
+
L: 'DD/MM/YYYY',
|
48
|
+
LL: 'D MMMM YYYY',
|
49
|
+
LLL: 'D MMMM YYYY, A h:mm সময়',
|
50
|
+
LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
|
51
|
+
},
|
52
|
+
calendar: {
|
53
|
+
sameDay: '[আজ] LT',
|
54
|
+
nextDay: '[আগামীকাল] LT',
|
55
|
+
nextWeek: 'dddd, LT',
|
56
|
+
lastDay: '[গতকাল] LT',
|
57
|
+
lastWeek: '[গত] dddd, LT',
|
58
|
+
sameElse: 'L',
|
59
|
+
},
|
60
|
+
relativeTime: {
|
61
|
+
future: '%s পরে',
|
62
|
+
past: '%s আগে',
|
63
|
+
s: 'কয়েক সেকেন্ড',
|
64
|
+
ss: '%d সেকেন্ড',
|
65
|
+
m: 'এক মিনিট',
|
66
|
+
mm: '%d মিনিট',
|
67
|
+
h: 'এক ঘন্টা',
|
68
|
+
hh: '%d ঘন্টা',
|
69
|
+
d: 'এক দিন',
|
70
|
+
dd: '%d দিন',
|
71
|
+
M: 'এক মাস',
|
72
|
+
MM: '%d মাস',
|
73
|
+
y: 'এক বছর',
|
74
|
+
yy: '%d বছর',
|
75
|
+
},
|
76
|
+
preparse: function (string) {
|
77
|
+
return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
|
78
|
+
return numberMap[match];
|
79
|
+
});
|
80
|
+
},
|
81
|
+
postformat: function (string) {
|
82
|
+
return string.replace(/\d/g, function (match) {
|
83
|
+
return symbolMap[match];
|
84
|
+
});
|
85
|
+
},
|
86
|
+
|
87
|
+
meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,
|
88
|
+
meridiemHour: function (hour, meridiem) {
|
89
|
+
if (hour === 12) {
|
90
|
+
hour = 0;
|
91
|
+
}
|
92
|
+
if (meridiem === 'রাত') {
|
93
|
+
return hour < 4 ? hour : hour + 12;
|
94
|
+
} else if (meridiem === 'ভোর') {
|
95
|
+
return hour;
|
96
|
+
} else if (meridiem === 'সকাল') {
|
97
|
+
return hour;
|
98
|
+
} else if (meridiem === 'দুপুর') {
|
99
|
+
return hour >= 3 ? hour : hour + 12;
|
100
|
+
} else if (meridiem === 'বিকাল') {
|
101
|
+
return hour + 12;
|
102
|
+
} else if (meridiem === 'সন্ধ্যা') {
|
103
|
+
return hour + 12;
|
104
|
+
}
|
105
|
+
},
|
106
|
+
|
107
|
+
meridiem: function (hour, minute, isLower) {
|
108
|
+
if (hour < 4) {
|
109
|
+
return 'রাত';
|
110
|
+
} else if (hour < 6) {
|
111
|
+
return 'ভোর';
|
112
|
+
} else if (hour < 12) {
|
113
|
+
return 'সকাল';
|
114
|
+
} else if (hour < 15) {
|
115
|
+
return 'দুপুর';
|
116
|
+
} else if (hour < 18) {
|
117
|
+
return 'বিকাল';
|
118
|
+
} else if (hour < 20) {
|
119
|
+
return 'সন্ধ্যা';
|
120
|
+
} else {
|
121
|
+
return 'রাত';
|
122
|
+
}
|
123
|
+
},
|
124
|
+
week: {
|
125
|
+
dow: 0, // Sunday is the first day of the week.
|
126
|
+
doy: 6, // The week that contains Jan 6th is the first week of the year.
|
127
|
+
},
|
128
|
+
});
|
@@ -2,76 +2,76 @@
|
|
2
2
|
//! locale : Bengali [bn]
|
3
3
|
//! author : Kaushik Gandhi : https://github.com/kaushikgandhi
|
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
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
32
|
+
export default moment.defineLocale('bn', {
|
33
|
+
months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
|
34
|
+
'_'
|
35
|
+
),
|
36
|
+
monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
|
37
|
+
'_'
|
38
|
+
),
|
39
|
+
weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
|
40
|
+
'_'
|
41
|
+
),
|
42
|
+
weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
|
43
|
+
weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
|
44
|
+
longDateFormat: {
|
45
|
+
LT: 'A h:mm সময়',
|
46
|
+
LTS: 'A h:mm:ss সময়',
|
47
|
+
L: 'DD/MM/YYYY',
|
48
|
+
LL: 'D MMMM YYYY',
|
49
|
+
LLL: 'D MMMM YYYY, A h:mm সময়',
|
50
|
+
LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
|
51
51
|
},
|
52
|
-
calendar
|
53
|
-
sameDay
|
54
|
-
nextDay
|
55
|
-
nextWeek
|
56
|
-
lastDay
|
57
|
-
lastWeek
|
58
|
-
sameElse
|
52
|
+
calendar: {
|
53
|
+
sameDay: '[আজ] LT',
|
54
|
+
nextDay: '[আগামীকাল] LT',
|
55
|
+
nextWeek: 'dddd, LT',
|
56
|
+
lastDay: '[গতকাল] LT',
|
57
|
+
lastWeek: '[গত] dddd, LT',
|
58
|
+
sameElse: 'L',
|
59
59
|
},
|
60
|
-
relativeTime
|
61
|
-
future
|
62
|
-
past
|
63
|
-
s
|
64
|
-
ss
|
65
|
-
m
|
66
|
-
mm
|
67
|
-
h
|
68
|
-
hh
|
69
|
-
d
|
70
|
-
dd
|
71
|
-
M
|
72
|
-
MM
|
73
|
-
y
|
74
|
-
yy
|
60
|
+
relativeTime: {
|
61
|
+
future: '%s পরে',
|
62
|
+
past: '%s আগে',
|
63
|
+
s: 'কয়েক সেকেন্ড',
|
64
|
+
ss: '%d সেকেন্ড',
|
65
|
+
m: 'এক মিনিট',
|
66
|
+
mm: '%d মিনিট',
|
67
|
+
h: 'এক ঘন্টা',
|
68
|
+
hh: '%d ঘন্টা',
|
69
|
+
d: 'এক দিন',
|
70
|
+
dd: '%d দিন',
|
71
|
+
M: 'এক মাস',
|
72
|
+
MM: '%d মাস',
|
73
|
+
y: 'এক বছর',
|
74
|
+
yy: '%d বছর',
|
75
75
|
},
|
76
76
|
preparse: function (string) {
|
77
77
|
return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
|
@@ -84,19 +84,21 @@ var bn = moment.defineLocale('bn', {
|
|
84
84
|
});
|
85
85
|
},
|
86
86
|
meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
|
87
|
-
meridiemHour
|
87
|
+
meridiemHour: function (hour, meridiem) {
|
88
88
|
if (hour === 12) {
|
89
89
|
hour = 0;
|
90
90
|
}
|
91
|
-
if (
|
92
|
-
|
93
|
-
|
91
|
+
if (
|
92
|
+
(meridiem === 'রাত' && hour >= 4) ||
|
93
|
+
(meridiem === 'দুপুর' && hour < 5) ||
|
94
|
+
meridiem === 'বিকাল'
|
95
|
+
) {
|
94
96
|
return hour + 12;
|
95
97
|
} else {
|
96
98
|
return hour;
|
97
99
|
}
|
98
100
|
},
|
99
|
-
meridiem
|
101
|
+
meridiem: function (hour, minute, isLower) {
|
100
102
|
if (hour < 4) {
|
101
103
|
return 'রাত';
|
102
104
|
} else if (hour < 10) {
|
@@ -109,12 +111,8 @@ var bn = moment.defineLocale('bn', {
|
|
109
111
|
return 'রাত';
|
110
112
|
}
|
111
113
|
},
|
112
|
-
week
|
113
|
-
dow
|
114
|
-
doy
|
115
|
-
}
|
114
|
+
week: {
|
115
|
+
dow: 0, // Sunday is the first day of the week.
|
116
|
+
doy: 6, // The week that contains Jan 6th is the first week of the year.
|
117
|
+
},
|
116
118
|
});
|
117
|
-
|
118
|
-
return bn;
|
119
|
-
|
120
|
-
})));
|