momentjs-rails 2.10.6 → 2.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -10
- data/news.md +3 -0
- data/test/dummy/log/test.log +32 -0
- 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 -1
- data/vendor/assets/javascripts/moment.js +605 -280
- data/vendor/assets/javascripts/moment/af.js +4 -3
- data/vendor/assets/javascripts/moment/ar-ma.js +4 -3
- data/vendor/assets/javascripts/moment/ar-sa.js +4 -3
- data/vendor/assets/javascripts/moment/ar-tn.js +4 -3
- data/vendor/assets/javascripts/moment/ar.js +4 -3
- data/vendor/assets/javascripts/moment/az.js +4 -3
- data/vendor/assets/javascripts/moment/be.js +13 -25
- data/vendor/assets/javascripts/moment/bg.js +4 -3
- data/vendor/assets/javascripts/moment/bn.js +10 -9
- data/vendor/assets/javascripts/moment/bo.js +4 -3
- data/vendor/assets/javascripts/moment/br.js +4 -3
- data/vendor/assets/javascripts/moment/bs.js +4 -3
- data/vendor/assets/javascripts/moment/ca.js +5 -4
- data/vendor/assets/javascripts/moment/cs.js +18 -3
- data/vendor/assets/javascripts/moment/cv.js +4 -3
- data/vendor/assets/javascripts/moment/cy.js +4 -3
- data/vendor/assets/javascripts/moment/da.js +4 -3
- data/vendor/assets/javascripts/moment/de-at.js +8 -6
- data/vendor/assets/javascripts/moment/de.js +8 -6
- data/vendor/assets/javascripts/moment/dv.js +99 -0
- data/vendor/assets/javascripts/moment/el.js +9 -4
- data/vendor/assets/javascripts/moment/en-au.js +8 -4
- data/vendor/assets/javascripts/moment/en-ca.js +8 -4
- data/vendor/assets/javascripts/moment/en-gb.js +8 -4
- data/vendor/assets/javascripts/moment/en-ie.js +70 -0
- data/vendor/assets/javascripts/moment/en-nz.js +69 -0
- data/vendor/assets/javascripts/moment/eo.js +4 -3
- data/vendor/assets/javascripts/moment/es.js +10 -9
- data/vendor/assets/javascripts/moment/et.js +4 -3
- data/vendor/assets/javascripts/moment/eu.js +4 -3
- data/vendor/assets/javascripts/moment/fa.js +4 -3
- data/vendor/assets/javascripts/moment/fi.js +4 -3
- data/vendor/assets/javascripts/moment/fo.js +4 -3
- data/vendor/assets/javascripts/moment/fr-ca.js +4 -3
- data/vendor/assets/javascripts/moment/fr-ch.js +62 -0
- data/vendor/assets/javascripts/moment/fr.js +4 -3
- data/vendor/assets/javascripts/moment/fy.js +4 -3
- data/vendor/assets/javascripts/moment/gd.js +86 -0
- data/vendor/assets/javascripts/moment/gl.js +4 -3
- data/vendor/assets/javascripts/moment/he.js +4 -3
- data/vendor/assets/javascripts/moment/hi.js +4 -3
- data/vendor/assets/javascripts/moment/hr.js +8 -4
- data/vendor/assets/javascripts/moment/hu.js +4 -3
- data/vendor/assets/javascripts/moment/hy-am.js +10 -25
- data/vendor/assets/javascripts/moment/id.js +4 -3
- data/vendor/assets/javascripts/moment/is.js +4 -3
- data/vendor/assets/javascripts/moment/it.js +5 -4
- data/vendor/assets/javascripts/moment/ja.js +4 -3
- data/vendor/assets/javascripts/moment/jv.js +4 -3
- data/vendor/assets/javascripts/moment/ka.js +13 -26
- data/vendor/assets/javascripts/moment/kk.js +87 -0
- data/vendor/assets/javascripts/moment/km.js +5 -4
- data/vendor/assets/javascripts/moment/ko.js +4 -3
- data/vendor/assets/javascripts/moment/lb.js +4 -3
- data/vendor/assets/javascripts/moment/lo.js +69 -0
- data/vendor/assets/javascripts/moment/lt.js +14 -23
- data/vendor/assets/javascripts/moment/lv.js +4 -3
- data/vendor/assets/javascripts/moment/me.js +4 -3
- data/vendor/assets/javascripts/moment/mk.js +7 -6
- data/vendor/assets/javascripts/moment/ml.js +4 -3
- data/vendor/assets/javascripts/moment/mr.js +54 -16
- data/vendor/assets/javascripts/moment/ms-my.js +4 -3
- data/vendor/assets/javascripts/moment/ms.js +5 -4
- data/vendor/assets/javascripts/moment/my.js +4 -3
- data/vendor/assets/javascripts/moment/nb.js +10 -9
- data/vendor/assets/javascripts/moment/ne.js +18 -19
- data/vendor/assets/javascripts/moment/nl.js +4 -3
- data/vendor/assets/javascripts/moment/nn.js +7 -6
- data/vendor/assets/javascripts/moment/pl.js +5 -4
- data/vendor/assets/javascripts/moment/pt-br.js +4 -3
- data/vendor/assets/javascripts/moment/pt.js +4 -3
- data/vendor/assets/javascripts/moment/ro.js +4 -3
- data/vendor/assets/javascripts/moment/ru.js +43 -40
- data/vendor/assets/javascripts/moment/se.js +61 -0
- data/vendor/assets/javascripts/moment/si.js +5 -3
- data/vendor/assets/javascripts/moment/sk.js +4 -11
- data/vendor/assets/javascripts/moment/sl.js +4 -3
- data/vendor/assets/javascripts/moment/sq.js +4 -3
- data/vendor/assets/javascripts/moment/sr-cyrl.js +4 -3
- data/vendor/assets/javascripts/moment/sr.js +4 -3
- data/vendor/assets/javascripts/moment/sv.js +4 -3
- data/vendor/assets/javascripts/moment/sw.js +58 -0
- data/vendor/assets/javascripts/moment/ta.js +38 -3
- data/vendor/assets/javascripts/moment/te.js +88 -0
- data/vendor/assets/javascripts/moment/th.js +4 -3
- data/vendor/assets/javascripts/moment/tl-ph.js +4 -3
- data/vendor/assets/javascripts/moment/tlh.js +119 -0
- data/vendor/assets/javascripts/moment/tr.js +4 -3
- data/vendor/assets/javascripts/moment/tzl.js +26 -23
- data/vendor/assets/javascripts/moment/tzm-latn.js +4 -3
- data/vendor/assets/javascripts/moment/tzm.js +4 -3
- data/vendor/assets/javascripts/moment/uk.js +10 -16
- data/vendor/assets/javascripts/moment/uz.js +5 -4
- data/vendor/assets/javascripts/moment/vi.js +4 -3
- data/vendor/assets/javascripts/moment/zh-cn.js +4 -3
- data/vendor/assets/javascripts/moment/zh-tw.js +4 -3
- metadata +13 -2
@@ -2,8 +2,9 @@
|
|
2
2
|
//! locale : portuguese (pt)
|
3
3
|
//! author : Jefferson : https://github.com/jalex79
|
4
4
|
|
5
|
-
(function (global, factory) {
|
6
|
-
typeof exports === 'object' && typeof module !== 'undefined'
|
5
|
+
;(function (global, factory) {
|
6
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
7
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
7
8
|
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
8
9
|
factory(global.moment)
|
9
10
|
}(this, function (moment) { 'use strict';
|
@@ -60,4 +61,4 @@
|
|
60
61
|
|
61
62
|
return pt;
|
62
63
|
|
63
|
-
}));
|
64
|
+
}));
|
@@ -3,8 +3,9 @@
|
|
3
3
|
//! author : Vlad Gurdiga : https://github.com/gurdiga
|
4
4
|
//! author : Valentin Agachi : https://github.com/avaly
|
5
5
|
|
6
|
-
(function (global, factory) {
|
7
|
-
typeof exports === 'object' && typeof module !== 'undefined'
|
6
|
+
;(function (global, factory) {
|
7
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
8
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
8
9
|
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
9
10
|
factory(global.moment)
|
10
11
|
}(this, function (moment) { 'use strict';
|
@@ -70,4 +71,4 @@
|
|
70
71
|
|
71
72
|
return ro;
|
72
73
|
|
73
|
-
}));
|
74
|
+
}));
|
@@ -3,8 +3,9 @@
|
|
3
3
|
//! author : Viktorminator : https://github.com/Viktorminator
|
4
4
|
//! Author : Menelion Elensúle : https://github.com/Oire
|
5
5
|
|
6
|
-
(function (global, factory) {
|
7
|
-
typeof exports === 'object' && typeof module !== 'undefined'
|
6
|
+
;(function (global, factory) {
|
7
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
8
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
8
9
|
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
9
10
|
factory(global.moment)
|
10
11
|
}(this, function (moment) { 'use strict';
|
@@ -29,44 +30,27 @@
|
|
29
30
|
return number + ' ' + plural(format[key], +number);
|
30
31
|
}
|
31
32
|
}
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
33
|
+
var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[й|я]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
|
34
|
+
|
35
|
+
var ru = moment.defineLocale('ru', {
|
36
|
+
months : {
|
37
|
+
format: 'Января_Февраля_Марта_Апреля_Мая_Июня_Июля_Августа_Сентября_Октября_Ноября_Декабря'.split('_'),
|
38
|
+
standalone: 'Январь_Февраль_Март_Апрель_Май_Июнь_Июль_Август_Сентябрь_Октябрь_Ноябрь_Декабрь'.split('_')
|
36
39
|
},
|
37
|
-
|
38
|
-
'
|
39
|
-
'
|
40
|
-
return months[nounCase][m.month()];
|
41
|
-
}
|
42
|
-
function monthsShortCaseReplace(m, format) {
|
43
|
-
var monthsShort = {
|
44
|
-
'nominative': 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
|
45
|
-
'accusative': 'янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек'.split('_')
|
40
|
+
monthsShort : {
|
41
|
+
format: 'янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек'.split('_'),
|
42
|
+
standalone: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_')
|
46
43
|
},
|
47
|
-
|
48
|
-
'
|
49
|
-
'
|
50
|
-
|
51
|
-
}
|
52
|
-
function weekdaysCaseReplace(m, format) {
|
53
|
-
var weekdays = {
|
54
|
-
'nominative': 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
|
55
|
-
'accusative': 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_')
|
44
|
+
weekdays : {
|
45
|
+
standalone: 'Воскресенье_Понедельник_Вторник_Среда_Четверг_Пятница_Суббота'.split('_'),
|
46
|
+
format: 'Воскресенье_Понедельник_Вторник_Среду_Четверг_Пятницу_Субботу'.split('_'),
|
47
|
+
isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/
|
56
48
|
},
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
var ru = moment.defineLocale('ru', {
|
64
|
-
months : monthsCaseReplace,
|
65
|
-
monthsShort : monthsShortCaseReplace,
|
66
|
-
weekdays : weekdaysCaseReplace,
|
67
|
-
weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
|
68
|
-
weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
|
69
|
-
monthsParse : [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[й|я]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i],
|
49
|
+
weekdaysShort : 'Вс_Пн_Вт_Ср_Чт_Пт_Сб'.split('_'),
|
50
|
+
weekdaysMin : 'Вс_Пн_Вт_Ср_Чт_Пт_Сб'.split('_'),
|
51
|
+
monthsParse : monthsParse,
|
52
|
+
longMonthsParse : monthsParse,
|
53
|
+
shortMonthsParse : monthsParse,
|
70
54
|
longDateFormat : {
|
71
55
|
LT : 'HH:mm',
|
72
56
|
LTS : 'HH:mm:ss',
|
@@ -79,8 +63,27 @@
|
|
79
63
|
sameDay: '[Сегодня в] LT',
|
80
64
|
nextDay: '[Завтра в] LT',
|
81
65
|
lastDay: '[Вчера в] LT',
|
82
|
-
nextWeek: function () {
|
83
|
-
|
66
|
+
nextWeek: function (now) {
|
67
|
+
if (now.week() !== this.week()) {
|
68
|
+
switch (this.day()) {
|
69
|
+
case 0:
|
70
|
+
return '[В следующее] dddd [в] LT';
|
71
|
+
case 1:
|
72
|
+
case 2:
|
73
|
+
case 4:
|
74
|
+
return '[В следующий] dddd [в] LT';
|
75
|
+
case 3:
|
76
|
+
case 5:
|
77
|
+
case 6:
|
78
|
+
return '[В следующую] dddd [в] LT';
|
79
|
+
}
|
80
|
+
} else {
|
81
|
+
if (this.day() === 2) {
|
82
|
+
return '[Во] dddd [в] LT';
|
83
|
+
} else {
|
84
|
+
return '[В] dddd [в] LT';
|
85
|
+
}
|
86
|
+
}
|
84
87
|
},
|
85
88
|
lastWeek: function (now) {
|
86
89
|
if (now.week() !== this.week()) {
|
@@ -160,4 +163,4 @@
|
|
160
163
|
|
161
164
|
return ru;
|
162
165
|
|
163
|
-
}));
|
166
|
+
}));
|
@@ -0,0 +1,61 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Northern Sami (se)
|
3
|
+
//! authors : Bård Rolstad Henriksen : https://github.com/karamell
|
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
|
+
|
14
|
+
var se = moment.defineLocale('se', {
|
15
|
+
months : 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'),
|
16
|
+
monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
|
17
|
+
weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
|
18
|
+
weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
|
19
|
+
weekdaysMin : 's_v_m_g_d_b_L'.split('_'),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : 'HH:mm',
|
22
|
+
LTS : 'HH:mm:ss',
|
23
|
+
L : 'DD.MM.YYYY',
|
24
|
+
LL : 'MMMM D. [b.] YYYY',
|
25
|
+
LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm',
|
26
|
+
LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
|
27
|
+
},
|
28
|
+
calendar : {
|
29
|
+
sameDay: '[otne ti] LT',
|
30
|
+
nextDay: '[ihttin ti] LT',
|
31
|
+
nextWeek: 'dddd [ti] LT',
|
32
|
+
lastDay: '[ikte ti] LT',
|
33
|
+
lastWeek: '[ovddit] dddd [ti] LT',
|
34
|
+
sameElse: 'L'
|
35
|
+
},
|
36
|
+
relativeTime : {
|
37
|
+
future : '%s geažes',
|
38
|
+
past : 'maŋit %s',
|
39
|
+
s : 'moadde sekunddat',
|
40
|
+
m : 'okta minuhta',
|
41
|
+
mm : '%d minuhtat',
|
42
|
+
h : 'okta diimmu',
|
43
|
+
hh : '%d diimmut',
|
44
|
+
d : 'okta beaivi',
|
45
|
+
dd : '%d beaivvit',
|
46
|
+
M : 'okta mánnu',
|
47
|
+
MM : '%d mánut',
|
48
|
+
y : 'okta jahki',
|
49
|
+
yy : '%d jagit'
|
50
|
+
},
|
51
|
+
ordinalParse: /\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 se;
|
60
|
+
|
61
|
+
}));
|
@@ -2,13 +2,15 @@
|
|
2
2
|
//! locale : Sinhalese (si)
|
3
3
|
//! author : Sampath Sitinamaluwa : https://github.com/sampathsris
|
4
4
|
|
5
|
-
(function (global, factory) {
|
6
|
-
typeof exports === 'object' && typeof module !== 'undefined'
|
5
|
+
;(function (global, factory) {
|
6
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
7
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
7
8
|
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
8
9
|
factory(global.moment)
|
9
10
|
}(this, function (moment) { 'use strict';
|
10
11
|
|
11
12
|
|
13
|
+
/*jshint -W100*/
|
12
14
|
var si = moment.defineLocale('si', {
|
13
15
|
months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
|
14
16
|
monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
|
@@ -61,4 +63,4 @@
|
|
61
63
|
|
62
64
|
return si;
|
63
65
|
|
64
|
-
}));
|
66
|
+
}));
|
@@ -3,8 +3,9 @@
|
|
3
3
|
//! author : Martin Minka : https://github.com/k2s
|
4
4
|
//! based on work of petrbela : https://github.com/petrbela
|
5
5
|
|
6
|
-
(function (global, factory) {
|
7
|
-
typeof exports === 'object' && typeof module !== 'undefined'
|
6
|
+
;(function (global, factory) {
|
7
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
8
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
8
9
|
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
9
10
|
factory(global.moment)
|
10
11
|
}(this, function (moment) { 'use strict';
|
@@ -71,14 +72,6 @@
|
|
71
72
|
var sk = moment.defineLocale('sk', {
|
72
73
|
months : months,
|
73
74
|
monthsShort : monthsShort,
|
74
|
-
monthsParse : (function (months, monthsShort) {
|
75
|
-
var i, _monthsParse = [];
|
76
|
-
for (i = 0; i < 12; i++) {
|
77
|
-
// use custom parser to solve problem with July (červenec)
|
78
|
-
_monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
|
79
|
-
}
|
80
|
-
return _monthsParse;
|
81
|
-
}(months, monthsShort)),
|
82
75
|
weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
|
83
76
|
weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
|
84
77
|
weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
|
@@ -154,4 +147,4 @@
|
|
154
147
|
|
155
148
|
return sk;
|
156
149
|
|
157
|
-
}));
|
150
|
+
}));
|
@@ -2,8 +2,9 @@
|
|
2
2
|
//! locale : slovenian (sl)
|
3
3
|
//! author : Robert Sedovšek : https://github.com/sedovsek
|
4
4
|
|
5
|
-
(function (global, factory) {
|
6
|
-
typeof exports === 'object' && typeof module !== 'undefined'
|
5
|
+
;(function (global, factory) {
|
6
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
7
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
7
8
|
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
8
9
|
factory(global.moment)
|
9
10
|
}(this, function (moment) { 'use strict';
|
@@ -156,4 +157,4 @@
|
|
156
157
|
|
157
158
|
return sl;
|
158
159
|
|
159
|
-
}));
|
160
|
+
}));
|
@@ -4,8 +4,9 @@
|
|
4
4
|
//! author: Menelion Elensúle: https://github.com/Oire (tests)
|
5
5
|
//! author : Oerd Cukalla : https://github.com/oerd (fixes)
|
6
6
|
|
7
|
-
(function (global, factory) {
|
8
|
-
typeof exports === 'object' && typeof module !== 'undefined'
|
7
|
+
;(function (global, factory) {
|
8
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
9
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
9
10
|
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
10
11
|
factory(global.moment)
|
11
12
|
}(this, function (moment) { 'use strict';
|
@@ -65,4 +66,4 @@
|
|
65
66
|
|
66
67
|
return sq;
|
67
68
|
|
68
|
-
}));
|
69
|
+
}));
|
@@ -2,8 +2,9 @@
|
|
2
2
|
//! locale : Serbian-cyrillic (sr-cyrl)
|
3
3
|
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
|
4
4
|
|
5
|
-
(function (global, factory) {
|
6
|
-
typeof exports === 'object' && typeof module !== 'undefined'
|
5
|
+
;(function (global, factory) {
|
6
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
7
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
7
8
|
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
8
9
|
factory(global.moment)
|
9
10
|
}(this, function (moment) { 'use strict';
|
@@ -104,4 +105,4 @@
|
|
104
105
|
|
105
106
|
return sr_cyrl;
|
106
107
|
|
107
|
-
}));
|
108
|
+
}));
|
@@ -2,8 +2,9 @@
|
|
2
2
|
//! locale : Serbian-latin (sr)
|
3
3
|
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
|
4
4
|
|
5
|
-
(function (global, factory) {
|
6
|
-
typeof exports === 'object' && typeof module !== 'undefined'
|
5
|
+
;(function (global, factory) {
|
6
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
7
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
7
8
|
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
8
9
|
factory(global.moment)
|
9
10
|
}(this, function (moment) { 'use strict';
|
@@ -104,4 +105,4 @@
|
|
104
105
|
|
105
106
|
return sr;
|
106
107
|
|
107
|
-
}));
|
108
|
+
}));
|
@@ -2,8 +2,9 @@
|
|
2
2
|
//! locale : swedish (sv)
|
3
3
|
//! author : Jens Alm : https://github.com/ulmus
|
4
4
|
|
5
|
-
(function (global, factory) {
|
6
|
-
typeof exports === 'object' && typeof module !== 'undefined'
|
5
|
+
;(function (global, factory) {
|
6
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
7
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
7
8
|
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
8
9
|
factory(global.moment)
|
9
10
|
}(this, function (moment) { 'use strict';
|
@@ -63,4 +64,4 @@
|
|
63
64
|
|
64
65
|
return sv;
|
65
66
|
|
66
|
-
}));
|
67
|
+
}));
|
@@ -0,0 +1,58 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : swahili (sw)
|
3
|
+
//! author : Fahad Kassim : https://github.com/fadsel
|
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 sw = moment.defineLocale('sw', {
|
14
|
+
months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
|
15
|
+
monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
|
16
|
+
weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
|
17
|
+
weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
|
18
|
+
weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.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 : '[leo saa] LT',
|
29
|
+
nextDay : '[kesho saa] LT',
|
30
|
+
nextWeek : '[wiki ijayo] dddd [saat] LT',
|
31
|
+
lastDay : '[jana] LT',
|
32
|
+
lastWeek : '[wiki iliyopita] dddd [saat] LT',
|
33
|
+
sameElse : 'L'
|
34
|
+
},
|
35
|
+
relativeTime : {
|
36
|
+
future : '%s baadaye',
|
37
|
+
past : 'tokea %s',
|
38
|
+
s : 'hivi punde',
|
39
|
+
m : 'dakika moja',
|
40
|
+
mm : 'dakika %d',
|
41
|
+
h : 'saa limoja',
|
42
|
+
hh : 'masaa %d',
|
43
|
+
d : 'siku moja',
|
44
|
+
dd : 'masiku %d',
|
45
|
+
M : 'mwezi mmoja',
|
46
|
+
MM : 'miezi %d',
|
47
|
+
y : 'mwaka mmoja',
|
48
|
+
yy : 'miaka %d'
|
49
|
+
},
|
50
|
+
week : {
|
51
|
+
dow : 1, // Monday is the first day of the week.
|
52
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
53
|
+
}
|
54
|
+
});
|
55
|
+
|
56
|
+
return sw;
|
57
|
+
|
58
|
+
}));
|
@@ -2,13 +2,38 @@
|
|
2
2
|
//! locale : tamil (ta)
|
3
3
|
//! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
|
4
4
|
|
5
|
-
(function (global, factory) {
|
6
|
-
typeof exports === 'object' && typeof module !== 'undefined'
|
5
|
+
;(function (global, factory) {
|
6
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
7
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
7
8
|
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
8
9
|
factory(global.moment)
|
9
10
|
}(this, function (moment) { 'use strict';
|
10
11
|
|
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
|
+
}, numberMap = {
|
25
|
+
'௧': '1',
|
26
|
+
'௨': '2',
|
27
|
+
'௩': '3',
|
28
|
+
'௪': '4',
|
29
|
+
'௫': '5',
|
30
|
+
'௬': '6',
|
31
|
+
'௭': '7',
|
32
|
+
'௮': '8',
|
33
|
+
'௯': '9',
|
34
|
+
'௦': '0'
|
35
|
+
};
|
36
|
+
|
12
37
|
var ta = moment.defineLocale('ta', {
|
13
38
|
months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
|
14
39
|
monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
|
@@ -50,6 +75,16 @@
|
|
50
75
|
ordinal : function (number) {
|
51
76
|
return number + 'வது';
|
52
77
|
},
|
78
|
+
preparse: function (string) {
|
79
|
+
return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
|
80
|
+
return numberMap[match];
|
81
|
+
});
|
82
|
+
},
|
83
|
+
postformat: function (string) {
|
84
|
+
return string.replace(/\d/g, function (match) {
|
85
|
+
return symbolMap[match];
|
86
|
+
});
|
87
|
+
},
|
53
88
|
// refer http://ta.wikipedia.org/s/1er1
|
54
89
|
meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
|
55
90
|
meridiem : function (hour, minute, isLower) {
|
@@ -91,4 +126,4 @@
|
|
91
126
|
|
92
127
|
return ta;
|
93
128
|
|
94
|
-
}));
|
129
|
+
}));
|