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 : swedish (sv)
|
3
|
+
//! author : Jens Alm : https://github.com/ulmus
|
4
4
|
|
5
|
-
(function (factory) {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
}(function (moment) {
|
14
|
-
return moment.defineLocale('sv', {
|
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 sv = moment.defineLocale('sv', {
|
15
13
|
months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
|
16
14
|
monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
|
17
15
|
weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
|
@@ -62,4 +60,7 @@
|
|
62
60
|
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
63
61
|
}
|
64
62
|
});
|
65
|
-
|
63
|
+
|
64
|
+
return sv;
|
65
|
+
|
66
|
+
}));
|
@@ -1,42 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : tamil (ta)
|
3
|
+
//! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
|
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';
|
4
10
|
|
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
|
-
/*var symbolMap = {
|
15
|
-
'1': '௧',
|
16
|
-
'2': '௨',
|
17
|
-
'3': '௩',
|
18
|
-
'4': '௪',
|
19
|
-
'5': '௫',
|
20
|
-
'6': '௬',
|
21
|
-
'7': '௭',
|
22
|
-
'8': '௮',
|
23
|
-
'9': '௯',
|
24
|
-
'0': '௦'
|
25
|
-
},
|
26
|
-
numberMap = {
|
27
|
-
'௧': '1',
|
28
|
-
'௨': '2',
|
29
|
-
'௩': '3',
|
30
|
-
'௪': '4',
|
31
|
-
'௫': '5',
|
32
|
-
'௬': '6',
|
33
|
-
'௭': '7',
|
34
|
-
'௮': '8',
|
35
|
-
'௯': '9',
|
36
|
-
'௦': '0'
|
37
|
-
}; */
|
38
11
|
|
39
|
-
|
12
|
+
var ta = moment.defineLocale('ta', {
|
40
13
|
months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
|
41
14
|
monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
|
42
15
|
weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
|
@@ -73,22 +46,10 @@
|
|
73
46
|
y : 'ஒரு வருடம்',
|
74
47
|
yy : '%d ஆண்டுகள்'
|
75
48
|
},
|
76
|
-
/* preparse: function (string) {
|
77
|
-
return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
|
78
|
-
return numberMap[match];
|
79
|
-
});
|
80
|
-
},
|
81
|
-
postformat: function (string) {
|
82
|
-
return string.replace(/\d/g, function (match) {
|
83
|
-
return symbolMap[match];
|
84
|
-
});
|
85
|
-
},*/
|
86
49
|
ordinalParse: /\d{1,2}வது/,
|
87
50
|
ordinal : function (number) {
|
88
51
|
return number + 'வது';
|
89
52
|
},
|
90
|
-
|
91
|
-
|
92
53
|
// refer http://ta.wikipedia.org/s/1er1
|
93
54
|
meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
|
94
55
|
meridiem : function (hour, minute, isLower) {
|
@@ -127,4 +88,7 @@
|
|
127
88
|
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
128
89
|
}
|
129
90
|
});
|
130
|
-
|
91
|
+
|
92
|
+
return ta;
|
93
|
+
|
94
|
+
}));
|
@@ -1,17 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : thai (th)
|
3
|
+
//! author : Kridsada Thanabulpong : https://github.com/sirn
|
4
4
|
|
5
|
-
(function (factory) {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
}(function (moment) {
|
14
|
-
return moment.defineLocale('th', {
|
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 th = moment.defineLocale('th', {
|
15
13
|
months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
|
16
14
|
monthsShort : 'มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา'.split('_'),
|
17
15
|
weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
|
@@ -60,4 +58,7 @@
|
|
60
58
|
yy : '%d ปี'
|
61
59
|
}
|
62
60
|
});
|
63
|
-
|
61
|
+
|
62
|
+
return th;
|
63
|
+
|
64
|
+
}));
|
@@ -1,17 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Tagalog/Filipino (tl-ph)
|
3
|
+
//! author : Dan Hagman
|
4
4
|
|
5
|
-
(function (factory) {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
}(function (moment) {
|
14
|
-
return moment.defineLocale('tl-ph', {
|
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 tl_ph = moment.defineLocale('tl-ph', {
|
15
13
|
months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
|
16
14
|
monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
|
17
15
|
weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
|
@@ -57,4 +55,7 @@
|
|
57
55
|
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
58
56
|
}
|
59
57
|
});
|
60
|
-
|
58
|
+
|
59
|
+
return tl_ph;
|
60
|
+
|
61
|
+
}));
|
@@ -1,44 +1,37 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : turkish (tr)
|
3
|
+
//! authors : Erhan Gundogan : https://github.com/erhangundogan,
|
4
|
+
//! Burak Yiğit Kaya: https://github.com/BYK
|
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 suffixes = {
|
16
14
|
1: '\'inci',
|
17
15
|
5: '\'inci',
|
18
16
|
8: '\'inci',
|
19
17
|
70: '\'inci',
|
20
18
|
80: '\'inci',
|
21
|
-
|
22
19
|
2: '\'nci',
|
23
20
|
7: '\'nci',
|
24
21
|
20: '\'nci',
|
25
22
|
50: '\'nci',
|
26
|
-
|
27
23
|
3: '\'üncü',
|
28
24
|
4: '\'üncü',
|
29
25
|
100: '\'üncü',
|
30
|
-
|
31
26
|
6: '\'ncı',
|
32
|
-
|
33
27
|
9: '\'uncu',
|
34
28
|
10: '\'uncu',
|
35
29
|
30: '\'uncu',
|
36
|
-
|
37
30
|
60: '\'ıncı',
|
38
31
|
90: '\'ıncı'
|
39
32
|
};
|
40
33
|
|
41
|
-
|
34
|
+
var tr = moment.defineLocale('tr', {
|
42
35
|
months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
|
43
36
|
monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
|
44
37
|
weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
|
@@ -83,7 +76,6 @@
|
|
83
76
|
var a = number % 10,
|
84
77
|
b = number % 100 - a,
|
85
78
|
c = number >= 100 ? 100 : null;
|
86
|
-
|
87
79
|
return number + (suffixes[a] || suffixes[b] || suffixes[c]);
|
88
80
|
},
|
89
81
|
week : {
|
@@ -91,4 +83,7 @@
|
|
91
83
|
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
92
84
|
}
|
93
85
|
});
|
94
|
-
|
86
|
+
|
87
|
+
return tr;
|
88
|
+
|
89
|
+
}));
|
@@ -1,17 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Morocco Central Atlas Tamaziɣt in Latin (tzm-latn)
|
3
|
+
//! author : Abdel Said : https://github.com/abdelsaid
|
4
4
|
|
5
|
-
(function (factory) {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
}(function (moment) {
|
14
|
-
return moment.defineLocale('tzm-latn', {
|
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 tzm_latn = moment.defineLocale('tzm-latn', {
|
15
13
|
months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
|
16
14
|
monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
|
17
15
|
weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
|
@@ -53,4 +51,7 @@
|
|
53
51
|
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
54
52
|
}
|
55
53
|
});
|
56
|
-
|
54
|
+
|
55
|
+
return tzm_latn;
|
56
|
+
|
57
|
+
}));
|
@@ -1,17 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Morocco Central Atlas Tamaziɣt (tzm)
|
3
|
+
//! author : Abdel Said : https://github.com/abdelsaid
|
4
4
|
|
5
|
-
(function (factory) {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
}(function (moment) {
|
14
|
-
return moment.defineLocale('tzm', {
|
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 tzm = moment.defineLocale('tzm', {
|
15
13
|
months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
|
16
14
|
monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
|
17
15
|
weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
|
@@ -53,4 +51,7 @@
|
|
53
51
|
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
54
52
|
}
|
55
53
|
});
|
56
|
-
|
54
|
+
|
55
|
+
return tzm;
|
56
|
+
|
57
|
+
}));
|
@@ -1,22 +1,19 @@
|
|
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
|
+
|
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': 'хвилина_хвилини_хвилин',
|
@@ -35,43 +32,36 @@
|
|
35
32
|
return number + ' ' + plural(format[key], +number);
|
36
33
|
}
|
37
34
|
}
|
38
|
-
|
39
35
|
function monthsCaseReplace(m, format) {
|
40
36
|
var months = {
|
41
37
|
'nominative': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_'),
|
42
38
|
'accusative': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_')
|
43
39
|
},
|
44
|
-
|
45
40
|
nounCase = (/D[oD]? *MMMM?/).test(format) ?
|
46
41
|
'accusative' :
|
47
42
|
'nominative';
|
48
|
-
|
49
43
|
return months[nounCase][m.month()];
|
50
44
|
}
|
51
|
-
|
52
45
|
function weekdaysCaseReplace(m, format) {
|
53
46
|
var weekdays = {
|
54
47
|
'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
|
55
48
|
'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
|
56
49
|
'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
|
57
50
|
},
|
58
|
-
|
59
51
|
nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
|
60
52
|
'accusative' :
|
61
53
|
((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
|
62
54
|
'genitive' :
|
63
55
|
'nominative');
|
64
|
-
|
65
56
|
return weekdays[nounCase][m.day()];
|
66
57
|
}
|
67
|
-
|
68
58
|
function processHoursFunction(str) {
|
69
59
|
return function () {
|
70
60
|
return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
|
71
61
|
};
|
72
62
|
}
|
73
63
|
|
74
|
-
|
64
|
+
var uk = moment.defineLocale('uk', {
|
75
65
|
months : monthsCaseReplace,
|
76
66
|
monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
|
77
67
|
weekdays : weekdaysCaseReplace,
|
@@ -120,9 +110,7 @@
|
|
120
110
|
y : 'рік',
|
121
111
|
yy : relativeTimeWithPlural
|
122
112
|
},
|
123
|
-
|
124
113
|
// M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
|
125
|
-
|
126
114
|
meridiemParse: /ночі|ранку|дня|вечора/,
|
127
115
|
isPM: function (input) {
|
128
116
|
return /^(дня|вечора)$/.test(input);
|
@@ -138,7 +126,6 @@
|
|
138
126
|
return 'вечора';
|
139
127
|
}
|
140
128
|
},
|
141
|
-
|
142
129
|
ordinalParse: /\d{1,2}-(й|го)/,
|
143
130
|
ordinal: function (number, period) {
|
144
131
|
switch (period) {
|
@@ -154,10 +141,12 @@
|
|
154
141
|
return number;
|
155
142
|
}
|
156
143
|
},
|
157
|
-
|
158
144
|
week : {
|
159
145
|
dow : 1, // Monday is the first day of the week.
|
160
146
|
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
161
147
|
}
|
162
148
|
});
|
163
|
-
|
149
|
+
|
150
|
+
return uk;
|
151
|
+
|
152
|
+
}));
|