momentjs-rails 2.10.2 → 2.10.3
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 -7
- data/test/dummy/log/test.log +7 -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/integration/navigation_test.rb +1 -2
- data/vendor/assets/javascripts/moment.js +95 -67
- data/vendor/assets/javascripts/moment/ar.js +2 -2
- data/vendor/assets/javascripts/moment/cv.js +22 -22
- data/vendor/assets/javascripts/moment/es.js +5 -5
- data/vendor/assets/javascripts/moment/hr.js +2 -2
- data/vendor/assets/javascripts/moment/jv.js +82 -0
- data/vendor/assets/javascripts/moment/lv.js +33 -16
- data/vendor/assets/javascripts/moment/me.js +108 -0
- data/vendor/assets/javascripts/moment/my.js +3 -2
- data/vendor/assets/javascripts/moment/pl.js +6 -1
- data/vendor/assets/javascripts/moment/pt-br.js +5 -5
- data/vendor/assets/javascripts/moment/pt.js +5 -5
- data/vendor/assets/javascripts/moment/si.js +64 -0
- data/vendor/assets/javascripts/moment/sl.js +49 -36
- data/vendor/assets/javascripts/moment/sv.js +2 -2
- data/vendor/assets/javascripts/moment/zh-cn.js +11 -11
- data/vendor/assets/javascripts/moment/zh-tw.js +1 -1
- metadata +5 -2
@@ -10,11 +10,11 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
var pt = moment.defineLocale('pt', {
|
13
|
-
months : '
|
14
|
-
monthsShort : '
|
15
|
-
weekdays : '
|
16
|
-
weekdaysShort : '
|
17
|
-
weekdaysMin : '
|
13
|
+
months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
|
14
|
+
monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
|
15
|
+
weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'),
|
16
|
+
weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
|
17
|
+
weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),
|
18
18
|
longDateFormat : {
|
19
19
|
LT : 'HH:mm',
|
20
20
|
LTS : 'LT:ss',
|
@@ -0,0 +1,64 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Sinhalese (si)
|
3
|
+
//! author : Sampath Sitinamaluwa : https://github.com/sampathsris
|
4
|
+
|
5
|
+
(function (global, factory) {
|
6
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
7
|
+
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
8
|
+
factory(global.moment)
|
9
|
+
}(this, function (moment) { 'use strict';
|
10
|
+
|
11
|
+
|
12
|
+
var si = moment.defineLocale('si', {
|
13
|
+
months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
|
14
|
+
monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
|
15
|
+
weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
|
16
|
+
weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන'.split('_'),
|
17
|
+
weekdaysMin : 'ඉ_ස_අ_බ_බ්ර_සි_සෙ'.split('_'),
|
18
|
+
longDateFormat : {
|
19
|
+
LT : 'a h:mm',
|
20
|
+
LTS : 'a h:mm:ss',
|
21
|
+
L : 'YYYY/MM/DD',
|
22
|
+
LL : 'YYYY MMMM D',
|
23
|
+
LLL : 'YYYY MMMM D, LT',
|
24
|
+
LLLL : 'YYYY MMMM D [වැනි] dddd, LTS'
|
25
|
+
},
|
26
|
+
calendar : {
|
27
|
+
sameDay : '[අද] LT[ට]',
|
28
|
+
nextDay : '[හෙට] LT[ට]',
|
29
|
+
nextWeek : 'dddd LT[ට]',
|
30
|
+
lastDay : '[ඊයේ] LT[ට]',
|
31
|
+
lastWeek : '[පසුගිය] dddd LT[ට]',
|
32
|
+
sameElse : 'L'
|
33
|
+
},
|
34
|
+
relativeTime : {
|
35
|
+
future : '%sකින්',
|
36
|
+
past : '%sකට පෙර',
|
37
|
+
s : 'තත්පර කිහිපය',
|
38
|
+
m : 'මිනිත්තුව',
|
39
|
+
mm : 'මිනිත්තු %d',
|
40
|
+
h : 'පැය',
|
41
|
+
hh : 'පැය %d',
|
42
|
+
d : 'දිනය',
|
43
|
+
dd : 'දින %d',
|
44
|
+
M : 'මාසය',
|
45
|
+
MM : 'මාස %d',
|
46
|
+
y : 'වසර',
|
47
|
+
yy : 'වසර %d'
|
48
|
+
},
|
49
|
+
ordinalParse: /\d{1,2} වැනි/,
|
50
|
+
ordinal : function (number) {
|
51
|
+
return number + ' වැනි';
|
52
|
+
},
|
53
|
+
meridiem : function (hours, minutes, isLower) {
|
54
|
+
if (hours > 11) {
|
55
|
+
return isLower ? 'ප.ව.' : 'පස් වරු';
|
56
|
+
} else {
|
57
|
+
return isLower ? 'පෙ.ව.' : 'පෙර වරු';
|
58
|
+
}
|
59
|
+
}
|
60
|
+
});
|
61
|
+
|
62
|
+
return si;
|
63
|
+
|
64
|
+
}));
|
@@ -9,62 +9,72 @@
|
|
9
9
|
}(this, function (moment) { 'use strict';
|
10
10
|
|
11
11
|
|
12
|
-
function
|
12
|
+
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
13
13
|
var result = number + ' ';
|
14
14
|
switch (key) {
|
15
|
+
case 's':
|
16
|
+
return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
|
15
17
|
case 'm':
|
16
18
|
return withoutSuffix ? 'ena minuta' : 'eno minuto';
|
17
19
|
case 'mm':
|
18
20
|
if (number === 1) {
|
19
|
-
result += 'minuta';
|
21
|
+
result += withoutSuffix ? 'minuta' : 'minuto';
|
20
22
|
} else if (number === 2) {
|
21
|
-
result += 'minuti';
|
22
|
-
} else if (number
|
23
|
-
result += 'minute';
|
23
|
+
result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
|
24
|
+
} else if (number < 5) {
|
25
|
+
result += withoutSuffix || isFuture ? 'minute' : 'minutami';
|
24
26
|
} else {
|
25
|
-
result += 'minut';
|
27
|
+
result += withoutSuffix || isFuture ? 'minut' : 'minutami';
|
26
28
|
}
|
27
29
|
return result;
|
28
30
|
case 'h':
|
29
31
|
return withoutSuffix ? 'ena ura' : 'eno uro';
|
30
32
|
case 'hh':
|
31
33
|
if (number === 1) {
|
32
|
-
result += 'ura';
|
34
|
+
result += withoutSuffix ? 'ura' : 'uro';
|
33
35
|
} else if (number === 2) {
|
34
|
-
result += 'uri';
|
35
|
-
} else if (number
|
36
|
-
result += 'ure';
|
36
|
+
result += withoutSuffix || isFuture ? 'uri' : 'urama';
|
37
|
+
} else if (number < 5) {
|
38
|
+
result += withoutSuffix || isFuture ? 'ure' : 'urami';
|
37
39
|
} else {
|
38
|
-
result += 'ur';
|
40
|
+
result += withoutSuffix || isFuture ? 'ur' : 'urami';
|
39
41
|
}
|
40
42
|
return result;
|
43
|
+
case 'd':
|
44
|
+
return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
|
41
45
|
case 'dd':
|
42
46
|
if (number === 1) {
|
43
|
-
result += 'dan';
|
47
|
+
result += withoutSuffix || isFuture ? 'dan' : 'dnem';
|
48
|
+
} else if (number === 2) {
|
49
|
+
result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
|
44
50
|
} else {
|
45
|
-
result += 'dni';
|
51
|
+
result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
|
46
52
|
}
|
47
53
|
return result;
|
54
|
+
case 'M':
|
55
|
+
return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
|
48
56
|
case 'MM':
|
49
57
|
if (number === 1) {
|
50
|
-
result += 'mesec';
|
58
|
+
result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
|
51
59
|
} else if (number === 2) {
|
52
|
-
result += 'meseca';
|
53
|
-
} else if (number
|
54
|
-
result += 'mesece';
|
60
|
+
result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
|
61
|
+
} else if (number < 5) {
|
62
|
+
result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
|
55
63
|
} else {
|
56
|
-
result += 'mesecev';
|
64
|
+
result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
|
57
65
|
}
|
58
66
|
return result;
|
67
|
+
case 'y':
|
68
|
+
return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
|
59
69
|
case 'yy':
|
60
70
|
if (number === 1) {
|
61
|
-
result += 'leto';
|
71
|
+
result += withoutSuffix || isFuture ? 'leto' : 'letom';
|
62
72
|
} else if (number === 2) {
|
63
|
-
result += 'leti';
|
64
|
-
} else if (number
|
65
|
-
result += 'leta';
|
73
|
+
result += withoutSuffix || isFuture ? 'leti' : 'letoma';
|
74
|
+
} else if (number < 5) {
|
75
|
+
result += withoutSuffix || isFuture ? 'leta' : 'leti';
|
66
76
|
} else {
|
67
|
-
result += 'let';
|
77
|
+
result += withoutSuffix || isFuture ? 'let' : 'leti';
|
68
78
|
}
|
69
79
|
return result;
|
70
80
|
}
|
@@ -87,6 +97,7 @@
|
|
87
97
|
calendar : {
|
88
98
|
sameDay : '[danes ob] LT',
|
89
99
|
nextDay : '[jutri ob] LT',
|
100
|
+
|
90
101
|
nextWeek : function () {
|
91
102
|
switch (this.day()) {
|
92
103
|
case 0:
|
@@ -106,9 +117,11 @@
|
|
106
117
|
lastWeek : function () {
|
107
118
|
switch (this.day()) {
|
108
119
|
case 0:
|
120
|
+
return '[prejšnjo] [nedeljo] [ob] LT';
|
109
121
|
case 3:
|
122
|
+
return '[prejšnjo] [sredo] [ob] LT';
|
110
123
|
case 6:
|
111
|
-
return '[
|
124
|
+
return '[prejšnjo] [soboto] [ob] LT';
|
112
125
|
case 1:
|
113
126
|
case 2:
|
114
127
|
case 4:
|
@@ -120,18 +133,18 @@
|
|
120
133
|
},
|
121
134
|
relativeTime : {
|
122
135
|
future : 'čez %s',
|
123
|
-
past : '%s
|
124
|
-
s :
|
125
|
-
m :
|
126
|
-
mm :
|
127
|
-
h :
|
128
|
-
hh :
|
129
|
-
d :
|
130
|
-
dd :
|
131
|
-
M :
|
132
|
-
MM :
|
133
|
-
y :
|
134
|
-
yy :
|
136
|
+
past : 'pred %s',
|
137
|
+
s : processRelativeTime,
|
138
|
+
m : processRelativeTime,
|
139
|
+
mm : processRelativeTime,
|
140
|
+
h : processRelativeTime,
|
141
|
+
hh : processRelativeTime,
|
142
|
+
d : processRelativeTime,
|
143
|
+
dd : processRelativeTime,
|
144
|
+
M : processRelativeTime,
|
145
|
+
MM : processRelativeTime,
|
146
|
+
y : processRelativeTime,
|
147
|
+
yy : processRelativeTime
|
135
148
|
},
|
136
149
|
ordinalParse: /\d{1,2}\./,
|
137
150
|
ordinal : '%d.',
|
@@ -17,7 +17,7 @@
|
|
17
17
|
weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
|
18
18
|
weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
|
19
19
|
longDateFormat : {
|
20
|
-
LT : 'Ah点mm',
|
20
|
+
LT : 'Ah点mm分',
|
21
21
|
LTS : 'Ah点m分s秒',
|
22
22
|
L : 'YYYY-MM-DD',
|
23
23
|
LL : 'YYYY年MMMD日',
|
@@ -103,16 +103,16 @@
|
|
103
103
|
future : '%s内',
|
104
104
|
past : '%s前',
|
105
105
|
s : '几秒',
|
106
|
-
m : '1分钟',
|
107
|
-
mm : '%d分钟',
|
108
|
-
h : '1小时',
|
109
|
-
hh : '%d小时',
|
110
|
-
d : '1天',
|
111
|
-
dd : '%d天',
|
112
|
-
M : '1个月',
|
113
|
-
MM : '%d个月',
|
114
|
-
y : '1年',
|
115
|
-
yy : '%d年'
|
106
|
+
m : '1 分钟',
|
107
|
+
mm : '%d 分钟',
|
108
|
+
h : '1 小时',
|
109
|
+
hh : '%d 小时',
|
110
|
+
d : '1 天',
|
111
|
+
dd : '%d 天',
|
112
|
+
M : '1 个月',
|
113
|
+
MM : '%d 个月',
|
114
|
+
y : '1 年',
|
115
|
+
yy : '%d 年'
|
116
116
|
},
|
117
117
|
week : {
|
118
118
|
// GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
|
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.10.
|
4
|
+
version: 2.10.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Prior
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -120,12 +120,14 @@ files:
|
|
120
120
|
- vendor/assets/javascripts/moment/is.js
|
121
121
|
- vendor/assets/javascripts/moment/it.js
|
122
122
|
- vendor/assets/javascripts/moment/ja.js
|
123
|
+
- vendor/assets/javascripts/moment/jv.js
|
123
124
|
- vendor/assets/javascripts/moment/ka.js
|
124
125
|
- vendor/assets/javascripts/moment/km.js
|
125
126
|
- vendor/assets/javascripts/moment/ko.js
|
126
127
|
- vendor/assets/javascripts/moment/lb.js
|
127
128
|
- vendor/assets/javascripts/moment/lt.js
|
128
129
|
- vendor/assets/javascripts/moment/lv.js
|
130
|
+
- vendor/assets/javascripts/moment/me.js
|
129
131
|
- vendor/assets/javascripts/moment/mk.js
|
130
132
|
- vendor/assets/javascripts/moment/ml.js
|
131
133
|
- vendor/assets/javascripts/moment/mr.js
|
@@ -140,6 +142,7 @@ files:
|
|
140
142
|
- vendor/assets/javascripts/moment/pt.js
|
141
143
|
- vendor/assets/javascripts/moment/ro.js
|
142
144
|
- vendor/assets/javascripts/moment/ru.js
|
145
|
+
- vendor/assets/javascripts/moment/si.js
|
143
146
|
- vendor/assets/javascripts/moment/sk.js
|
144
147
|
- vendor/assets/javascripts/moment/sl.js
|
145
148
|
- vendor/assets/javascripts/moment/sq.js
|