momentjs-rails 2.9.0 → 2.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/MIT-LICENSE +1 -1
- data/README.md +13 -11
- data/news.md +24 -7
- 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 -2
- data/vendor/assets/javascripts/moment/af.js +72 -69
- data/vendor/assets/javascripts/moment/ar-dz.js +60 -0
- data/vendor/assets/javascripts/moment/ar-kw.js +60 -0
- data/vendor/assets/javascripts/moment/ar-ly.js +127 -0
- data/vendor/assets/javascripts/moment/ar-ma.js +59 -55
- data/vendor/assets/javascripts/moment/ar-sa.js +103 -98
- data/vendor/assets/javascripts/moment/ar-tn.js +58 -53
- data/vendor/assets/javascripts/moment/ar.js +140 -131
- data/vendor/assets/javascripts/moment/az.js +100 -101
- data/vendor/assets/javascripts/moment/be.js +106 -125
- data/vendor/assets/javascripts/moment/bg.js +78 -75
- data/vendor/assets/javascripts/moment/bm.js +60 -0
- data/vendor/assets/javascripts/moment/bn.js +117 -108
- data/vendor/assets/javascripts/moment/bo.js +117 -105
- data/vendor/assets/javascripts/moment/br.js +92 -92
- data/vendor/assets/javascripts/moment/bs.js +81 -68
- data/vendor/assets/javascripts/moment/ca.js +83 -71
- data/vendor/assets/javascripts/moment/cs.js +102 -79
- data/vendor/assets/javascripts/moment/cv.js +62 -59
- data/vendor/assets/javascripts/moment/cy.js +78 -75
- data/vendor/assets/javascripts/moment/da.js +59 -56
- data/vendor/assets/javascripts/moment/de-at.js +77 -71
- data/vendor/assets/javascripts/moment/de-ch.js +79 -0
- data/vendor/assets/javascripts/moment/de.js +76 -70
- data/vendor/assets/javascripts/moment/dv.js +101 -0
- data/vendor/assets/javascripts/moment/el.js +96 -89
- data/vendor/assets/javascripts/moment/en-au.js +66 -62
- data/vendor/assets/javascripts/moment/en-ca.js +62 -59
- data/vendor/assets/javascripts/moment/en-gb.js +66 -63
- data/vendor/assets/javascripts/moment/en-ie.js +68 -0
- data/vendor/assets/javascripts/moment/en-nz.js +68 -0
- data/vendor/assets/javascripts/moment/eo.js +72 -69
- data/vendor/assets/javascripts/moment/es-do.js +92 -0
- data/vendor/assets/javascripts/moment/es-us.js +84 -0
- data/vendor/assets/javascripts/moment/es.js +87 -71
- data/vendor/assets/javascripts/moment/et.js +78 -74
- data/vendor/assets/javascripts/moment/eu.js +65 -60
- data/vendor/assets/javascripts/moment/fa.js +105 -100
- data/vendor/assets/javascripts/moment/fi.js +77 -74
- data/vendor/assets/javascripts/moment/fo.js +59 -56
- data/vendor/assets/javascripts/moment/fr-ca.js +73 -54
- data/vendor/assets/javascripts/moment/fr-ch.js +79 -0
- data/vendor/assets/javascripts/moment/fr.js +82 -58
- data/vendor/assets/javascripts/moment/fy.js +73 -66
- data/vendor/assets/javascripts/moment/gd.js +77 -0
- data/vendor/assets/javascripts/moment/gl.js +74 -69
- data/vendor/assets/javascripts/moment/gom-latn.js +124 -0
- data/vendor/assets/javascripts/moment/gu.js +125 -0
- data/vendor/assets/javascripts/moment/he.js +95 -75
- data/vendor/assets/javascripts/moment/hi.js +122 -118
- data/vendor/assets/javascripts/moment/hr.js +82 -68
- data/vendor/assets/javascripts/moment/hu.js +82 -82
- data/vendor/assets/javascripts/moment/hy-am.js +80 -102
- data/vendor/assets/javascripts/moment/id.js +82 -79
- data/vendor/assets/javascripts/moment/is.js +75 -68
- data/vendor/assets/javascripts/moment/it.js +68 -65
- data/vendor/assets/javascripts/moment/ja.js +79 -61
- data/vendor/assets/javascripts/moment/jv.js +84 -0
- data/vendor/assets/javascripts/moment/ka.js +82 -101
- data/vendor/assets/javascripts/moment/kk.js +88 -0
- data/vendor/assets/javascripts/moment/km.js +57 -54
- data/vendor/assets/javascripts/moment/kn.js +127 -0
- data/vendor/assets/javascripts/moment/ko.js +82 -64
- data/vendor/assets/javascripts/moment/ky.js +89 -0
- data/vendor/assets/javascripts/moment/lb.js +126 -127
- data/vendor/assets/javascripts/moment/lo.js +71 -0
- data/vendor/assets/javascripts/moment/lt.js +110 -111
- data/vendor/assets/javascripts/moment/lv.js +92 -72
- data/vendor/assets/javascripts/moment/me.js +113 -0
- data/vendor/assets/javascripts/moment/mi.js +65 -0
- data/vendor/assets/javascripts/moment/mk.js +80 -77
- data/vendor/assets/javascripts/moment/ml.js +80 -67
- data/vendor/assets/javascripts/moment/mr.js +158 -116
- data/vendor/assets/javascripts/moment/ms-my.js +82 -78
- data/vendor/assets/javascripts/moment/ms.js +83 -0
- data/vendor/assets/javascripts/moment/mt.js +61 -0
- data/vendor/assets/javascripts/moment/my.js +95 -87
- data/vendor/assets/javascripts/moment/nb.js +62 -57
- data/vendor/assets/javascripts/moment/ne.js +121 -118
- data/vendor/assets/javascripts/moment/nl-be.js +89 -0
- data/vendor/assets/javascripts/moment/nl.js +86 -66
- data/vendor/assets/javascripts/moment/nn.js +59 -56
- data/vendor/assets/javascripts/moment/pa-in.js +125 -0
- data/vendor/assets/javascripts/moment/pl.js +99 -72
- data/vendor/assets/javascripts/moment/pt-br.js +60 -56
- data/vendor/assets/javascripts/moment/pt.js +64 -60
- data/vendor/assets/javascripts/moment/ro.js +72 -68
- data/vendor/assets/javascripts/moment/ru.js +156 -147
- data/vendor/assets/javascripts/moment/sd.js +99 -0
- data/vendor/assets/javascripts/moment/se.js +62 -0
- data/vendor/assets/javascripts/moment/si.js +72 -0
- data/vendor/assets/javascripts/moment/sk.js +80 -80
- data/vendor/assets/javascripts/moment/sl.js +117 -89
- data/vendor/assets/javascripts/moment/sq.js +69 -65
- data/vendor/assets/javascripts/moment/sr-cyrl.js +96 -91
- data/vendor/assets/javascripts/moment/sr.js +96 -91
- data/vendor/assets/javascripts/moment/ss.js +90 -0
- data/vendor/assets/javascripts/moment/sv.js +68 -63
- data/vendor/assets/javascripts/moment/sw.js +60 -0
- data/vendor/assets/javascripts/moment/ta.js +126 -125
- data/vendor/assets/javascripts/moment/te.js +90 -0
- data/vendor/assets/javascripts/moment/tet.js +69 -0
- data/vendor/assets/javascripts/moment/th.js +66 -61
- data/vendor/assets/javascripts/moment/tl-ph.js +61 -58
- data/vendor/assets/javascripts/moment/tlh.js +123 -0
- data/vendor/assets/javascripts/moment/tr.js +85 -88
- data/vendor/assets/javascripts/moment/tzl.js +93 -0
- data/vendor/assets/javascripts/moment/tzm-latn.js +57 -54
- data/vendor/assets/javascripts/moment/tzm.js +57 -54
- data/vendor/assets/javascripts/moment/uk.js +123 -133
- data/vendor/assets/javascripts/moment/ur.js +100 -0
- data/vendor/assets/javascripts/moment/uz-latn.js +59 -0
- data/vendor/assets/javascripts/moment/uz.js +57 -54
- data/vendor/assets/javascripts/moment/vi.js +78 -62
- data/vendor/assets/javascripts/moment/x-pseudo.js +69 -0
- data/vendor/assets/javascripts/moment/yo.js +61 -0
- data/vendor/assets/javascripts/moment/zh-cn.js +99 -112
- data/vendor/assets/javascripts/moment/zh-hk.js +106 -0
- data/vendor/assets/javascripts/moment/zh-tw.js +92 -86
- data/vendor/assets/javascripts/moment.js +4128 -2636
- metadata +67 -16
- data/test/dummy/log/test.log +0 -61
@@ -1,56 +1,59 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Central Atlas Tamazight [tzm]
|
3
|
+
//! author : Abdel Said : https://github.com/abdelsaid
|
4
4
|
|
5
|
-
(function (factory) {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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 tzm = moment.defineLocale('tzm', {
|
14
|
+
months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
|
15
|
+
monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
|
16
|
+
weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
|
17
|
+
weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
|
18
|
+
weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.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: '[ⴰⵙⴷⵅ ⴴ] LT',
|
29
|
+
nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
|
30
|
+
nextWeek: 'dddd [ⴴ] LT',
|
31
|
+
lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
|
32
|
+
lastWeek: 'dddd [ⴴ] LT',
|
33
|
+
sameElse: 'L'
|
34
|
+
},
|
35
|
+
relativeTime : {
|
36
|
+
future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
|
37
|
+
past : 'ⵢⴰⵏ %s',
|
38
|
+
s : 'ⵉⵎⵉⴽ',
|
39
|
+
ss : '%d ⵉⵎⵉⴽ',
|
40
|
+
m : 'ⵎⵉⵏⵓⴺ',
|
41
|
+
mm : '%d ⵎⵉⵏⵓⴺ',
|
42
|
+
h : 'ⵙⴰⵄⴰ',
|
43
|
+
hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
|
44
|
+
d : 'ⴰⵙⵙ',
|
45
|
+
dd : '%d oⵙⵙⴰⵏ',
|
46
|
+
M : 'ⴰⵢoⵓⵔ',
|
47
|
+
MM : '%d ⵉⵢⵢⵉⵔⵏ',
|
48
|
+
y : 'ⴰⵙⴳⴰⵙ',
|
49
|
+
yy : '%d ⵉⵙⴳⴰⵙⵏ'
|
50
|
+
},
|
51
|
+
week : {
|
52
|
+
dow : 6, // Saturday is the first day of the week.
|
53
|
+
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
12
54
|
}
|
13
|
-
}
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
|
19
|
-
weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
|
20
|
-
longDateFormat : {
|
21
|
-
LT : 'HH:mm',
|
22
|
-
LTS: 'LT:ss',
|
23
|
-
L : 'DD/MM/YYYY',
|
24
|
-
LL : 'D MMMM YYYY',
|
25
|
-
LLL : 'D MMMM YYYY LT',
|
26
|
-
LLLL : 'dddd D MMMM YYYY LT'
|
27
|
-
},
|
28
|
-
calendar : {
|
29
|
-
sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
|
30
|
-
nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
|
31
|
-
nextWeek: 'dddd [ⴴ] LT',
|
32
|
-
lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
|
33
|
-
lastWeek: 'dddd [ⴴ] LT',
|
34
|
-
sameElse: 'L'
|
35
|
-
},
|
36
|
-
relativeTime : {
|
37
|
-
future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
|
38
|
-
past : 'ⵢⴰⵏ %s',
|
39
|
-
s : 'ⵉⵎⵉⴽ',
|
40
|
-
m : 'ⵎⵉⵏⵓⴺ',
|
41
|
-
mm : '%d ⵎⵉⵏⵓⴺ',
|
42
|
-
h : 'ⵙⴰⵄⴰ',
|
43
|
-
hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
|
44
|
-
d : 'ⴰⵙⵙ',
|
45
|
-
dd : '%d oⵙⵙⴰⵏ',
|
46
|
-
M : 'ⴰⵢoⵓⵔ',
|
47
|
-
MM : '%d ⵉⵢⵢⵉⵔⵏ',
|
48
|
-
y : 'ⴰⵙⴳⴰⵙ',
|
49
|
-
yy : '%d ⵉⵙⴳⴰⵙⵏ'
|
50
|
-
},
|
51
|
-
week : {
|
52
|
-
dow : 6, // Saturday is the first day of the week.
|
53
|
-
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
54
|
-
}
|
55
|
-
});
|
56
|
-
}));
|
55
|
+
});
|
56
|
+
|
57
|
+
return tzm;
|
58
|
+
|
59
|
+
})));
|
@@ -1,97 +1,87 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Ukrainian [uk]
|
3
|
+
//! author : zemlanin : https://github.com/zemlanin
|
4
|
+
//! Author : Menelion Elensúle : https://github.com/Oire
|
5
5
|
|
6
|
-
(function (factory) {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
|
13
|
-
}
|
14
|
-
}(function (moment) {
|
15
|
-
function plural(word, num) {
|
16
|
-
var forms = word.split('_');
|
17
|
-
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
|
-
}
|
19
|
-
|
20
|
-
function relativeTimeWithPlural(number, withoutSuffix, key) {
|
21
|
-
var format = {
|
22
|
-
'mm': 'хвилина_хвилини_хвилин',
|
23
|
-
'hh': 'година_години_годин',
|
24
|
-
'dd': 'день_дні_днів',
|
25
|
-
'MM': 'місяць_місяці_місяців',
|
26
|
-
'yy': 'рік_роки_років'
|
27
|
-
};
|
28
|
-
if (key === 'm') {
|
29
|
-
return withoutSuffix ? 'хвилина' : 'хвилину';
|
30
|
-
}
|
31
|
-
else if (key === 'h') {
|
32
|
-
return withoutSuffix ? 'година' : 'годину';
|
33
|
-
}
|
34
|
-
else {
|
35
|
-
return number + ' ' + plural(format[key], +number);
|
36
|
-
}
|
37
|
-
}
|
6
|
+
;(function (global, factory) {
|
7
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
8
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
9
|
+
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
10
|
+
factory(global.moment)
|
11
|
+
}(this, (function (moment) { 'use strict';
|
38
12
|
|
39
|
-
function monthsCaseReplace(m, format) {
|
40
|
-
var months = {
|
41
|
-
'nominative': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_'),
|
42
|
-
'accusative': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_')
|
43
|
-
},
|
44
13
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
14
|
+
function plural(word, num) {
|
15
|
+
var forms = word.split('_');
|
16
|
+
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]);
|
17
|
+
}
|
18
|
+
function relativeTimeWithPlural(number, withoutSuffix, key) {
|
19
|
+
var format = {
|
20
|
+
'ss': withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
|
21
|
+
'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
|
22
|
+
'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
|
23
|
+
'dd': 'день_дні_днів',
|
24
|
+
'MM': 'місяць_місяці_місяців',
|
25
|
+
'yy': 'рік_роки_років'
|
26
|
+
};
|
27
|
+
if (key === 'm') {
|
28
|
+
return withoutSuffix ? 'хвилина' : 'хвилину';
|
50
29
|
}
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
|
57
|
-
},
|
58
|
-
|
59
|
-
nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
|
60
|
-
'accusative' :
|
61
|
-
((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
|
62
|
-
'genitive' :
|
63
|
-
'nominative');
|
64
|
-
|
65
|
-
return weekdays[nounCase][m.day()];
|
30
|
+
else if (key === 'h') {
|
31
|
+
return withoutSuffix ? 'година' : 'годину';
|
32
|
+
}
|
33
|
+
else {
|
34
|
+
return number + ' ' + plural(format[key], +number);
|
66
35
|
}
|
36
|
+
}
|
37
|
+
function weekdaysCaseReplace(m, format) {
|
38
|
+
var weekdays = {
|
39
|
+
'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
|
40
|
+
'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
|
41
|
+
'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
|
42
|
+
};
|
67
43
|
|
68
|
-
|
69
|
-
return
|
70
|
-
return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
|
71
|
-
};
|
44
|
+
if (!m) {
|
45
|
+
return weekdays['nominative'];
|
72
46
|
}
|
73
47
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
48
|
+
var nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
|
49
|
+
'accusative' :
|
50
|
+
((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
|
51
|
+
'genitive' :
|
52
|
+
'nominative');
|
53
|
+
return weekdays[nounCase][m.day()];
|
54
|
+
}
|
55
|
+
function processHoursFunction(str) {
|
56
|
+
return function () {
|
57
|
+
return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
|
58
|
+
};
|
59
|
+
}
|
60
|
+
|
61
|
+
var uk = moment.defineLocale('uk', {
|
62
|
+
months : {
|
63
|
+
'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
|
64
|
+
'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
|
65
|
+
},
|
66
|
+
monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
|
67
|
+
weekdays : weekdaysCaseReplace,
|
68
|
+
weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
|
69
|
+
weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
|
70
|
+
longDateFormat : {
|
71
|
+
LT : 'HH:mm',
|
72
|
+
LTS : 'HH:mm:ss',
|
73
|
+
L : 'DD.MM.YYYY',
|
74
|
+
LL : 'D MMMM YYYY р.',
|
75
|
+
LLL : 'D MMMM YYYY р., HH:mm',
|
76
|
+
LLLL : 'dddd, D MMMM YYYY р., HH:mm'
|
77
|
+
},
|
78
|
+
calendar : {
|
79
|
+
sameDay: processHoursFunction('[Сьогодні '),
|
80
|
+
nextDay: processHoursFunction('[Завтра '),
|
81
|
+
lastDay: processHoursFunction('[Вчора '),
|
82
|
+
nextWeek: processHoursFunction('[У] dddd ['),
|
83
|
+
lastWeek: function () {
|
84
|
+
switch (this.day()) {
|
95
85
|
case 0:
|
96
86
|
case 3:
|
97
87
|
case 5:
|
@@ -101,47 +91,45 @@
|
|
101
91
|
case 2:
|
102
92
|
case 4:
|
103
93
|
return processHoursFunction('[Минулого] dddd [').call(this);
|
104
|
-
}
|
105
|
-
},
|
106
|
-
sameElse: 'L'
|
107
|
-
},
|
108
|
-
relativeTime : {
|
109
|
-
future : 'за %s',
|
110
|
-
past : '%s тому',
|
111
|
-
s : 'декілька секунд',
|
112
|
-
m : relativeTimeWithPlural,
|
113
|
-
mm : relativeTimeWithPlural,
|
114
|
-
h : 'годину',
|
115
|
-
hh : relativeTimeWithPlural,
|
116
|
-
d : 'день',
|
117
|
-
dd : relativeTimeWithPlural,
|
118
|
-
M : 'місяць',
|
119
|
-
MM : relativeTimeWithPlural,
|
120
|
-
y : 'рік',
|
121
|
-
yy : relativeTimeWithPlural
|
122
|
-
},
|
123
|
-
|
124
|
-
// M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
|
125
|
-
|
126
|
-
meridiemParse: /ночі|ранку|дня|вечора/,
|
127
|
-
isPM: function (input) {
|
128
|
-
return /^(дня|вечора)$/.test(input);
|
129
|
-
},
|
130
|
-
meridiem : function (hour, minute, isLower) {
|
131
|
-
if (hour < 4) {
|
132
|
-
return 'ночі';
|
133
|
-
} else if (hour < 12) {
|
134
|
-
return 'ранку';
|
135
|
-
} else if (hour < 17) {
|
136
|
-
return 'дня';
|
137
|
-
} else {
|
138
|
-
return 'вечора';
|
139
94
|
}
|
140
95
|
},
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
96
|
+
sameElse: 'L'
|
97
|
+
},
|
98
|
+
relativeTime : {
|
99
|
+
future : 'за %s',
|
100
|
+
past : '%s тому',
|
101
|
+
s : 'декілька секунд',
|
102
|
+
ss : relativeTimeWithPlural,
|
103
|
+
m : relativeTimeWithPlural,
|
104
|
+
mm : relativeTimeWithPlural,
|
105
|
+
h : 'годину',
|
106
|
+
hh : relativeTimeWithPlural,
|
107
|
+
d : 'день',
|
108
|
+
dd : relativeTimeWithPlural,
|
109
|
+
M : 'місяць',
|
110
|
+
MM : relativeTimeWithPlural,
|
111
|
+
y : 'рік',
|
112
|
+
yy : relativeTimeWithPlural
|
113
|
+
},
|
114
|
+
// M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
|
115
|
+
meridiemParse: /ночі|ранку|дня|вечора/,
|
116
|
+
isPM: function (input) {
|
117
|
+
return /^(дня|вечора)$/.test(input);
|
118
|
+
},
|
119
|
+
meridiem : function (hour, minute, isLower) {
|
120
|
+
if (hour < 4) {
|
121
|
+
return 'ночі';
|
122
|
+
} else if (hour < 12) {
|
123
|
+
return 'ранку';
|
124
|
+
} else if (hour < 17) {
|
125
|
+
return 'дня';
|
126
|
+
} else {
|
127
|
+
return 'вечора';
|
128
|
+
}
|
129
|
+
},
|
130
|
+
dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
|
131
|
+
ordinal: function (number, period) {
|
132
|
+
switch (period) {
|
145
133
|
case 'M':
|
146
134
|
case 'd':
|
147
135
|
case 'DDD':
|
@@ -152,12 +140,14 @@
|
|
152
140
|
return number + '-го';
|
153
141
|
default:
|
154
142
|
return number;
|
155
|
-
}
|
156
|
-
},
|
157
|
-
|
158
|
-
week : {
|
159
|
-
dow : 1, // Monday is the first day of the week.
|
160
|
-
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
161
143
|
}
|
162
|
-
}
|
163
|
-
|
144
|
+
},
|
145
|
+
week : {
|
146
|
+
dow : 1, // Monday is the first day of the week.
|
147
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
148
|
+
}
|
149
|
+
});
|
150
|
+
|
151
|
+
return uk;
|
152
|
+
|
153
|
+
})));
|
@@ -0,0 +1,100 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Urdu [ur]
|
3
|
+
//! author : Sawood Alam : https://github.com/ibnesayeed
|
4
|
+
//! author : Zack : https://github.com/ZackVision
|
5
|
+
|
6
|
+
;(function (global, factory) {
|
7
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
8
|
+
&& typeof require === 'function' ? 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 months = [
|
15
|
+
'جنوری',
|
16
|
+
'فروری',
|
17
|
+
'مارچ',
|
18
|
+
'اپریل',
|
19
|
+
'مئی',
|
20
|
+
'جون',
|
21
|
+
'جولائی',
|
22
|
+
'اگست',
|
23
|
+
'ستمبر',
|
24
|
+
'اکتوبر',
|
25
|
+
'نومبر',
|
26
|
+
'دسمبر'
|
27
|
+
];
|
28
|
+
var days = [
|
29
|
+
'اتوار',
|
30
|
+
'پیر',
|
31
|
+
'منگل',
|
32
|
+
'بدھ',
|
33
|
+
'جمعرات',
|
34
|
+
'جمعہ',
|
35
|
+
'ہفتہ'
|
36
|
+
];
|
37
|
+
|
38
|
+
var ur = moment.defineLocale('ur', {
|
39
|
+
months : months,
|
40
|
+
monthsShort : months,
|
41
|
+
weekdays : days,
|
42
|
+
weekdaysShort : days,
|
43
|
+
weekdaysMin : days,
|
44
|
+
longDateFormat : {
|
45
|
+
LT : 'HH:mm',
|
46
|
+
LTS : 'HH:mm:ss',
|
47
|
+
L : 'DD/MM/YYYY',
|
48
|
+
LL : 'D MMMM YYYY',
|
49
|
+
LLL : 'D MMMM YYYY HH:mm',
|
50
|
+
LLLL : 'dddd، D MMMM YYYY HH:mm'
|
51
|
+
},
|
52
|
+
meridiemParse: /صبح|شام/,
|
53
|
+
isPM : function (input) {
|
54
|
+
return 'شام' === input;
|
55
|
+
},
|
56
|
+
meridiem : function (hour, minute, isLower) {
|
57
|
+
if (hour < 12) {
|
58
|
+
return 'صبح';
|
59
|
+
}
|
60
|
+
return 'شام';
|
61
|
+
},
|
62
|
+
calendar : {
|
63
|
+
sameDay : '[آج بوقت] LT',
|
64
|
+
nextDay : '[کل بوقت] LT',
|
65
|
+
nextWeek : 'dddd [بوقت] LT',
|
66
|
+
lastDay : '[گذشتہ روز بوقت] LT',
|
67
|
+
lastWeek : '[گذشتہ] dddd [بوقت] LT',
|
68
|
+
sameElse : 'L'
|
69
|
+
},
|
70
|
+
relativeTime : {
|
71
|
+
future : '%s بعد',
|
72
|
+
past : '%s قبل',
|
73
|
+
s : 'چند سیکنڈ',
|
74
|
+
ss : '%d سیکنڈ',
|
75
|
+
m : 'ایک منٹ',
|
76
|
+
mm : '%d منٹ',
|
77
|
+
h : 'ایک گھنٹہ',
|
78
|
+
hh : '%d گھنٹے',
|
79
|
+
d : 'ایک دن',
|
80
|
+
dd : '%d دن',
|
81
|
+
M : 'ایک ماہ',
|
82
|
+
MM : '%d ماہ',
|
83
|
+
y : 'ایک سال',
|
84
|
+
yy : '%d سال'
|
85
|
+
},
|
86
|
+
preparse: function (string) {
|
87
|
+
return string.replace(/،/g, ',');
|
88
|
+
},
|
89
|
+
postformat: function (string) {
|
90
|
+
return string.replace(/,/g, '،');
|
91
|
+
},
|
92
|
+
week : {
|
93
|
+
dow : 1, // Monday is the first day of the week.
|
94
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
95
|
+
}
|
96
|
+
});
|
97
|
+
|
98
|
+
return ur;
|
99
|
+
|
100
|
+
})));
|
@@ -0,0 +1,59 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Uzbek Latin [uz-latn]
|
3
|
+
//! author : Rasulbek Mirzayev : github.com/Rasulbeeek
|
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 uzLatn = moment.defineLocale('uz-latn', {
|
14
|
+
months : 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'),
|
15
|
+
monthsShort : 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
|
16
|
+
weekdays : 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'),
|
17
|
+
weekdaysShort : 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
|
18
|
+
weekdaysMin : 'Ya_Du_Se_Cho_Pa_Ju_Sha'.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 : 'D MMMM YYYY, dddd HH:mm'
|
26
|
+
},
|
27
|
+
calendar : {
|
28
|
+
sameDay : '[Bugun soat] LT [da]',
|
29
|
+
nextDay : '[Ertaga] LT [da]',
|
30
|
+
nextWeek : 'dddd [kuni soat] LT [da]',
|
31
|
+
lastDay : '[Kecha soat] LT [da]',
|
32
|
+
lastWeek : '[O\'tgan] dddd [kuni soat] LT [da]',
|
33
|
+
sameElse : 'L'
|
34
|
+
},
|
35
|
+
relativeTime : {
|
36
|
+
future : 'Yaqin %s ichida',
|
37
|
+
past : 'Bir necha %s oldin',
|
38
|
+
s : 'soniya',
|
39
|
+
ss : '%d soniya',
|
40
|
+
m : 'bir daqiqa',
|
41
|
+
mm : '%d daqiqa',
|
42
|
+
h : 'bir soat',
|
43
|
+
hh : '%d soat',
|
44
|
+
d : 'bir kun',
|
45
|
+
dd : '%d kun',
|
46
|
+
M : 'bir oy',
|
47
|
+
MM : '%d oy',
|
48
|
+
y : 'bir yil',
|
49
|
+
yy : '%d yil'
|
50
|
+
},
|
51
|
+
week : {
|
52
|
+
dow : 1, // Monday is the first day of the week.
|
53
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
54
|
+
}
|
55
|
+
});
|
56
|
+
|
57
|
+
return uzLatn;
|
58
|
+
|
59
|
+
})));
|