momentjs-rails 2.9.0 → 2.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/MIT-LICENSE +1 -1
- data/README.md +13 -11
- data/news.md +24 -7
- 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
- data/test/integration/navigation_test.rb +1 -2
- data/vendor/assets/javascripts/moment/af.js +72 -69
- data/vendor/assets/javascripts/moment/ar-dz.js +60 -0
- data/vendor/assets/javascripts/moment/ar-kw.js +60 -0
- data/vendor/assets/javascripts/moment/ar-ly.js +127 -0
- data/vendor/assets/javascripts/moment/ar-ma.js +59 -55
- data/vendor/assets/javascripts/moment/ar-sa.js +103 -98
- data/vendor/assets/javascripts/moment/ar-tn.js +58 -53
- data/vendor/assets/javascripts/moment/ar.js +140 -131
- data/vendor/assets/javascripts/moment/az.js +100 -101
- data/vendor/assets/javascripts/moment/be.js +106 -125
- data/vendor/assets/javascripts/moment/bg.js +78 -75
- data/vendor/assets/javascripts/moment/bm.js +60 -0
- data/vendor/assets/javascripts/moment/bn.js +117 -108
- data/vendor/assets/javascripts/moment/bo.js +117 -105
- data/vendor/assets/javascripts/moment/br.js +92 -92
- data/vendor/assets/javascripts/moment/bs.js +81 -68
- data/vendor/assets/javascripts/moment/ca.js +83 -71
- data/vendor/assets/javascripts/moment/cs.js +102 -79
- data/vendor/assets/javascripts/moment/cv.js +62 -59
- data/vendor/assets/javascripts/moment/cy.js +78 -75
- data/vendor/assets/javascripts/moment/da.js +59 -56
- data/vendor/assets/javascripts/moment/de-at.js +77 -71
- data/vendor/assets/javascripts/moment/de-ch.js +79 -0
- data/vendor/assets/javascripts/moment/de.js +76 -70
- data/vendor/assets/javascripts/moment/dv.js +101 -0
- data/vendor/assets/javascripts/moment/el.js +96 -89
- data/vendor/assets/javascripts/moment/en-au.js +66 -62
- data/vendor/assets/javascripts/moment/en-ca.js +62 -59
- data/vendor/assets/javascripts/moment/en-gb.js +66 -63
- data/vendor/assets/javascripts/moment/en-ie.js +68 -0
- data/vendor/assets/javascripts/moment/en-nz.js +68 -0
- data/vendor/assets/javascripts/moment/eo.js +72 -69
- data/vendor/assets/javascripts/moment/es-do.js +92 -0
- data/vendor/assets/javascripts/moment/es-us.js +84 -0
- data/vendor/assets/javascripts/moment/es.js +87 -71
- data/vendor/assets/javascripts/moment/et.js +78 -74
- data/vendor/assets/javascripts/moment/eu.js +65 -60
- data/vendor/assets/javascripts/moment/fa.js +105 -100
- data/vendor/assets/javascripts/moment/fi.js +77 -74
- data/vendor/assets/javascripts/moment/fo.js +59 -56
- data/vendor/assets/javascripts/moment/fr-ca.js +73 -54
- data/vendor/assets/javascripts/moment/fr-ch.js +79 -0
- data/vendor/assets/javascripts/moment/fr.js +82 -58
- data/vendor/assets/javascripts/moment/fy.js +73 -66
- data/vendor/assets/javascripts/moment/gd.js +77 -0
- data/vendor/assets/javascripts/moment/gl.js +74 -69
- data/vendor/assets/javascripts/moment/gom-latn.js +124 -0
- data/vendor/assets/javascripts/moment/gu.js +125 -0
- data/vendor/assets/javascripts/moment/he.js +95 -75
- data/vendor/assets/javascripts/moment/hi.js +122 -118
- data/vendor/assets/javascripts/moment/hr.js +82 -68
- data/vendor/assets/javascripts/moment/hu.js +82 -82
- data/vendor/assets/javascripts/moment/hy-am.js +80 -102
- data/vendor/assets/javascripts/moment/id.js +82 -79
- data/vendor/assets/javascripts/moment/is.js +75 -68
- data/vendor/assets/javascripts/moment/it.js +68 -65
- data/vendor/assets/javascripts/moment/ja.js +79 -61
- data/vendor/assets/javascripts/moment/jv.js +84 -0
- data/vendor/assets/javascripts/moment/ka.js +82 -101
- data/vendor/assets/javascripts/moment/kk.js +88 -0
- data/vendor/assets/javascripts/moment/km.js +57 -54
- data/vendor/assets/javascripts/moment/kn.js +127 -0
- data/vendor/assets/javascripts/moment/ko.js +82 -64
- data/vendor/assets/javascripts/moment/ky.js +89 -0
- data/vendor/assets/javascripts/moment/lb.js +126 -127
- data/vendor/assets/javascripts/moment/lo.js +71 -0
- data/vendor/assets/javascripts/moment/lt.js +110 -111
- data/vendor/assets/javascripts/moment/lv.js +92 -72
- data/vendor/assets/javascripts/moment/me.js +113 -0
- data/vendor/assets/javascripts/moment/mi.js +65 -0
- data/vendor/assets/javascripts/moment/mk.js +80 -77
- data/vendor/assets/javascripts/moment/ml.js +80 -67
- data/vendor/assets/javascripts/moment/mr.js +158 -116
- data/vendor/assets/javascripts/moment/ms-my.js +82 -78
- data/vendor/assets/javascripts/moment/ms.js +83 -0
- data/vendor/assets/javascripts/moment/mt.js +61 -0
- data/vendor/assets/javascripts/moment/my.js +95 -87
- data/vendor/assets/javascripts/moment/nb.js +62 -57
- data/vendor/assets/javascripts/moment/ne.js +121 -118
- data/vendor/assets/javascripts/moment/nl-be.js +89 -0
- data/vendor/assets/javascripts/moment/nl.js +86 -66
- data/vendor/assets/javascripts/moment/nn.js +59 -56
- data/vendor/assets/javascripts/moment/pa-in.js +125 -0
- data/vendor/assets/javascripts/moment/pl.js +99 -72
- data/vendor/assets/javascripts/moment/pt-br.js +60 -56
- data/vendor/assets/javascripts/moment/pt.js +64 -60
- data/vendor/assets/javascripts/moment/ro.js +72 -68
- data/vendor/assets/javascripts/moment/ru.js +156 -147
- data/vendor/assets/javascripts/moment/sd.js +99 -0
- data/vendor/assets/javascripts/moment/se.js +62 -0
- data/vendor/assets/javascripts/moment/si.js +72 -0
- data/vendor/assets/javascripts/moment/sk.js +80 -80
- data/vendor/assets/javascripts/moment/sl.js +117 -89
- data/vendor/assets/javascripts/moment/sq.js +69 -65
- data/vendor/assets/javascripts/moment/sr-cyrl.js +96 -91
- data/vendor/assets/javascripts/moment/sr.js +96 -91
- data/vendor/assets/javascripts/moment/ss.js +90 -0
- data/vendor/assets/javascripts/moment/sv.js +68 -63
- data/vendor/assets/javascripts/moment/sw.js +60 -0
- data/vendor/assets/javascripts/moment/ta.js +126 -125
- data/vendor/assets/javascripts/moment/te.js +90 -0
- data/vendor/assets/javascripts/moment/tet.js +69 -0
- data/vendor/assets/javascripts/moment/th.js +66 -61
- data/vendor/assets/javascripts/moment/tl-ph.js +61 -58
- data/vendor/assets/javascripts/moment/tlh.js +123 -0
- data/vendor/assets/javascripts/moment/tr.js +85 -88
- data/vendor/assets/javascripts/moment/tzl.js +93 -0
- data/vendor/assets/javascripts/moment/tzm-latn.js +57 -54
- data/vendor/assets/javascripts/moment/tzm.js +57 -54
- data/vendor/assets/javascripts/moment/uk.js +123 -133
- data/vendor/assets/javascripts/moment/ur.js +100 -0
- data/vendor/assets/javascripts/moment/uz-latn.js +59 -0
- data/vendor/assets/javascripts/moment/uz.js +57 -54
- data/vendor/assets/javascripts/moment/vi.js +78 -62
- data/vendor/assets/javascripts/moment/x-pseudo.js +69 -0
- data/vendor/assets/javascripts/moment/yo.js +61 -0
- data/vendor/assets/javascripts/moment/zh-cn.js +99 -112
- data/vendor/assets/javascripts/moment/zh-hk.js +106 -0
- data/vendor/assets/javascripts/moment/zh-tw.js +92 -86
- data/vendor/assets/javascripts/moment.js +4128 -2636
- metadata +67 -16
- data/test/dummy/log/test.log +0 -61
@@ -1,80 +1,84 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Malay [ms-my]
|
3
|
+
//! note : DEPRECATED, the correct one is [ms]
|
4
|
+
//! author : Weldan Jamili : https://github.com/weldan
|
4
5
|
|
5
|
-
(function (factory) {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
return hour + 12;
|
39
|
-
}
|
40
|
-
},
|
41
|
-
meridiem : function (hours, minutes, isLower) {
|
42
|
-
if (hours < 11) {
|
43
|
-
return 'pagi';
|
44
|
-
} else if (hours < 15) {
|
45
|
-
return 'tengahari';
|
46
|
-
} else if (hours < 19) {
|
47
|
-
return 'petang';
|
48
|
-
} else {
|
49
|
-
return 'malam';
|
50
|
-
}
|
51
|
-
},
|
52
|
-
calendar : {
|
53
|
-
sameDay : '[Hari ini pukul] LT',
|
54
|
-
nextDay : '[Esok pukul] LT',
|
55
|
-
nextWeek : 'dddd [pukul] LT',
|
56
|
-
lastDay : '[Kelmarin pukul] LT',
|
57
|
-
lastWeek : 'dddd [lepas pukul] LT',
|
58
|
-
sameElse : 'L'
|
59
|
-
},
|
60
|
-
relativeTime : {
|
61
|
-
future : 'dalam %s',
|
62
|
-
past : '%s yang lepas',
|
63
|
-
s : 'beberapa 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'
|
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.
|
6
|
+
;(function (global, factory) {
|
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
|
+
|
13
|
+
|
14
|
+
var msMy = moment.defineLocale('ms-my', {
|
15
|
+
months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
|
16
|
+
monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
|
17
|
+
weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
|
18
|
+
weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
|
19
|
+
weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : 'HH.mm',
|
22
|
+
LTS : 'HH.mm.ss',
|
23
|
+
L : 'DD/MM/YYYY',
|
24
|
+
LL : 'D MMMM YYYY',
|
25
|
+
LLL : 'D MMMM YYYY [pukul] HH.mm',
|
26
|
+
LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
|
27
|
+
},
|
28
|
+
meridiemParse: /pagi|tengahari|petang|malam/,
|
29
|
+
meridiemHour: function (hour, meridiem) {
|
30
|
+
if (hour === 12) {
|
31
|
+
hour = 0;
|
32
|
+
}
|
33
|
+
if (meridiem === 'pagi') {
|
34
|
+
return hour;
|
35
|
+
} else if (meridiem === 'tengahari') {
|
36
|
+
return hour >= 11 ? hour : hour + 12;
|
37
|
+
} else if (meridiem === 'petang' || meridiem === 'malam') {
|
38
|
+
return hour + 12;
|
78
39
|
}
|
79
|
-
}
|
80
|
-
|
40
|
+
},
|
41
|
+
meridiem : function (hours, minutes, isLower) {
|
42
|
+
if (hours < 11) {
|
43
|
+
return 'pagi';
|
44
|
+
} else if (hours < 15) {
|
45
|
+
return 'tengahari';
|
46
|
+
} else if (hours < 19) {
|
47
|
+
return 'petang';
|
48
|
+
} else {
|
49
|
+
return 'malam';
|
50
|
+
}
|
51
|
+
},
|
52
|
+
calendar : {
|
53
|
+
sameDay : '[Hari ini pukul] LT',
|
54
|
+
nextDay : '[Esok pukul] LT',
|
55
|
+
nextWeek : 'dddd [pukul] LT',
|
56
|
+
lastDay : '[Kelmarin pukul] LT',
|
57
|
+
lastWeek : 'dddd [lepas pukul] LT',
|
58
|
+
sameElse : 'L'
|
59
|
+
},
|
60
|
+
relativeTime : {
|
61
|
+
future : 'dalam %s',
|
62
|
+
past : '%s yang lepas',
|
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'
|
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
|
+
});
|
81
|
+
|
82
|
+
return msMy;
|
83
|
+
|
84
|
+
})));
|
@@ -0,0 +1,83 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Malay [ms]
|
3
|
+
//! author : Weldan Jamili : https://github.com/weldan
|
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
|
+
|
13
|
+
var ms = moment.defineLocale('ms', {
|
14
|
+
months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
|
15
|
+
monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
|
16
|
+
weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
|
17
|
+
weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
|
18
|
+
weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
|
19
|
+
longDateFormat : {
|
20
|
+
LT : 'HH.mm',
|
21
|
+
LTS : 'HH.mm.ss',
|
22
|
+
L : 'DD/MM/YYYY',
|
23
|
+
LL : 'D MMMM YYYY',
|
24
|
+
LLL : 'D MMMM YYYY [pukul] HH.mm',
|
25
|
+
LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
|
26
|
+
},
|
27
|
+
meridiemParse: /pagi|tengahari|petang|malam/,
|
28
|
+
meridiemHour: function (hour, meridiem) {
|
29
|
+
if (hour === 12) {
|
30
|
+
hour = 0;
|
31
|
+
}
|
32
|
+
if (meridiem === 'pagi') {
|
33
|
+
return hour;
|
34
|
+
} else if (meridiem === 'tengahari') {
|
35
|
+
return hour >= 11 ? hour : hour + 12;
|
36
|
+
} else if (meridiem === 'petang' || meridiem === 'malam') {
|
37
|
+
return hour + 12;
|
38
|
+
}
|
39
|
+
},
|
40
|
+
meridiem : function (hours, minutes, isLower) {
|
41
|
+
if (hours < 11) {
|
42
|
+
return 'pagi';
|
43
|
+
} else if (hours < 15) {
|
44
|
+
return 'tengahari';
|
45
|
+
} else if (hours < 19) {
|
46
|
+
return 'petang';
|
47
|
+
} else {
|
48
|
+
return 'malam';
|
49
|
+
}
|
50
|
+
},
|
51
|
+
calendar : {
|
52
|
+
sameDay : '[Hari ini pukul] LT',
|
53
|
+
nextDay : '[Esok pukul] LT',
|
54
|
+
nextWeek : 'dddd [pukul] LT',
|
55
|
+
lastDay : '[Kelmarin pukul] LT',
|
56
|
+
lastWeek : 'dddd [lepas pukul] LT',
|
57
|
+
sameElse : 'L'
|
58
|
+
},
|
59
|
+
relativeTime : {
|
60
|
+
future : 'dalam %s',
|
61
|
+
past : '%s yang lepas',
|
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'
|
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
|
+
});
|
80
|
+
|
81
|
+
return ms;
|
82
|
+
|
83
|
+
})));
|
@@ -0,0 +1,61 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Maltese (Malta) [mt]
|
3
|
+
//! author : Alessandro Maruccia : https://github.com/alesma
|
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
|
+
|
13
|
+
var mt = moment.defineLocale('mt', {
|
14
|
+
months : 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split('_'),
|
15
|
+
monthsShort : 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
|
16
|
+
weekdays : 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'),
|
17
|
+
weekdaysShort : 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
|
18
|
+
weekdaysMin : 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
|
19
|
+
longDateFormat : {
|
20
|
+
LT : 'HH:mm',
|
21
|
+
LTS : 'HH:mm:ss',
|
22
|
+
L : 'DD/MM/YYYY',
|
23
|
+
LL : 'D MMMM YYYY',
|
24
|
+
LLL : 'D MMMM YYYY HH:mm',
|
25
|
+
LLLL : 'dddd, D MMMM YYYY HH:mm'
|
26
|
+
},
|
27
|
+
calendar : {
|
28
|
+
sameDay : '[Illum fil-]LT',
|
29
|
+
nextDay : '[Għada fil-]LT',
|
30
|
+
nextWeek : 'dddd [fil-]LT',
|
31
|
+
lastDay : '[Il-bieraħ fil-]LT',
|
32
|
+
lastWeek : 'dddd [li għadda] [fil-]LT',
|
33
|
+
sameElse : 'L'
|
34
|
+
},
|
35
|
+
relativeTime : {
|
36
|
+
future : 'f’ %s',
|
37
|
+
past : '%s ilu',
|
38
|
+
s : 'ftit sekondi',
|
39
|
+
ss : '%d sekondi',
|
40
|
+
m : 'minuta',
|
41
|
+
mm : '%d minuti',
|
42
|
+
h : 'siegħa',
|
43
|
+
hh : '%d siegħat',
|
44
|
+
d : 'ġurnata',
|
45
|
+
dd : '%d ġranet',
|
46
|
+
M : 'xahar',
|
47
|
+
MM : '%d xhur',
|
48
|
+
y : 'sena',
|
49
|
+
yy : '%d sni'
|
50
|
+
},
|
51
|
+
dayOfMonthOrdinalParse : /\d{1,2}º/,
|
52
|
+
ordinal: '%dº',
|
53
|
+
week : {
|
54
|
+
dow : 1, // Monday is the first day of the week.
|
55
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
56
|
+
}
|
57
|
+
});
|
58
|
+
|
59
|
+
return mt;
|
60
|
+
|
61
|
+
})));
|
@@ -1,89 +1,97 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Burmese [my]
|
3
|
+
//! author : Squar team, mysquar.com
|
4
|
+
//! author : David Rossellat : https://github.com/gholadr
|
5
|
+
//! author : Tin Aung Lin : https://github.com/thanyawzinmin
|
4
6
|
|
5
|
-
(function (factory) {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
;(function (global, factory) {
|
8
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
9
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
10
|
+
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
11
|
+
factory(global.moment)
|
12
|
+
}(this, (function (moment) { 'use strict';
|
13
|
+
|
14
|
+
|
15
|
+
var symbolMap = {
|
16
|
+
'1': '၁',
|
17
|
+
'2': '၂',
|
18
|
+
'3': '၃',
|
19
|
+
'4': '၄',
|
20
|
+
'5': '၅',
|
21
|
+
'6': '၆',
|
22
|
+
'7': '၇',
|
23
|
+
'8': '၈',
|
24
|
+
'9': '၉',
|
25
|
+
'0': '၀'
|
26
|
+
};
|
27
|
+
var numberMap = {
|
28
|
+
'၁': '1',
|
29
|
+
'၂': '2',
|
30
|
+
'၃': '3',
|
31
|
+
'၄': '4',
|
32
|
+
'၅': '5',
|
33
|
+
'၆': '6',
|
34
|
+
'၇': '7',
|
35
|
+
'၈': '8',
|
36
|
+
'၉': '9',
|
37
|
+
'၀': '0'
|
38
|
+
};
|
39
|
+
|
40
|
+
var my = moment.defineLocale('my', {
|
41
|
+
months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
|
42
|
+
monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
|
43
|
+
weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
|
44
|
+
weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
|
45
|
+
weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
|
46
|
+
|
47
|
+
longDateFormat: {
|
48
|
+
LT: 'HH:mm',
|
49
|
+
LTS: 'HH:mm:ss',
|
50
|
+
L: 'DD/MM/YYYY',
|
51
|
+
LL: 'D MMMM YYYY',
|
52
|
+
LLL: 'D MMMM YYYY HH:mm',
|
53
|
+
LLLL: 'dddd D MMMM YYYY HH:mm'
|
54
|
+
},
|
55
|
+
calendar: {
|
56
|
+
sameDay: '[ယနေ.] LT [မှာ]',
|
57
|
+
nextDay: '[မနက်ဖြန်] LT [မှာ]',
|
58
|
+
nextWeek: 'dddd LT [မှာ]',
|
59
|
+
lastDay: '[မနေ.က] LT [မှာ]',
|
60
|
+
lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
|
61
|
+
sameElse: 'L'
|
62
|
+
},
|
63
|
+
relativeTime: {
|
64
|
+
future: 'လာမည့် %s မှာ',
|
65
|
+
past: 'လွန်ခဲ့သော %s က',
|
66
|
+
s: 'စက္ကန်.အနည်းငယ်',
|
67
|
+
ss : '%d စက္ကန့်',
|
68
|
+
m: 'တစ်မိနစ်',
|
69
|
+
mm: '%d မိနစ်',
|
70
|
+
h: 'တစ်နာရီ',
|
71
|
+
hh: '%d နာရီ',
|
72
|
+
d: 'တစ်ရက်',
|
73
|
+
dd: '%d ရက်',
|
74
|
+
M: 'တစ်လ',
|
75
|
+
MM: '%d လ',
|
76
|
+
y: 'တစ်နှစ်',
|
77
|
+
yy: '%d နှစ်'
|
78
|
+
},
|
79
|
+
preparse: function (string) {
|
80
|
+
return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
|
81
|
+
return numberMap[match];
|
82
|
+
});
|
83
|
+
},
|
84
|
+
postformat: function (string) {
|
85
|
+
return string.replace(/\d/g, function (match) {
|
86
|
+
return symbolMap[match];
|
87
|
+
});
|
88
|
+
},
|
89
|
+
week: {
|
90
|
+
dow: 1, // Monday is the first day of the week.
|
91
|
+
doy: 4 // The week that contains Jan 1st is the first week of the year.
|
12
92
|
}
|
13
|
-
}
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
'4': '၄',
|
19
|
-
'5': '၅',
|
20
|
-
'6': '၆',
|
21
|
-
'7': '၇',
|
22
|
-
'8': '၈',
|
23
|
-
'9': '၉',
|
24
|
-
'0': '၀'
|
25
|
-
}, numberMap = {
|
26
|
-
'၁': '1',
|
27
|
-
'၂': '2',
|
28
|
-
'၃': '3',
|
29
|
-
'၄': '4',
|
30
|
-
'၅': '5',
|
31
|
-
'၆': '6',
|
32
|
-
'၇': '7',
|
33
|
-
'၈': '8',
|
34
|
-
'၉': '9',
|
35
|
-
'၀': '0'
|
36
|
-
};
|
37
|
-
return moment.defineLocale('my', {
|
38
|
-
months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
|
39
|
-
monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
|
40
|
-
weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
|
41
|
-
weekdaysShort: 'နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
|
42
|
-
weekdaysMin: 'နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
|
43
|
-
longDateFormat: {
|
44
|
-
LT: 'HH:mm',
|
45
|
-
LTS: 'HH:mm:ss',
|
46
|
-
L: 'DD/MM/YYYY',
|
47
|
-
LL: 'D MMMM YYYY',
|
48
|
-
LLL: 'D MMMM YYYY LT',
|
49
|
-
LLLL: 'dddd D MMMM YYYY LT'
|
50
|
-
},
|
51
|
-
calendar: {
|
52
|
-
sameDay: '[ယနေ.] LT [မှာ]',
|
53
|
-
nextDay: '[မနက်ဖြန်] LT [မှာ]',
|
54
|
-
nextWeek: 'dddd LT [မှာ]',
|
55
|
-
lastDay: '[မနေ.က] LT [မှာ]',
|
56
|
-
lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
|
57
|
-
sameElse: 'L'
|
58
|
-
},
|
59
|
-
relativeTime: {
|
60
|
-
future: 'လာမည့် %s မှာ',
|
61
|
-
past: 'လွန်ခဲ့သော %s က',
|
62
|
-
s: 'စက္ကန်.အနည်းငယ်',
|
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 နှစ်'
|
73
|
-
},
|
74
|
-
preparse: function (string) {
|
75
|
-
return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
|
76
|
-
return numberMap[match];
|
77
|
-
});
|
78
|
-
},
|
79
|
-
postformat: function (string) {
|
80
|
-
return string.replace(/\d/g, function (match) {
|
81
|
-
return symbolMap[match];
|
82
|
-
});
|
83
|
-
},
|
84
|
-
week: {
|
85
|
-
dow: 1, // Monday is the first day of the week.
|
86
|
-
doy: 4 // The week that contains Jan 1st is the first week of the year.
|
87
|
-
}
|
88
|
-
});
|
89
|
-
}));
|
93
|
+
});
|
94
|
+
|
95
|
+
return my;
|
96
|
+
|
97
|
+
})));
|
@@ -1,59 +1,64 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Norwegian Bokmål [nb]
|
3
|
+
//! authors : Espen Hovlandsdal : https://github.com/rexxars
|
4
|
+
//! Sigurd Gartmann : https://github.com/sigurdga
|
5
5
|
|
6
|
-
(function (factory) {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
6
|
+
;(function (global, factory) {
|
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
|
+
|
13
|
+
|
14
|
+
var nb = moment.defineLocale('nb', {
|
15
|
+
months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
|
16
|
+
monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
|
17
|
+
monthsParseExact : true,
|
18
|
+
weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
|
19
|
+
weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'),
|
20
|
+
weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
|
21
|
+
weekdaysParseExact : true,
|
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 [kl.] HH:mm',
|
28
|
+
LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
|
29
|
+
},
|
30
|
+
calendar : {
|
31
|
+
sameDay: '[i dag kl.] LT',
|
32
|
+
nextDay: '[i morgen kl.] LT',
|
33
|
+
nextWeek: 'dddd [kl.] LT',
|
34
|
+
lastDay: '[i går kl.] LT',
|
35
|
+
lastWeek: '[forrige] dddd [kl.] LT',
|
36
|
+
sameElse: 'L'
|
37
|
+
},
|
38
|
+
relativeTime : {
|
39
|
+
future : 'om %s',
|
40
|
+
past : '%s siden',
|
41
|
+
s : 'noen sekunder',
|
42
|
+
ss : '%d sekunder',
|
43
|
+
m : 'ett minutt',
|
44
|
+
mm : '%d minutter',
|
45
|
+
h : 'en time',
|
46
|
+
hh : '%d timer',
|
47
|
+
d : 'en dag',
|
48
|
+
dd : '%d dager',
|
49
|
+
M : 'en måned',
|
50
|
+
MM : '%d måneder',
|
51
|
+
y : 'ett år',
|
52
|
+
yy : '%d år'
|
53
|
+
},
|
54
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
55
|
+
ordinal : '%d.',
|
56
|
+
week : {
|
57
|
+
dow : 1, // Monday is the first day of the week.
|
58
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
13
59
|
}
|
14
|
-
}
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
weekdaysShort : 'søn_man_tirs_ons_tors_fre_lør'.split('_'),
|
20
|
-
weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
|
21
|
-
longDateFormat : {
|
22
|
-
LT : 'H.mm',
|
23
|
-
LTS : 'LT.ss',
|
24
|
-
L : 'DD.MM.YYYY',
|
25
|
-
LL : 'D. MMMM YYYY',
|
26
|
-
LLL : 'D. MMMM YYYY [kl.] LT',
|
27
|
-
LLLL : 'dddd D. MMMM YYYY [kl.] LT'
|
28
|
-
},
|
29
|
-
calendar : {
|
30
|
-
sameDay: '[i dag kl.] LT',
|
31
|
-
nextDay: '[i morgen kl.] LT',
|
32
|
-
nextWeek: 'dddd [kl.] LT',
|
33
|
-
lastDay: '[i går kl.] LT',
|
34
|
-
lastWeek: '[forrige] dddd [kl.] LT',
|
35
|
-
sameElse: 'L'
|
36
|
-
},
|
37
|
-
relativeTime : {
|
38
|
-
future : 'om %s',
|
39
|
-
past : 'for %s siden',
|
40
|
-
s : 'noen sekunder',
|
41
|
-
m : 'ett minutt',
|
42
|
-
mm : '%d minutter',
|
43
|
-
h : 'en time',
|
44
|
-
hh : '%d timer',
|
45
|
-
d : 'en dag',
|
46
|
-
dd : '%d dager',
|
47
|
-
M : 'en måned',
|
48
|
-
MM : '%d måneder',
|
49
|
-
y : 'ett år',
|
50
|
-
yy : '%d år'
|
51
|
-
},
|
52
|
-
ordinalParse: /\d{1,2}\./,
|
53
|
-
ordinal : '%d.',
|
54
|
-
week : {
|
55
|
-
dow : 1, // Monday is the first day of the week.
|
56
|
-
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
57
|
-
}
|
58
|
-
});
|
59
|
-
}));
|
60
|
+
});
|
61
|
+
|
62
|
+
return nb;
|
63
|
+
|
64
|
+
})));
|