momentjs-rails 2.9.0 → 2.10.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 -2
- data/news.md +3 -0
- data/test/dummy/log/test.log +20 -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 +2475 -2435
- data/vendor/assets/javascripts/moment/af.js +15 -14
- data/vendor/assets/javascripts/moment/ar-ma.js +16 -15
- data/vendor/assets/javascripts/moment/ar-sa.js +15 -14
- data/vendor/assets/javascripts/moment/ar-tn.js +14 -13
- data/vendor/assets/javascripts/moment/ar.js +17 -16
- data/vendor/assets/javascripts/moment/az.js +16 -20
- data/vendor/assets/javascripts/moment/be.js +17 -25
- data/vendor/assets/javascripts/moment/bg.js +15 -14
- data/vendor/assets/javascripts/moment/bn.js +15 -14
- data/vendor/assets/javascripts/moment/bo.js +15 -14
- data/vendor/assets/javascripts/moment/br.js +15 -18
- data/vendor/assets/javascripts/moment/bs.js +16 -16
- data/vendor/assets/javascripts/moment/ca.js +15 -14
- data/vendor/assets/javascripts/moment/cs.js +15 -16
- data/vendor/assets/javascripts/moment/cv.js +15 -14
- data/vendor/assets/javascripts/moment/cy.js +15 -16
- data/vendor/assets/javascripts/moment/da.js +15 -14
- data/vendor/assets/javascripts/moment/de-at.js +17 -16
- data/vendor/assets/javascripts/moment/de.js +16 -15
- data/vendor/assets/javascripts/moment/el.js +15 -16
- data/vendor/assets/javascripts/moment/en-au.js +14 -13
- data/vendor/assets/javascripts/moment/en-ca.js +15 -14
- data/vendor/assets/javascripts/moment/en-gb.js +15 -14
- data/vendor/assets/javascripts/moment/eo.js +17 -16
- data/vendor/assets/javascripts/moment/es.js +15 -14
- data/vendor/assets/javascripts/moment/et.js +16 -15
- data/vendor/assets/javascripts/moment/eu.js +15 -14
- data/vendor/assets/javascripts/moment/fa.js +15 -14
- data/vendor/assets/javascripts/moment/fi.js +15 -16
- data/vendor/assets/javascripts/moment/fo.js +15 -14
- data/vendor/assets/javascripts/moment/fr-ca.js +15 -14
- data/vendor/assets/javascripts/moment/fr.js +15 -14
- data/vendor/assets/javascripts/moment/fy.js +15 -14
- data/vendor/assets/javascripts/moment/gl.js +15 -14
- data/vendor/assets/javascripts/moment/he.js +17 -16
- data/vendor/assets/javascripts/moment/hi.js +15 -14
- data/vendor/assets/javascripts/moment/hr.js +14 -16
- data/vendor/assets/javascripts/moment/hu.js +15 -18
- data/vendor/assets/javascripts/moment/hy-am.js +15 -23
- data/vendor/assets/javascripts/moment/id.js +16 -15
- data/vendor/assets/javascripts/moment/is.js +15 -15
- data/vendor/assets/javascripts/moment/it.js +16 -15
- data/vendor/assets/javascripts/moment/ja.js +15 -14
- data/vendor/assets/javascripts/moment/ka.js +15 -22
- data/vendor/assets/javascripts/moment/km.js +15 -14
- data/vendor/assets/javascripts/moment/ko.js +20 -18
- data/vendor/assets/javascripts/moment/lb.js +14 -20
- data/vendor/assets/javascripts/moment/lt.js +15 -21
- data/vendor/assets/javascripts/moment/lv.js +15 -16
- data/vendor/assets/javascripts/moment/mk.js +15 -14
- data/vendor/assets/javascripts/moment/ml.js +15 -14
- data/vendor/assets/javascripts/moment/mr.js +16 -16
- data/vendor/assets/javascripts/moment/ms-my.js +15 -14
- data/vendor/assets/javascripts/moment/my.js +16 -14
- data/vendor/assets/javascripts/moment/nb.js +16 -15
- data/vendor/assets/javascripts/moment/ne.js +15 -14
- data/vendor/assets/javascripts/moment/nl.js +15 -14
- data/vendor/assets/javascripts/moment/nn.js +15 -14
- data/vendor/assets/javascripts/moment/pl.js +15 -16
- data/vendor/assets/javascripts/moment/pt-br.js +15 -14
- data/vendor/assets/javascripts/moment/pt.js +15 -14
- data/vendor/assets/javascripts/moment/ro.js +16 -16
- data/vendor/assets/javascripts/moment/ru.js +16 -29
- data/vendor/assets/javascripts/moment/sk.js +16 -17
- data/vendor/assets/javascripts/moment/sl.js +15 -15
- data/vendor/assets/javascripts/moment/sq.js +17 -16
- data/vendor/assets/javascripts/moment/sr-cyrl.js +15 -15
- data/vendor/assets/javascripts/moment/sr.js +15 -15
- data/vendor/assets/javascripts/moment/sv.js +15 -14
- data/vendor/assets/javascripts/moment/ta.js +14 -50
- data/vendor/assets/javascripts/moment/th.js +15 -14
- data/vendor/assets/javascripts/moment/tl-ph.js +15 -14
- data/vendor/assets/javascripts/moment/tr.js +16 -21
- data/vendor/assets/javascripts/moment/tzm-latn.js +15 -14
- data/vendor/assets/javascripts/moment/tzm.js +15 -14
- data/vendor/assets/javascripts/moment/uk.js +16 -27
- data/vendor/assets/javascripts/moment/uz.js +15 -14
- data/vendor/assets/javascripts/moment/vi.js +15 -14
- data/vendor/assets/javascripts/moment/zh-cn.js +16 -15
- data/vendor/assets/javascripts/moment/zh-tw.js +15 -14
- metadata +2 -2
@@ -1,17 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : portuguese (pt)
|
3
|
+
//! author : Jefferson : https://github.com/jalex79
|
4
4
|
|
5
|
-
(function (factory) {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
}(function (moment) {
|
14
|
-
return moment.defineLocale('pt', {
|
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 pt = moment.defineLocale('pt', {
|
15
13
|
months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
|
16
14
|
monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
|
17
15
|
weekdays : 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split('_'),
|
@@ -59,4 +57,7 @@
|
|
59
57
|
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
60
58
|
}
|
61
59
|
});
|
62
|
-
|
60
|
+
|
61
|
+
return pt;
|
62
|
+
|
63
|
+
}));
|
@@ -1,17 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : romanian (ro)
|
3
|
+
//! author : Vlad Gurdiga : https://github.com/gurdiga
|
4
|
+
//! author : Valentin Agachi : https://github.com/avaly
|
5
|
+
|
6
|
+
(function (global, factory) {
|
7
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
8
|
+
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
9
|
+
factory(global.moment)
|
10
|
+
}(this, function (moment) { 'use strict';
|
11
|
+
|
5
12
|
|
6
|
-
(function (factory) {
|
7
|
-
if (typeof define === 'function' && define.amd) {
|
8
|
-
define(['moment'], factory); // AMD
|
9
|
-
} else if (typeof exports === 'object') {
|
10
|
-
module.exports = factory(require('../moment')); // Node
|
11
|
-
} else {
|
12
|
-
factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
|
13
|
-
}
|
14
|
-
}(function (moment) {
|
15
13
|
function relativeTimeWithPlural(number, withoutSuffix, key) {
|
16
14
|
var format = {
|
17
15
|
'mm': 'minute',
|
@@ -24,11 +22,10 @@
|
|
24
22
|
if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
|
25
23
|
separator = ' de ';
|
26
24
|
}
|
27
|
-
|
28
25
|
return number + separator + format[key];
|
29
26
|
}
|
30
27
|
|
31
|
-
|
28
|
+
var ro = moment.defineLocale('ro', {
|
32
29
|
months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
|
33
30
|
monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
|
34
31
|
weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
|
@@ -70,4 +67,7 @@
|
|
70
67
|
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
71
68
|
}
|
72
69
|
});
|
73
|
-
|
70
|
+
|
71
|
+
return ro;
|
72
|
+
|
73
|
+
}));
|
@@ -1,22 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : russian (ru)
|
3
|
+
//! author : Viktorminator : https://github.com/Viktorminator
|
4
|
+
//! Author : Menelion Elensúle : https://github.com/Oire
|
5
|
+
|
6
|
+
(function (global, factory) {
|
7
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
8
|
+
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
9
|
+
factory(global.moment)
|
10
|
+
}(this, function (moment) { 'use strict';
|
11
|
+
|
5
12
|
|
6
|
-
(function (factory) {
|
7
|
-
if (typeof define === 'function' && define.amd) {
|
8
|
-
define(['moment'], factory); // AMD
|
9
|
-
} else if (typeof exports === 'object') {
|
10
|
-
module.exports = factory(require('../moment')); // Node
|
11
|
-
} else {
|
12
|
-
factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
|
13
|
-
}
|
14
|
-
}(function (moment) {
|
15
13
|
function plural(word, num) {
|
16
14
|
var forms = word.split('_');
|
17
15
|
return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
|
18
16
|
}
|
19
|
-
|
20
17
|
function relativeTimeWithPlural(number, withoutSuffix, key) {
|
21
18
|
var format = {
|
22
19
|
'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
|
@@ -32,47 +29,38 @@
|
|
32
29
|
return number + ' ' + plural(format[key], +number);
|
33
30
|
}
|
34
31
|
}
|
35
|
-
|
36
32
|
function monthsCaseReplace(m, format) {
|
37
33
|
var months = {
|
38
34
|
'nominative': 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
|
39
35
|
'accusative': 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_')
|
40
36
|
},
|
41
|
-
|
42
37
|
nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
|
43
38
|
'accusative' :
|
44
39
|
'nominative';
|
45
|
-
|
46
40
|
return months[nounCase][m.month()];
|
47
41
|
}
|
48
|
-
|
49
42
|
function monthsShortCaseReplace(m, format) {
|
50
43
|
var monthsShort = {
|
51
44
|
'nominative': 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
|
52
45
|
'accusative': 'янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек'.split('_')
|
53
46
|
},
|
54
|
-
|
55
47
|
nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
|
56
48
|
'accusative' :
|
57
49
|
'nominative';
|
58
|
-
|
59
50
|
return monthsShort[nounCase][m.month()];
|
60
51
|
}
|
61
|
-
|
62
52
|
function weekdaysCaseReplace(m, format) {
|
63
53
|
var weekdays = {
|
64
54
|
'nominative': 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
|
65
55
|
'accusative': 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_')
|
66
56
|
},
|
67
|
-
|
68
57
|
nounCase = (/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/).test(format) ?
|
69
58
|
'accusative' :
|
70
59
|
'nominative';
|
71
|
-
|
72
60
|
return weekdays[nounCase][m.day()];
|
73
61
|
}
|
74
62
|
|
75
|
-
|
63
|
+
var ru = moment.defineLocale('ru', {
|
76
64
|
months : monthsCaseReplace,
|
77
65
|
monthsShort : monthsShortCaseReplace,
|
78
66
|
weekdays : weekdaysCaseReplace,
|
@@ -133,12 +121,10 @@
|
|
133
121
|
y : 'год',
|
134
122
|
yy : relativeTimeWithPlural
|
135
123
|
},
|
136
|
-
|
137
124
|
meridiemParse: /ночи|утра|дня|вечера/i,
|
138
125
|
isPM : function (input) {
|
139
126
|
return /^(дня|вечера)$/.test(input);
|
140
127
|
},
|
141
|
-
|
142
128
|
meridiem : function (hour, minute, isLower) {
|
143
129
|
if (hour < 4) {
|
144
130
|
return 'ночи';
|
@@ -150,7 +136,6 @@
|
|
150
136
|
return 'вечера';
|
151
137
|
}
|
152
138
|
},
|
153
|
-
|
154
139
|
ordinalParse: /\d{1,2}-(й|го|я)/,
|
155
140
|
ordinal: function (number, period) {
|
156
141
|
switch (period) {
|
@@ -167,10 +152,12 @@
|
|
167
152
|
return number;
|
168
153
|
}
|
169
154
|
},
|
170
|
-
|
171
155
|
week : {
|
172
156
|
dow : 1, // Monday is the first day of the week.
|
173
157
|
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
174
158
|
}
|
175
159
|
});
|
176
|
-
|
160
|
+
|
161
|
+
return ru;
|
162
|
+
|
163
|
+
}));
|
@@ -1,24 +1,20 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : slovak (sk)
|
3
|
+
//! author : Martin Minka : https://github.com/k2s
|
4
|
+
//! based on work of petrbela : https://github.com/petrbela
|
5
|
+
|
6
|
+
(function (global, factory) {
|
7
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
8
|
+
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
9
|
+
factory(global.moment)
|
10
|
+
}(this, function (moment) { 'use strict';
|
11
|
+
|
5
12
|
|
6
|
-
(function (factory) {
|
7
|
-
if (typeof define === 'function' && define.amd) {
|
8
|
-
define(['moment'], factory); // AMD
|
9
|
-
} else if (typeof exports === 'object') {
|
10
|
-
module.exports = factory(require('../moment')); // Node
|
11
|
-
} else {
|
12
|
-
factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
|
13
|
-
}
|
14
|
-
}(function (moment) {
|
15
13
|
var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
|
16
14
|
monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
|
17
|
-
|
18
15
|
function plural(n) {
|
19
16
|
return (n > 1) && (n < 5);
|
20
17
|
}
|
21
|
-
|
22
18
|
function translate(number, withoutSuffix, key, isFuture) {
|
23
19
|
var result = number + ' ';
|
24
20
|
switch (key) {
|
@@ -72,7 +68,7 @@
|
|
72
68
|
}
|
73
69
|
}
|
74
70
|
|
75
|
-
|
71
|
+
var sk = moment.defineLocale('sk', {
|
76
72
|
months : months,
|
77
73
|
monthsShort : monthsShort,
|
78
74
|
monthsParse : (function (months, monthsShort) {
|
@@ -155,4 +151,7 @@
|
|
155
151
|
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
156
152
|
}
|
157
153
|
});
|
158
|
-
|
154
|
+
|
155
|
+
return sk;
|
156
|
+
|
157
|
+
}));
|
@@ -1,16 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : slovenian (sl)
|
3
|
+
//! author : Robert Sedovšek : https://github.com/sedovsek
|
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
|
+
|
4
11
|
|
5
|
-
(function (factory) {
|
6
|
-
if (typeof define === 'function' && define.amd) {
|
7
|
-
define(['moment'], factory); // AMD
|
8
|
-
} else if (typeof exports === 'object') {
|
9
|
-
module.exports = factory(require('../moment')); // Node
|
10
|
-
} else {
|
11
|
-
factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
|
12
|
-
}
|
13
|
-
}(function (moment) {
|
14
12
|
function translate(number, withoutSuffix, key) {
|
15
13
|
var result = number + ' ';
|
16
14
|
switch (key) {
|
@@ -72,7 +70,7 @@
|
|
72
70
|
}
|
73
71
|
}
|
74
72
|
|
75
|
-
|
73
|
+
var sl = moment.defineLocale('sl', {
|
76
74
|
months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
|
77
75
|
monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
|
78
76
|
weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
|
@@ -89,7 +87,6 @@
|
|
89
87
|
calendar : {
|
90
88
|
sameDay : '[danes ob] LT',
|
91
89
|
nextDay : '[jutri ob] LT',
|
92
|
-
|
93
90
|
nextWeek : function () {
|
94
91
|
switch (this.day()) {
|
95
92
|
case 0:
|
@@ -143,4 +140,7 @@
|
|
143
140
|
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
144
141
|
}
|
145
142
|
});
|
146
|
-
|
143
|
+
|
144
|
+
return sl;
|
145
|
+
|
146
|
+
}));
|
@@ -1,19 +1,17 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Albanian (sq)
|
3
|
+
//! author : Flakërim Ismani : https://github.com/flakerimi
|
4
|
+
//! author: Menelion Elensúle: https://github.com/Oire (tests)
|
5
|
+
//! author : Oerd Cukalla : https://github.com/oerd (fixes)
|
6
6
|
|
7
|
-
(function (factory) {
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
}(function (moment) {
|
16
|
-
return moment.defineLocale('sq', {
|
7
|
+
(function (global, factory) {
|
8
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
9
|
+
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
10
|
+
factory(global.moment)
|
11
|
+
}(this, function (moment) { 'use strict';
|
12
|
+
|
13
|
+
|
14
|
+
var sq = moment.defineLocale('sq', {
|
17
15
|
months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
|
18
16
|
monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
|
19
17
|
weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
|
@@ -64,4 +62,7 @@
|
|
64
62
|
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
65
63
|
}
|
66
64
|
});
|
67
|
-
|
65
|
+
|
66
|
+
return sq;
|
67
|
+
|
68
|
+
}));
|
@@ -1,16 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Serbian-cyrillic (sr-cyrl)
|
3
|
+
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
|
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
|
+
|
4
11
|
|
5
|
-
(function (factory) {
|
6
|
-
if (typeof define === 'function' && define.amd) {
|
7
|
-
define(['moment'], factory); // AMD
|
8
|
-
} else if (typeof exports === 'object') {
|
9
|
-
module.exports = factory(require('../moment')); // Node
|
10
|
-
} else {
|
11
|
-
factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
|
12
|
-
}
|
13
|
-
}(function (moment) {
|
14
12
|
var translator = {
|
15
13
|
words: { //Different grammatical cases
|
16
14
|
m: ['један минут', 'једне минуте'],
|
@@ -34,7 +32,7 @@
|
|
34
32
|
}
|
35
33
|
};
|
36
34
|
|
37
|
-
|
35
|
+
var sr_cyrl = moment.defineLocale('sr-cyrl', {
|
38
36
|
months: ['јануар', 'фебруар', 'март', 'април', 'мај', 'јун', 'јул', 'август', 'септембар', 'октобар', 'новембар', 'децембар'],
|
39
37
|
monthsShort: ['јан.', 'феб.', 'мар.', 'апр.', 'мај', 'јун', 'јул', 'авг.', 'сеп.', 'окт.', 'нов.', 'дец.'],
|
40
38
|
weekdays: ['недеља', 'понедељак', 'уторак', 'среда', 'четвртак', 'петак', 'субота'],
|
@@ -51,7 +49,6 @@
|
|
51
49
|
calendar: {
|
52
50
|
sameDay: '[данас у] LT',
|
53
51
|
nextDay: '[сутра у] LT',
|
54
|
-
|
55
52
|
nextWeek: function () {
|
56
53
|
switch (this.day()) {
|
57
54
|
case 0:
|
@@ -104,4 +101,7 @@
|
|
104
101
|
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
105
102
|
}
|
106
103
|
});
|
107
|
-
|
104
|
+
|
105
|
+
return sr_cyrl;
|
106
|
+
|
107
|
+
}));
|
@@ -1,16 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Serbian-latin (sr)
|
3
|
+
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
|
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
|
+
|
4
11
|
|
5
|
-
(function (factory) {
|
6
|
-
if (typeof define === 'function' && define.amd) {
|
7
|
-
define(['moment'], factory); // AMD
|
8
|
-
} else if (typeof exports === 'object') {
|
9
|
-
module.exports = factory(require('../moment')); // Node
|
10
|
-
} else {
|
11
|
-
factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
|
12
|
-
}
|
13
|
-
}(function (moment) {
|
14
12
|
var translator = {
|
15
13
|
words: { //Different grammatical cases
|
16
14
|
m: ['jedan minut', 'jedne minute'],
|
@@ -34,7 +32,7 @@
|
|
34
32
|
}
|
35
33
|
};
|
36
34
|
|
37
|
-
|
35
|
+
var sr = moment.defineLocale('sr', {
|
38
36
|
months: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'],
|
39
37
|
monthsShort: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun', 'jul', 'avg.', 'sep.', 'okt.', 'nov.', 'dec.'],
|
40
38
|
weekdays: ['nedelja', 'ponedeljak', 'utorak', 'sreda', 'četvrtak', 'petak', 'subota'],
|
@@ -51,7 +49,6 @@
|
|
51
49
|
calendar: {
|
52
50
|
sameDay: '[danas u] LT',
|
53
51
|
nextDay: '[sutra u] LT',
|
54
|
-
|
55
52
|
nextWeek: function () {
|
56
53
|
switch (this.day()) {
|
57
54
|
case 0:
|
@@ -104,4 +101,7 @@
|
|
104
101
|
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
105
102
|
}
|
106
103
|
});
|
107
|
-
|
104
|
+
|
105
|
+
return sr;
|
106
|
+
|
107
|
+
}));
|