momentjs-rails 2.8.1 → 2.8.2
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/integration/navigation_test.rb +1 -1
- data/vendor/assets/javascripts/moment.js +29 -22
- data/vendor/assets/javascripts/moment/af.js +23 -23
- data/vendor/assets/javascripts/moment/ar-ma.js +24 -24
- data/vendor/assets/javascripts/moment/ar-sa.js +26 -26
- data/vendor/assets/javascripts/moment/ar.js +26 -26
- data/vendor/assets/javascripts/moment/az.js +46 -46
- data/vendor/assets/javascripts/moment/be.js +17 -17
- data/vendor/assets/javascripts/moment/bg.js +23 -23
- data/vendor/assets/javascripts/moment/bn.js +28 -28
- data/vendor/assets/javascripts/moment/bo.js +28 -28
- data/vendor/assets/javascripts/moment/br.js +22 -22
- data/vendor/assets/javascripts/moment/bs.js +17 -17
- data/vendor/assets/javascripts/moment/ca.js +23 -23
- data/vendor/assets/javascripts/moment/cs.js +15 -15
- data/vendor/assets/javascripts/moment/cv.js +23 -23
- data/vendor/assets/javascripts/moment/cy.js +24 -24
- data/vendor/assets/javascripts/moment/da.js +23 -23
- data/vendor/assets/javascripts/moment/de-at.js +17 -17
- data/vendor/assets/javascripts/moment/de.js +17 -17
- data/vendor/assets/javascripts/moment/el.js +30 -26
- data/vendor/assets/javascripts/moment/en-au.js +23 -23
- data/vendor/assets/javascripts/moment/en-ca.js +23 -23
- data/vendor/assets/javascripts/moment/en-gb.js +23 -23
- data/vendor/assets/javascripts/moment/eo.js +24 -24
- data/vendor/assets/javascripts/moment/es.js +24 -24
- data/vendor/assets/javascripts/moment/et.js +12 -12
- data/vendor/assets/javascripts/moment/eu.js +27 -27
- data/vendor/assets/javascripts/moment/fa.js +3 -3
- data/vendor/assets/javascripts/moment/fi.js +19 -19
- data/vendor/assets/javascripts/moment/fo.js +23 -23
- data/vendor/assets/javascripts/moment/fr-ca.js +24 -24
- data/vendor/assets/javascripts/moment/fr.js +24 -24
- data/vendor/assets/javascripts/moment/gl.js +25 -25
- data/vendor/assets/javascripts/moment/he.js +31 -31
- data/vendor/assets/javascripts/moment/hi.js +28 -28
- data/vendor/assets/javascripts/moment/hr.js +17 -17
- data/vendor/assets/javascripts/moment/hu.js +12 -12
- data/vendor/assets/javascripts/moment/hy-am.js +24 -24
- data/vendor/assets/javascripts/moment/id.js +23 -23
- data/vendor/assets/javascripts/moment/is.js +14 -14
- data/vendor/assets/javascripts/moment/it.js +23 -23
- data/vendor/assets/javascripts/moment/ja.js +25 -25
- data/vendor/assets/javascripts/moment/ka.js +26 -26
- data/vendor/assets/javascripts/moment/km.js +23 -23
- data/vendor/assets/javascripts/moment/ko.js +25 -25
- data/vendor/assets/javascripts/moment/lb.js +28 -28
- data/vendor/assets/javascripts/moment/lt.js +38 -38
- data/vendor/assets/javascripts/moment/lv.js +18 -18
- data/vendor/assets/javascripts/moment/mk.js +23 -23
- data/vendor/assets/javascripts/moment/ml.js +28 -28
- data/vendor/assets/javascripts/moment/mr.js +28 -28
- data/vendor/assets/javascripts/moment/ms-my.js +23 -23
- data/vendor/assets/javascripts/moment/my.js +23 -23
- data/vendor/assets/javascripts/moment/nb.js +23 -23
- data/vendor/assets/javascripts/moment/ne.js +29 -29
- data/vendor/assets/javascripts/moment/nl.js +24 -24
- data/vendor/assets/javascripts/moment/nn.js +23 -23
- data/vendor/assets/javascripts/moment/pl.js +18 -18
- data/vendor/assets/javascripts/moment/pt-br.js +23 -23
- data/vendor/assets/javascripts/moment/pt.js +23 -23
- data/vendor/assets/javascripts/moment/ro.js +19 -19
- data/vendor/assets/javascripts/moment/ru.js +18 -18
- data/vendor/assets/javascripts/moment/sk.js +15 -15
- data/vendor/assets/javascripts/moment/sl.js +17 -17
- data/vendor/assets/javascripts/moment/sq.js +23 -23
- data/vendor/assets/javascripts/moment/sr-cyrl.js +11 -11
- data/vendor/assets/javascripts/moment/sr.js +11 -11
- data/vendor/assets/javascripts/moment/sv.js +23 -23
- data/vendor/assets/javascripts/moment/ta.js +29 -29
- data/vendor/assets/javascripts/moment/th.js +25 -25
- data/vendor/assets/javascripts/moment/tl-ph.js +24 -24
- data/vendor/assets/javascripts/moment/tr.js +42 -42
- data/vendor/assets/javascripts/moment/tzm-latn.js +24 -24
- data/vendor/assets/javascripts/moment/tzm.js +24 -24
- data/vendor/assets/javascripts/moment/uk.js +19 -19
- data/vendor/assets/javascripts/moment/uz.js +24 -24
- data/vendor/assets/javascripts/moment/vi.js +28 -28
- data/vendor/assets/javascripts/moment/zh-cn.js +48 -48
- data/vendor/assets/javascripts/moment/zh-tw.js +41 -41
- metadata +2 -2
@@ -12,20 +12,20 @@
|
|
12
12
|
}
|
13
13
|
}(function (moment) {
|
14
14
|
return moment.defineLocale('tzm-latn', {
|
15
|
-
months :
|
16
|
-
monthsShort :
|
17
|
-
weekdays :
|
18
|
-
weekdaysShort :
|
19
|
-
weekdaysMin :
|
15
|
+
months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
|
16
|
+
monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
|
17
|
+
weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
|
18
|
+
weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
|
19
|
+
weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
|
20
20
|
longDateFormat : {
|
21
|
-
LT :
|
22
|
-
L :
|
23
|
-
LL :
|
24
|
-
LLL :
|
25
|
-
LLLL :
|
21
|
+
LT : 'HH:mm',
|
22
|
+
L : 'DD/MM/YYYY',
|
23
|
+
LL : 'D MMMM YYYY',
|
24
|
+
LLL : 'D MMMM YYYY LT',
|
25
|
+
LLLL : 'dddd D MMMM YYYY LT'
|
26
26
|
},
|
27
27
|
calendar : {
|
28
|
-
sameDay:
|
28
|
+
sameDay: '[asdkh g] LT',
|
29
29
|
nextDay: '[aska g] LT',
|
30
30
|
nextWeek: 'dddd [g] LT',
|
31
31
|
lastDay: '[assant g] LT',
|
@@ -33,19 +33,19 @@
|
|
33
33
|
sameElse: 'L'
|
34
34
|
},
|
35
35
|
relativeTime : {
|
36
|
-
future :
|
37
|
-
past :
|
38
|
-
s :
|
39
|
-
m :
|
40
|
-
mm :
|
41
|
-
h :
|
42
|
-
hh :
|
43
|
-
d :
|
44
|
-
dd :
|
45
|
-
M :
|
46
|
-
MM :
|
47
|
-
y :
|
48
|
-
yy :
|
36
|
+
future : 'dadkh s yan %s',
|
37
|
+
past : 'yan %s',
|
38
|
+
s : 'imik',
|
39
|
+
m : 'minuḍ',
|
40
|
+
mm : '%d minuḍ',
|
41
|
+
h : 'saɛa',
|
42
|
+
hh : '%d tassaɛin',
|
43
|
+
d : 'ass',
|
44
|
+
dd : '%d ossan',
|
45
|
+
M : 'ayowr',
|
46
|
+
MM : '%d iyyirn',
|
47
|
+
y : 'asgas',
|
48
|
+
yy : '%d isgasn'
|
49
49
|
},
|
50
50
|
week : {
|
51
51
|
dow : 6, // Saturday is the first day of the week.
|
@@ -12,20 +12,20 @@
|
|
12
12
|
}
|
13
13
|
}(function (moment) {
|
14
14
|
return moment.defineLocale('tzm', {
|
15
|
-
months :
|
16
|
-
monthsShort :
|
17
|
-
weekdays :
|
18
|
-
weekdaysShort :
|
19
|
-
weekdaysMin :
|
15
|
+
months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
|
16
|
+
monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
|
17
|
+
weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
|
18
|
+
weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
|
19
|
+
weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
|
20
20
|
longDateFormat : {
|
21
|
-
LT :
|
22
|
-
L :
|
23
|
-
LL :
|
24
|
-
LLL :
|
25
|
-
LLLL :
|
21
|
+
LT : 'HH:mm',
|
22
|
+
L : 'DD/MM/YYYY',
|
23
|
+
LL : 'D MMMM YYYY',
|
24
|
+
LLL : 'D MMMM YYYY LT',
|
25
|
+
LLLL : 'dddd D MMMM YYYY LT'
|
26
26
|
},
|
27
27
|
calendar : {
|
28
|
-
sameDay:
|
28
|
+
sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
|
29
29
|
nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
|
30
30
|
nextWeek: 'dddd [ⴴ] LT',
|
31
31
|
lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
|
@@ -33,19 +33,19 @@
|
|
33
33
|
sameElse: 'L'
|
34
34
|
},
|
35
35
|
relativeTime : {
|
36
|
-
future :
|
37
|
-
past :
|
38
|
-
s :
|
39
|
-
m :
|
40
|
-
mm :
|
41
|
-
h :
|
42
|
-
hh :
|
43
|
-
d :
|
44
|
-
dd :
|
45
|
-
M :
|
46
|
-
MM :
|
47
|
-
y :
|
48
|
-
yy :
|
36
|
+
future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
|
37
|
+
past : 'ⵢⴰⵏ %s',
|
38
|
+
s : 'ⵉⵎⵉⴽ',
|
39
|
+
m : 'ⵎⵉⵏⵓⴺ',
|
40
|
+
mm : '%d ⵎⵉⵏⵓⴺ',
|
41
|
+
h : 'ⵙⴰⵄⴰ',
|
42
|
+
hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
|
43
|
+
d : 'ⴰⵙⵙ',
|
44
|
+
dd : '%d oⵙⵙⴰⵏ',
|
45
|
+
M : 'ⴰⵢoⵓⵔ',
|
46
|
+
MM : '%d ⵉⵢⵢⵉⵔⵏ',
|
47
|
+
y : 'ⴰⵙⴳⴰⵙ',
|
48
|
+
yy : '%d ⵉⵙⴳⴰⵙⵏ'
|
49
49
|
},
|
50
50
|
week : {
|
51
51
|
dow : 6, // Saturday is the first day of the week.
|
@@ -73,16 +73,16 @@
|
|
73
73
|
|
74
74
|
return moment.defineLocale('uk', {
|
75
75
|
months : monthsCaseReplace,
|
76
|
-
monthsShort :
|
76
|
+
monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
|
77
77
|
weekdays : weekdaysCaseReplace,
|
78
|
-
weekdaysShort :
|
79
|
-
weekdaysMin :
|
78
|
+
weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
|
79
|
+
weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
|
80
80
|
longDateFormat : {
|
81
|
-
LT :
|
82
|
-
L :
|
83
|
-
LL :
|
84
|
-
LLL :
|
85
|
-
LLLL :
|
81
|
+
LT : 'HH:mm',
|
82
|
+
L : 'DD.MM.YYYY',
|
83
|
+
LL : 'D MMMM YYYY р.',
|
84
|
+
LLL : 'D MMMM YYYY р., LT',
|
85
|
+
LLLL : 'dddd, D MMMM YYYY р., LT'
|
86
86
|
},
|
87
87
|
calendar : {
|
88
88
|
sameDay: processHoursFunction('[Сьогодні '),
|
@@ -105,18 +105,18 @@
|
|
105
105
|
sameElse: 'L'
|
106
106
|
},
|
107
107
|
relativeTime : {
|
108
|
-
future :
|
109
|
-
past :
|
110
|
-
s :
|
108
|
+
future : 'за %s',
|
109
|
+
past : '%s тому',
|
110
|
+
s : 'декілька секунд',
|
111
111
|
m : relativeTimeWithPlural,
|
112
112
|
mm : relativeTimeWithPlural,
|
113
|
-
h :
|
113
|
+
h : 'годину',
|
114
114
|
hh : relativeTimeWithPlural,
|
115
|
-
d :
|
115
|
+
d : 'день',
|
116
116
|
dd : relativeTimeWithPlural,
|
117
|
-
M :
|
117
|
+
M : 'місяць',
|
118
118
|
MM : relativeTimeWithPlural,
|
119
|
-
y :
|
119
|
+
y : 'рік',
|
120
120
|
yy : relativeTimeWithPlural
|
121
121
|
},
|
122
122
|
|
@@ -124,13 +124,13 @@
|
|
124
124
|
|
125
125
|
meridiem : function (hour, minute, isLower) {
|
126
126
|
if (hour < 4) {
|
127
|
-
return
|
127
|
+
return 'ночі';
|
128
128
|
} else if (hour < 12) {
|
129
|
-
return
|
129
|
+
return 'ранку';
|
130
130
|
} else if (hour < 17) {
|
131
|
-
return
|
131
|
+
return 'дня';
|
132
132
|
} else {
|
133
|
-
return
|
133
|
+
return 'вечора';
|
134
134
|
}
|
135
135
|
},
|
136
136
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
// moment.js locale configuration
|
2
|
-
// locale : uzbek
|
2
|
+
// locale : uzbek (uz)
|
3
3
|
// author : Sardor Muminov : https://github.com/muminoff
|
4
4
|
|
5
5
|
(function (factory) {
|
@@ -12,17 +12,17 @@
|
|
12
12
|
}
|
13
13
|
}(function (moment) {
|
14
14
|
return moment.defineLocale('uz', {
|
15
|
-
months :
|
16
|
-
monthsShort :
|
17
|
-
weekdays :
|
18
|
-
weekdaysShort :
|
19
|
-
weekdaysMin :
|
15
|
+
months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
|
16
|
+
monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
|
17
|
+
weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
|
18
|
+
weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
|
19
|
+
weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
|
20
20
|
longDateFormat : {
|
21
|
-
LT :
|
22
|
-
L :
|
23
|
-
LL :
|
24
|
-
LLL :
|
25
|
-
LLLL :
|
21
|
+
LT : 'HH:mm',
|
22
|
+
L : 'DD/MM/YYYY',
|
23
|
+
LL : 'D MMMM YYYY',
|
24
|
+
LLL : 'D MMMM YYYY LT',
|
25
|
+
LLLL : 'D MMMM YYYY, dddd LT'
|
26
26
|
},
|
27
27
|
calendar : {
|
28
28
|
sameDay : '[Бугун соат] LT [да]',
|
@@ -33,19 +33,19 @@
|
|
33
33
|
sameElse : 'L'
|
34
34
|
},
|
35
35
|
relativeTime : {
|
36
|
-
future :
|
37
|
-
past :
|
38
|
-
s :
|
39
|
-
m :
|
40
|
-
mm :
|
41
|
-
h :
|
42
|
-
hh :
|
43
|
-
d :
|
44
|
-
dd :
|
45
|
-
M :
|
46
|
-
MM :
|
47
|
-
y :
|
48
|
-
yy :
|
36
|
+
future : 'Якин %s ичида',
|
37
|
+
past : 'Бир неча %s олдин',
|
38
|
+
s : 'фурсат',
|
39
|
+
m : 'бир дакика',
|
40
|
+
mm : '%d дакика',
|
41
|
+
h : 'бир соат',
|
42
|
+
hh : '%d соат',
|
43
|
+
d : 'бир кун',
|
44
|
+
dd : '%d кун',
|
45
|
+
M : 'бир ой',
|
46
|
+
MM : '%d ой',
|
47
|
+
y : 'бир йил',
|
48
|
+
yy : '%d йил'
|
49
49
|
},
|
50
50
|
week : {
|
51
51
|
dow : 1, // Monday is the first day of the week.
|
@@ -12,24 +12,24 @@
|
|
12
12
|
}
|
13
13
|
}(function (moment) {
|
14
14
|
return moment.defineLocale('vi', {
|
15
|
-
months :
|
16
|
-
monthsShort :
|
17
|
-
weekdays :
|
18
|
-
weekdaysShort :
|
19
|
-
weekdaysMin :
|
15
|
+
months : 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),
|
16
|
+
monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
|
17
|
+
weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
|
18
|
+
weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
|
19
|
+
weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
|
20
20
|
longDateFormat : {
|
21
|
-
LT :
|
22
|
-
L :
|
23
|
-
LL :
|
24
|
-
LLL :
|
25
|
-
LLLL :
|
26
|
-
l :
|
27
|
-
ll :
|
28
|
-
lll :
|
29
|
-
llll :
|
21
|
+
LT : 'HH:mm',
|
22
|
+
L : 'DD/MM/YYYY',
|
23
|
+
LL : 'D MMMM [năm] YYYY',
|
24
|
+
LLL : 'D MMMM [năm] YYYY LT',
|
25
|
+
LLLL : 'dddd, D MMMM [năm] YYYY LT',
|
26
|
+
l : 'DD/M/YYYY',
|
27
|
+
ll : 'D MMM YYYY',
|
28
|
+
lll : 'D MMM YYYY LT',
|
29
|
+
llll : 'ddd, D MMM YYYY LT'
|
30
30
|
},
|
31
31
|
calendar : {
|
32
|
-
sameDay:
|
32
|
+
sameDay: '[Hôm nay lúc] LT',
|
33
33
|
nextDay: '[Ngày mai lúc] LT',
|
34
34
|
nextWeek: 'dddd [tuần tới lúc] LT',
|
35
35
|
lastDay: '[Hôm qua lúc] LT',
|
@@ -37,19 +37,19 @@
|
|
37
37
|
sameElse: 'L'
|
38
38
|
},
|
39
39
|
relativeTime : {
|
40
|
-
future :
|
41
|
-
past :
|
42
|
-
s :
|
43
|
-
m :
|
44
|
-
mm :
|
45
|
-
h :
|
46
|
-
hh :
|
47
|
-
d :
|
48
|
-
dd :
|
49
|
-
M :
|
50
|
-
MM :
|
51
|
-
y :
|
52
|
-
yy :
|
40
|
+
future : '%s tới',
|
41
|
+
past : '%s trước',
|
42
|
+
s : 'vài giây',
|
43
|
+
m : 'một phút',
|
44
|
+
mm : '%d phút',
|
45
|
+
h : 'một giờ',
|
46
|
+
hh : '%d giờ',
|
47
|
+
d : 'một ngày',
|
48
|
+
dd : '%d ngày',
|
49
|
+
M : 'một tháng',
|
50
|
+
MM : '%d tháng',
|
51
|
+
y : 'một năm',
|
52
|
+
yy : '%d năm'
|
53
53
|
},
|
54
54
|
ordinal : function (number) {
|
55
55
|
return number;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
// moment.js locale configuration
|
2
|
-
// locale : chinese
|
2
|
+
// locale : chinese (zh-cn)
|
3
3
|
// author : suupic : https://github.com/suupic
|
4
4
|
// author : Zeno Zeng : https://github.com/zenozeng
|
5
5
|
|
@@ -13,91 +13,91 @@
|
|
13
13
|
}
|
14
14
|
}(function (moment) {
|
15
15
|
return moment.defineLocale('zh-cn', {
|
16
|
-
months :
|
17
|
-
monthsShort :
|
18
|
-
weekdays :
|
19
|
-
weekdaysShort :
|
20
|
-
weekdaysMin :
|
16
|
+
months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
|
17
|
+
monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
|
18
|
+
weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
|
19
|
+
weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
|
20
|
+
weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
|
21
21
|
longDateFormat : {
|
22
|
-
LT :
|
23
|
-
L :
|
24
|
-
LL :
|
25
|
-
LLL :
|
26
|
-
LLLL :
|
27
|
-
l :
|
28
|
-
ll :
|
29
|
-
lll :
|
30
|
-
llll :
|
22
|
+
LT : 'Ah点mm',
|
23
|
+
L : 'YYYY-MM-DD',
|
24
|
+
LL : 'YYYY年MMMD日',
|
25
|
+
LLL : 'YYYY年MMMD日LT',
|
26
|
+
LLLL : 'YYYY年MMMD日ddddLT',
|
27
|
+
l : 'YYYY-MM-DD',
|
28
|
+
ll : 'YYYY年MMMD日',
|
29
|
+
lll : 'YYYY年MMMD日LT',
|
30
|
+
llll : 'YYYY年MMMD日ddddLT'
|
31
31
|
},
|
32
32
|
meridiem : function (hour, minute, isLower) {
|
33
33
|
var hm = hour * 100 + minute;
|
34
34
|
if (hm < 600) {
|
35
|
-
return
|
35
|
+
return '凌晨';
|
36
36
|
} else if (hm < 900) {
|
37
|
-
return
|
37
|
+
return '早上';
|
38
38
|
} else if (hm < 1130) {
|
39
|
-
return
|
39
|
+
return '上午';
|
40
40
|
} else if (hm < 1230) {
|
41
|
-
return
|
41
|
+
return '中午';
|
42
42
|
} else if (hm < 1800) {
|
43
|
-
return
|
43
|
+
return '下午';
|
44
44
|
} else {
|
45
|
-
return
|
45
|
+
return '晚上';
|
46
46
|
}
|
47
47
|
},
|
48
48
|
calendar : {
|
49
49
|
sameDay : function () {
|
50
|
-
return this.minutes() === 0 ?
|
50
|
+
return this.minutes() === 0 ? '[今天]Ah[点整]' : '[今天]LT';
|
51
51
|
},
|
52
52
|
nextDay : function () {
|
53
|
-
return this.minutes() === 0 ?
|
53
|
+
return this.minutes() === 0 ? '[明天]Ah[点整]' : '[明天]LT';
|
54
54
|
},
|
55
55
|
lastDay : function () {
|
56
|
-
return this.minutes() === 0 ?
|
56
|
+
return this.minutes() === 0 ? '[昨天]Ah[点整]' : '[昨天]LT';
|
57
57
|
},
|
58
58
|
nextWeek : function () {
|
59
59
|
var startOfWeek, prefix;
|
60
60
|
startOfWeek = moment().startOf('week');
|
61
61
|
prefix = this.unix() - startOfWeek.unix() >= 7 * 24 * 3600 ? '[下]' : '[本]';
|
62
|
-
return this.minutes() === 0 ? prefix +
|
62
|
+
return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';
|
63
63
|
},
|
64
64
|
lastWeek : function () {
|
65
65
|
var startOfWeek, prefix;
|
66
66
|
startOfWeek = moment().startOf('week');
|
67
67
|
prefix = this.unix() < startOfWeek.unix() ? '[上]' : '[本]';
|
68
|
-
return this.minutes() === 0 ? prefix +
|
68
|
+
return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';
|
69
69
|
},
|
70
70
|
sameElse : 'LL'
|
71
71
|
},
|
72
72
|
ordinal : function (number, period) {
|
73
73
|
switch (period) {
|
74
|
-
case
|
75
|
-
case
|
76
|
-
case
|
77
|
-
return number +
|
78
|
-
case
|
79
|
-
return number +
|
80
|
-
case
|
81
|
-
case
|
82
|
-
return number +
|
74
|
+
case 'd':
|
75
|
+
case 'D':
|
76
|
+
case 'DDD':
|
77
|
+
return number + '日';
|
78
|
+
case 'M':
|
79
|
+
return number + '月';
|
80
|
+
case 'w':
|
81
|
+
case 'W':
|
82
|
+
return number + '周';
|
83
83
|
default:
|
84
84
|
return number;
|
85
85
|
}
|
86
86
|
},
|
87
87
|
relativeTime : {
|
88
|
-
future :
|
89
|
-
past :
|
90
|
-
s :
|
91
|
-
m :
|
92
|
-
mm :
|
93
|
-
h :
|
94
|
-
hh :
|
95
|
-
d :
|
96
|
-
dd :
|
97
|
-
M :
|
98
|
-
MM :
|
99
|
-
y :
|
100
|
-
yy :
|
88
|
+
future : '%s内',
|
89
|
+
past : '%s前',
|
90
|
+
s : '几秒',
|
91
|
+
m : '1分钟',
|
92
|
+
mm : '%d分钟',
|
93
|
+
h : '1小时',
|
94
|
+
hh : '%d小时',
|
95
|
+
d : '1天',
|
96
|
+
dd : '%d天',
|
97
|
+
M : '1个月',
|
98
|
+
MM : '%d个月',
|
99
|
+
y : '1年',
|
100
|
+
yy : '%d年'
|
101
101
|
},
|
102
102
|
week : {
|
103
103
|
// GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
|