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,34 +12,34 @@
|
|
12
12
|
}
|
13
13
|
}(function (moment) {
|
14
14
|
return moment.defineLocale('zh-tw', {
|
15
|
-
months :
|
16
|
-
monthsShort :
|
17
|
-
weekdays :
|
18
|
-
weekdaysShort :
|
19
|
-
weekdaysMin :
|
15
|
+
months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
|
16
|
+
monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
|
17
|
+
weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
|
18
|
+
weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
|
19
|
+
weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
|
20
20
|
longDateFormat : {
|
21
|
-
LT :
|
22
|
-
L :
|
23
|
-
LL :
|
24
|
-
LLL :
|
25
|
-
LLLL :
|
26
|
-
l :
|
27
|
-
ll :
|
28
|
-
lll :
|
29
|
-
llll :
|
21
|
+
LT : 'Ah點mm',
|
22
|
+
L : 'YYYY年MMMD日',
|
23
|
+
LL : 'YYYY年MMMD日',
|
24
|
+
LLL : 'YYYY年MMMD日LT',
|
25
|
+
LLLL : 'YYYY年MMMD日ddddLT',
|
26
|
+
l : 'YYYY年MMMD日',
|
27
|
+
ll : 'YYYY年MMMD日',
|
28
|
+
lll : 'YYYY年MMMD日LT',
|
29
|
+
llll : 'YYYY年MMMD日ddddLT'
|
30
30
|
},
|
31
31
|
meridiem : function (hour, minute, isLower) {
|
32
32
|
var hm = hour * 100 + minute;
|
33
33
|
if (hm < 900) {
|
34
|
-
return
|
34
|
+
return '早上';
|
35
35
|
} else if (hm < 1130) {
|
36
|
-
return
|
36
|
+
return '上午';
|
37
37
|
} else if (hm < 1230) {
|
38
|
-
return
|
38
|
+
return '中午';
|
39
39
|
} else if (hm < 1800) {
|
40
|
-
return
|
40
|
+
return '下午';
|
41
41
|
} else {
|
42
|
-
return
|
42
|
+
return '晚上';
|
43
43
|
}
|
44
44
|
},
|
45
45
|
calendar : {
|
@@ -52,33 +52,33 @@
|
|
52
52
|
},
|
53
53
|
ordinal : function (number, period) {
|
54
54
|
switch (period) {
|
55
|
-
case
|
56
|
-
case
|
57
|
-
case
|
58
|
-
return number +
|
59
|
-
case
|
60
|
-
return number +
|
61
|
-
case
|
62
|
-
case
|
63
|
-
return number +
|
55
|
+
case 'd' :
|
56
|
+
case 'D' :
|
57
|
+
case 'DDD' :
|
58
|
+
return number + '日';
|
59
|
+
case 'M' :
|
60
|
+
return number + '月';
|
61
|
+
case 'w' :
|
62
|
+
case 'W' :
|
63
|
+
return number + '週';
|
64
64
|
default :
|
65
65
|
return number;
|
66
66
|
}
|
67
67
|
},
|
68
68
|
relativeTime : {
|
69
|
-
future :
|
70
|
-
past :
|
71
|
-
s :
|
72
|
-
m :
|
73
|
-
mm :
|
74
|
-
h :
|
75
|
-
hh :
|
76
|
-
d :
|
77
|
-
dd :
|
78
|
-
M :
|
79
|
-
MM :
|
80
|
-
y :
|
81
|
-
yy :
|
69
|
+
future : '%s內',
|
70
|
+
past : '%s前',
|
71
|
+
s : '幾秒',
|
72
|
+
m : '一分鐘',
|
73
|
+
mm : '%d分鐘',
|
74
|
+
h : '一小時',
|
75
|
+
hh : '%d小時',
|
76
|
+
d : '一天',
|
77
|
+
dd : '%d天',
|
78
|
+
M : '一個月',
|
79
|
+
MM : '%d個月',
|
80
|
+
y : '一年',
|
81
|
+
yy : '%d年'
|
82
82
|
}
|
83
83
|
});
|
84
84
|
}));
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: momentjs-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.8.
|
4
|
+
version: 2.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Prior
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|