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
@@ -0,0 +1,60 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Bambara [bm]
|
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
|
+
// Language contact person : Abdoufata Kane : https://github.com/abdoufata
|
13
|
+
|
14
|
+
var bm = moment.defineLocale('bm', {
|
15
|
+
months : 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),
|
16
|
+
monthsShort : 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
|
17
|
+
weekdays : 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
|
18
|
+
weekdaysShort : 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
|
19
|
+
weekdaysMin : 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : 'HH:mm',
|
22
|
+
LTS : 'HH:mm:ss',
|
23
|
+
L : 'DD/MM/YYYY',
|
24
|
+
LL : 'MMMM [tile] D [san] YYYY',
|
25
|
+
LLL : 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
|
26
|
+
LLLL : 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'
|
27
|
+
},
|
28
|
+
calendar : {
|
29
|
+
sameDay : '[Bi lɛrɛ] LT',
|
30
|
+
nextDay : '[Sini lɛrɛ] LT',
|
31
|
+
nextWeek : 'dddd [don lɛrɛ] LT',
|
32
|
+
lastDay : '[Kunu lɛrɛ] LT',
|
33
|
+
lastWeek : 'dddd [tɛmɛnen lɛrɛ] LT',
|
34
|
+
sameElse : 'L'
|
35
|
+
},
|
36
|
+
relativeTime : {
|
37
|
+
future : '%s kɔnɔ',
|
38
|
+
past : 'a bɛ %s bɔ',
|
39
|
+
s : 'sanga dama dama',
|
40
|
+
ss : 'sekondi %d',
|
41
|
+
m : 'miniti kelen',
|
42
|
+
mm : 'miniti %d',
|
43
|
+
h : 'lɛrɛ kelen',
|
44
|
+
hh : 'lɛrɛ %d',
|
45
|
+
d : 'tile kelen',
|
46
|
+
dd : 'tile %d',
|
47
|
+
M : 'kalo kelen',
|
48
|
+
MM : 'kalo %d',
|
49
|
+
y : 'san kelen',
|
50
|
+
yy : 'san %d'
|
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
|
+
});
|
57
|
+
|
58
|
+
return bm;
|
59
|
+
|
60
|
+
})));
|
@@ -1,111 +1,120 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Bengali [bn]
|
3
|
+
//! author : Kaushik Gandhi : https://github.com/kaushikgandhi
|
4
4
|
|
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
|
-
};
|
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 symbolMap = {
|
14
|
+
'1': '১',
|
15
|
+
'2': '২',
|
16
|
+
'3': '৩',
|
17
|
+
'4': '৪',
|
18
|
+
'5': '৫',
|
19
|
+
'6': '৬',
|
20
|
+
'7': '৭',
|
21
|
+
'8': '৮',
|
22
|
+
'9': '৯',
|
23
|
+
'0': '০'
|
24
|
+
};
|
25
|
+
var numberMap = {
|
26
|
+
'১': '1',
|
27
|
+
'২': '2',
|
28
|
+
'৩': '3',
|
29
|
+
'৪': '4',
|
30
|
+
'৫': '5',
|
31
|
+
'৬': '6',
|
32
|
+
'৭': '7',
|
33
|
+
'৮': '8',
|
34
|
+
'৯': '9',
|
35
|
+
'০': '0'
|
36
|
+
};
|
38
37
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
}
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
}
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
}
|
106
|
-
|
107
|
-
|
108
|
-
|
38
|
+
var bn = moment.defineLocale('bn', {
|
39
|
+
months : 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
|
40
|
+
monthsShort : 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
|
41
|
+
weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
|
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
|
+
meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
|
87
|
+
meridiemHour : function (hour, meridiem) {
|
88
|
+
if (hour === 12) {
|
89
|
+
hour = 0;
|
90
|
+
}
|
91
|
+
if ((meridiem === 'রাত' && hour >= 4) ||
|
92
|
+
(meridiem === 'দুপুর' && hour < 5) ||
|
93
|
+
meridiem === 'বিকাল') {
|
94
|
+
return hour + 12;
|
95
|
+
} else {
|
96
|
+
return hour;
|
97
|
+
}
|
98
|
+
},
|
99
|
+
meridiem : function (hour, minute, isLower) {
|
100
|
+
if (hour < 4) {
|
101
|
+
return 'রাত';
|
102
|
+
} else if (hour < 10) {
|
103
|
+
return 'সকাল';
|
104
|
+
} else if (hour < 17) {
|
105
|
+
return 'দুপুর';
|
106
|
+
} else if (hour < 20) {
|
107
|
+
return 'বিকাল';
|
108
|
+
} else {
|
109
|
+
return 'রাত';
|
109
110
|
}
|
110
|
-
}
|
111
|
-
|
111
|
+
},
|
112
|
+
week : {
|
113
|
+
dow : 0, // Sunday is the first day of the week.
|
114
|
+
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
115
|
+
}
|
116
|
+
});
|
117
|
+
|
118
|
+
return bn;
|
119
|
+
|
120
|
+
})));
|
@@ -1,108 +1,120 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Tibetan [bo]
|
3
|
+
//! author : Thupten N. Chakrishar : https://github.com/vajradog
|
4
4
|
|
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
|
-
};
|
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 symbolMap = {
|
14
|
+
'1': '༡',
|
15
|
+
'2': '༢',
|
16
|
+
'3': '༣',
|
17
|
+
'4': '༤',
|
18
|
+
'5': '༥',
|
19
|
+
'6': '༦',
|
20
|
+
'7': '༧',
|
21
|
+
'8': '༨',
|
22
|
+
'9': '༩',
|
23
|
+
'0': '༠'
|
24
|
+
};
|
25
|
+
var numberMap = {
|
26
|
+
'༡': '1',
|
27
|
+
'༢': '2',
|
28
|
+
'༣': '3',
|
29
|
+
'༤': '4',
|
30
|
+
'༥': '5',
|
31
|
+
'༦': '6',
|
32
|
+
'༧': '7',
|
33
|
+
'༨': '8',
|
34
|
+
'༩': '9',
|
35
|
+
'༠': '0'
|
36
|
+
};
|
38
37
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
}
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
}
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
38
|
+
var bo = moment.defineLocale('bo', {
|
39
|
+
months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
|
40
|
+
monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
|
41
|
+
weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
|
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 : '[བདུན་ཕྲག་རྗེས་མ], 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
|
+
meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
|
87
|
+
meridiemHour : function (hour, meridiem) {
|
88
|
+
if (hour === 12) {
|
89
|
+
hour = 0;
|
90
|
+
}
|
91
|
+
if ((meridiem === 'མཚན་མོ' && hour >= 4) ||
|
92
|
+
(meridiem === 'ཉིན་གུང' && hour < 5) ||
|
93
|
+
meridiem === 'དགོང་དག') {
|
94
|
+
return hour + 12;
|
95
|
+
} else {
|
96
|
+
return hour;
|
97
|
+
}
|
98
|
+
},
|
99
|
+
meridiem : function (hour, minute, isLower) {
|
100
|
+
if (hour < 4) {
|
101
|
+
return 'མཚན་མོ';
|
102
|
+
} else if (hour < 10) {
|
103
|
+
return 'ཞོགས་ཀས';
|
104
|
+
} else if (hour < 17) {
|
105
|
+
return 'ཉིན་གུང';
|
106
|
+
} else if (hour < 20) {
|
107
|
+
return 'དགོང་དག';
|
108
|
+
} else {
|
109
|
+
return 'མཚན་མོ';
|
106
110
|
}
|
107
|
-
}
|
108
|
-
|
111
|
+
},
|
112
|
+
week : {
|
113
|
+
dow : 0, // Sunday is the first day of the week.
|
114
|
+
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
115
|
+
}
|
116
|
+
});
|
117
|
+
|
118
|
+
return bo;
|
119
|
+
|
120
|
+
})));
|