momentjs-rails 2.15.1 → 2.17.1
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 -0
- data/test/integration/navigation_test.rb +1 -1
- data/vendor/assets/javascripts/moment.js +3653 -3586
- data/vendor/assets/javascripts/moment/af.js +59 -59
- data/vendor/assets/javascripts/moment/ar-dz.js +59 -0
- data/vendor/assets/javascripts/moment/ar-ly.js +111 -107
- data/vendor/assets/javascripts/moment/ar-ma.js +46 -46
- data/vendor/assets/javascripts/moment/ar-sa.js +90 -89
- data/vendor/assets/javascripts/moment/ar-tn.js +46 -46
- data/vendor/assets/javascripts/moment/ar.js +125 -120
- data/vendor/assets/javascripts/moment/az.js +90 -90
- data/vendor/assets/javascripts/moment/be.js +112 -112
- data/vendor/assets/javascripts/moment/bg.js +74 -74
- data/vendor/assets/javascripts/moment/bn.js +104 -104
- data/vendor/assets/javascripts/moment/bo.js +104 -104
- data/vendor/assets/javascripts/moment/br.js +89 -89
- data/vendor/assets/javascripts/moment/bs.js +125 -125
- data/vendor/assets/javascripts/moment/ca.js +63 -63
- data/vendor/assets/javascripts/moment/cs.js +154 -154
- data/vendor/assets/javascripts/moment/cv.js +49 -49
- data/vendor/assets/javascripts/moment/cy.js +65 -65
- data/vendor/assets/javascripts/moment/da.js +47 -47
- data/vendor/assets/javascripts/moment/de-at.js +62 -62
- data/vendor/assets/javascripts/moment/de.js +62 -62
- data/vendor/assets/javascripts/moment/dv.js +84 -83
- data/vendor/assets/javascripts/moment/el.js +81 -81
- data/vendor/assets/javascripts/moment/en-au.js +54 -54
- data/vendor/assets/javascripts/moment/en-ca.js +50 -50
- data/vendor/assets/javascripts/moment/en-gb.js +54 -54
- data/vendor/assets/javascripts/moment/en-ie.js +54 -54
- data/vendor/assets/javascripts/moment/en-nz.js +54 -54
- data/vendor/assets/javascripts/moment/eo.js +57 -57
- data/vendor/assets/javascripts/moment/es-do.js +63 -63
- data/vendor/assets/javascripts/moment/es.js +63 -63
- data/vendor/assets/javascripts/moment/et.js +64 -64
- data/vendor/assets/javascripts/moment/eu.js +53 -53
- data/vendor/assets/javascripts/moment/fa.js +92 -91
- data/vendor/assets/javascripts/moment/fi.js +92 -92
- data/vendor/assets/javascripts/moment/fo.js +47 -47
- data/vendor/assets/javascripts/moment/fr-ca.js +47 -47
- data/vendor/assets/javascripts/moment/fr-ch.js +51 -51
- data/vendor/assets/javascripts/moment/fr.js +51 -51
- data/vendor/assets/javascripts/moment/fy.js +58 -58
- data/vendor/assets/javascripts/moment/gd.js +58 -58
- data/vendor/assets/javascripts/moment/gl.js +61 -61
- data/vendor/assets/javascripts/moment/he.js +78 -78
- data/vendor/assets/javascripts/moment/hi.js +109 -109
- data/vendor/assets/javascripts/moment/hr.js +128 -128
- data/vendor/assets/javascripts/moment/hu.js +92 -92
- data/vendor/assets/javascripts/moment/hy-am.js +79 -79
- data/vendor/assets/javascripts/moment/id.js +68 -68
- data/vendor/assets/javascripts/moment/is.js +106 -106
- data/vendor/assets/javascripts/moment/it.js +54 -54
- data/vendor/assets/javascripts/moment/ja.js +62 -62
- data/vendor/assets/javascripts/moment/jv.js +69 -69
- data/vendor/assets/javascripts/moment/ka.js +71 -71
- data/vendor/assets/javascripts/moment/kk.js +73 -73
- data/vendor/assets/javascripts/moment/km.js +45 -45
- data/vendor/assets/javascripts/moment/ko.js +51 -51
- data/vendor/assets/javascripts/moment/ky.js +73 -73
- data/vendor/assets/javascripts/moment/lb.js +114 -114
- data/vendor/assets/javascripts/moment/lo.js +56 -56
- data/vendor/assets/javascripts/moment/lt.js +100 -100
- data/vendor/assets/javascripts/moment/lv.js +81 -81
- data/vendor/assets/javascripts/moment/me.js +93 -93
- data/vendor/assets/javascripts/moment/mi.js +51 -51
- data/vendor/assets/javascripts/moment/mk.js +74 -74
- data/vendor/assets/javascripts/moment/ml.js +67 -67
- data/vendor/assets/javascripts/moment/mr.js +139 -139
- data/vendor/assets/javascripts/moment/ms-my.js +68 -68
- data/vendor/assets/javascripts/moment/ms.js +68 -68
- data/vendor/assets/javascripts/moment/my.js +79 -78
- data/vendor/assets/javascripts/moment/nb.js +49 -49
- data/vendor/assets/javascripts/moment/ne.js +108 -108
- data/vendor/assets/javascripts/moment/nl-be.js +86 -0
- data/vendor/assets/javascripts/moment/nl.js +67 -67
- data/vendor/assets/javascripts/moment/nn.js +47 -47
- data/vendor/assets/javascripts/moment/pa-in.js +109 -109
- data/vendor/assets/javascripts/moment/pl.js +88 -88
- data/vendor/assets/javascripts/moment/pt-br.js +47 -47
- data/vendor/assets/javascripts/moment/pt.js +51 -51
- data/vendor/assets/javascripts/moment/ro.js +59 -59
- data/vendor/assets/javascripts/moment/ru.js +153 -153
- data/vendor/assets/javascripts/moment/se.js +47 -47
- data/vendor/assets/javascripts/moment/si.js +57 -57
- data/vendor/assets/javascripts/moment/sk.js +132 -132
- data/vendor/assets/javascripts/moment/sl.js +144 -144
- data/vendor/assets/javascripts/moment/sq.js +55 -55
- data/vendor/assets/javascripts/moment/sr-cyrl.js +93 -93
- data/vendor/assets/javascripts/moment/sr.js +93 -93
- data/vendor/assets/javascripts/moment/ss.js +73 -73
- data/vendor/assets/javascripts/moment/sv.js +56 -56
- data/vendor/assets/javascripts/moment/sw.js +46 -46
- data/vendor/assets/javascripts/moment/ta.js +115 -114
- data/vendor/assets/javascripts/moment/te.js +75 -75
- data/vendor/assets/javascripts/moment/tet.js +68 -0
- data/vendor/assets/javascripts/moment/th.js +53 -53
- data/vendor/assets/javascripts/moment/tl-ph.js +49 -49
- data/vendor/assets/javascripts/moment/tlh.js +100 -100
- data/vendor/assets/javascripts/moment/tr.js +74 -74
- data/vendor/assets/javascripts/moment/tzl.js +75 -75
- data/vendor/assets/javascripts/moment/tzm-latn.js +45 -45
- data/vendor/assets/javascripts/moment/tzm.js +45 -45
- data/vendor/assets/javascripts/moment/uk.js +125 -125
- data/vendor/assets/javascripts/moment/uz.js +45 -45
- data/vendor/assets/javascripts/moment/vi.js +65 -65
- data/vendor/assets/javascripts/moment/x-pseudo.js +55 -55
- data/vendor/assets/javascripts/moment/yo.js +60 -0
- data/vendor/assets/javascripts/moment/zh-cn.js +107 -107
- data/vendor/assets/javascripts/moment/zh-hk.js +89 -89
- data/vendor/assets/javascripts/moment/zh-tw.js +89 -89
- metadata +6 -2
@@ -7,99 +7,99 @@
|
|
7
7
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
8
8
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
9
9
|
factory(global.moment)
|
10
|
-
}(this, function (moment) { 'use strict';
|
10
|
+
}(this, (function (moment) { 'use strict';
|
11
11
|
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
13
|
+
var suffixes = {
|
14
|
+
1: '-inci',
|
15
|
+
5: '-inci',
|
16
|
+
8: '-inci',
|
17
|
+
70: '-inci',
|
18
|
+
80: '-inci',
|
19
|
+
2: '-nci',
|
20
|
+
7: '-nci',
|
21
|
+
20: '-nci',
|
22
|
+
50: '-nci',
|
23
|
+
3: '-üncü',
|
24
|
+
4: '-üncü',
|
25
|
+
100: '-üncü',
|
26
|
+
6: '-ncı',
|
27
|
+
9: '-uncu',
|
28
|
+
10: '-uncu',
|
29
|
+
30: '-uncu',
|
30
|
+
60: '-ıncı',
|
31
|
+
90: '-ıncı'
|
32
|
+
};
|
33
33
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
}
|
86
|
-
},
|
87
|
-
ordinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
|
88
|
-
ordinal : function (number) {
|
89
|
-
if (number === 0) { // special case for zero
|
90
|
-
return number + '-ıncı';
|
91
|
-
}
|
92
|
-
var a = number % 10,
|
93
|
-
b = number % 100 - a,
|
94
|
-
c = number >= 100 ? 100 : null;
|
95
|
-
return number + (suffixes[a] || suffixes[b] || suffixes[c]);
|
96
|
-
},
|
97
|
-
week : {
|
98
|
-
dow : 1, // Monday is the first day of the week.
|
99
|
-
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
34
|
+
var az = moment.defineLocale('az', {
|
35
|
+
months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
|
36
|
+
monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
|
37
|
+
weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
|
38
|
+
weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
|
39
|
+
weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
|
40
|
+
weekdaysParseExact : true,
|
41
|
+
longDateFormat : {
|
42
|
+
LT : 'HH:mm',
|
43
|
+
LTS : 'HH:mm:ss',
|
44
|
+
L : 'DD.MM.YYYY',
|
45
|
+
LL : 'D MMMM YYYY',
|
46
|
+
LLL : 'D MMMM YYYY HH:mm',
|
47
|
+
LLLL : 'dddd, D MMMM YYYY HH:mm'
|
48
|
+
},
|
49
|
+
calendar : {
|
50
|
+
sameDay : '[bugün saat] LT',
|
51
|
+
nextDay : '[sabah saat] LT',
|
52
|
+
nextWeek : '[gələn həftə] dddd [saat] LT',
|
53
|
+
lastDay : '[dünən] LT',
|
54
|
+
lastWeek : '[keçən həftə] dddd [saat] LT',
|
55
|
+
sameElse : 'L'
|
56
|
+
},
|
57
|
+
relativeTime : {
|
58
|
+
future : '%s sonra',
|
59
|
+
past : '%s əvvəl',
|
60
|
+
s : 'birneçə saniyyə',
|
61
|
+
m : 'bir dəqiqə',
|
62
|
+
mm : '%d dəqiqə',
|
63
|
+
h : 'bir saat',
|
64
|
+
hh : '%d saat',
|
65
|
+
d : 'bir gün',
|
66
|
+
dd : '%d gün',
|
67
|
+
M : 'bir ay',
|
68
|
+
MM : '%d ay',
|
69
|
+
y : 'bir il',
|
70
|
+
yy : '%d il'
|
71
|
+
},
|
72
|
+
meridiemParse: /gecə|səhər|gündüz|axşam/,
|
73
|
+
isPM : function (input) {
|
74
|
+
return /^(gündüz|axşam)$/.test(input);
|
75
|
+
},
|
76
|
+
meridiem : function (hour, minute, isLower) {
|
77
|
+
if (hour < 4) {
|
78
|
+
return 'gecə';
|
79
|
+
} else if (hour < 12) {
|
80
|
+
return 'səhər';
|
81
|
+
} else if (hour < 17) {
|
82
|
+
return 'gündüz';
|
83
|
+
} else {
|
84
|
+
return 'axşam';
|
100
85
|
}
|
101
|
-
}
|
86
|
+
},
|
87
|
+
ordinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
|
88
|
+
ordinal : function (number) {
|
89
|
+
if (number === 0) { // special case for zero
|
90
|
+
return number + '-ıncı';
|
91
|
+
}
|
92
|
+
var a = number % 10,
|
93
|
+
b = number % 100 - a,
|
94
|
+
c = number >= 100 ? 100 : null;
|
95
|
+
return number + (suffixes[a] || suffixes[b] || suffixes[c]);
|
96
|
+
},
|
97
|
+
week : {
|
98
|
+
dow : 1, // Monday is the first day of the week.
|
99
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
100
|
+
}
|
101
|
+
});
|
102
102
|
|
103
|
-
|
103
|
+
return az;
|
104
104
|
|
105
|
-
}));
|
105
|
+
})));
|
@@ -9,126 +9,126 @@
|
|
9
9
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
10
10
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
11
11
|
factory(global.moment)
|
12
|
-
}(this, function (moment) { 'use strict';
|
12
|
+
}(this, (function (moment) { 'use strict';
|
13
13
|
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
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
|
+
function relativeTimeWithPlural(number, withoutSuffix, key) {
|
20
|
+
var format = {
|
21
|
+
'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
|
22
|
+
'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
|
23
|
+
'dd': 'дзень_дні_дзён',
|
24
|
+
'MM': 'месяц_месяцы_месяцаў',
|
25
|
+
'yy': 'год_гады_гадоў'
|
26
|
+
};
|
27
|
+
if (key === 'm') {
|
28
|
+
return withoutSuffix ? 'хвіліна' : 'хвіліну';
|
18
29
|
}
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
'MM': 'месяц_месяцы_месяцаў',
|
25
|
-
'yy': 'год_гады_гадоў'
|
26
|
-
};
|
27
|
-
if (key === 'm') {
|
28
|
-
return withoutSuffix ? 'хвіліна' : 'хвіліну';
|
29
|
-
}
|
30
|
-
else if (key === 'h') {
|
31
|
-
return withoutSuffix ? 'гадзіна' : 'гадзіну';
|
32
|
-
}
|
33
|
-
else {
|
34
|
-
return number + ' ' + plural(format[key], +number);
|
35
|
-
}
|
30
|
+
else if (key === 'h') {
|
31
|
+
return withoutSuffix ? 'гадзіна' : 'гадзіну';
|
32
|
+
}
|
33
|
+
else {
|
34
|
+
return number + ' ' + plural(format[key], +number);
|
36
35
|
}
|
36
|
+
}
|
37
37
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
},
|
66
|
-
lastWeek: function () {
|
67
|
-
switch (this.day()) {
|
68
|
-
case 0:
|
69
|
-
case 3:
|
70
|
-
case 5:
|
71
|
-
case 6:
|
72
|
-
return '[У мінулую] dddd [ў] LT';
|
73
|
-
case 1:
|
74
|
-
case 2:
|
75
|
-
case 4:
|
76
|
-
return '[У мінулы] dddd [ў] LT';
|
77
|
-
}
|
78
|
-
},
|
79
|
-
sameElse: 'L'
|
38
|
+
var be = moment.defineLocale('be', {
|
39
|
+
months : {
|
40
|
+
format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
|
41
|
+
standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
|
42
|
+
},
|
43
|
+
monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
|
44
|
+
weekdays : {
|
45
|
+
format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
|
46
|
+
standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
|
47
|
+
isFormat: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/
|
48
|
+
},
|
49
|
+
weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
|
50
|
+
weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
|
51
|
+
longDateFormat : {
|
52
|
+
LT : 'HH:mm',
|
53
|
+
LTS : 'HH:mm:ss',
|
54
|
+
L : 'DD.MM.YYYY',
|
55
|
+
LL : 'D MMMM YYYY г.',
|
56
|
+
LLL : 'D MMMM YYYY г., HH:mm',
|
57
|
+
LLLL : 'dddd, D MMMM YYYY г., HH:mm'
|
58
|
+
},
|
59
|
+
calendar : {
|
60
|
+
sameDay: '[Сёння ў] LT',
|
61
|
+
nextDay: '[Заўтра ў] LT',
|
62
|
+
lastDay: '[Учора ў] LT',
|
63
|
+
nextWeek: function () {
|
64
|
+
return '[У] dddd [ў] LT';
|
80
65
|
},
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
MM : relativeTimeWithPlural,
|
93
|
-
y : 'год',
|
94
|
-
yy : relativeTimeWithPlural
|
95
|
-
},
|
96
|
-
meridiemParse: /ночы|раніцы|дня|вечара/,
|
97
|
-
isPM : function (input) {
|
98
|
-
return /^(дня|вечара)$/.test(input);
|
99
|
-
},
|
100
|
-
meridiem : function (hour, minute, isLower) {
|
101
|
-
if (hour < 4) {
|
102
|
-
return 'ночы';
|
103
|
-
} else if (hour < 12) {
|
104
|
-
return 'раніцы';
|
105
|
-
} else if (hour < 17) {
|
106
|
-
return 'дня';
|
107
|
-
} else {
|
108
|
-
return 'вечара';
|
109
|
-
}
|
110
|
-
},
|
111
|
-
ordinalParse: /\d{1,2}-(і|ы|га)/,
|
112
|
-
ordinal: function (number, period) {
|
113
|
-
switch (period) {
|
114
|
-
case 'M':
|
115
|
-
case 'd':
|
116
|
-
case 'DDD':
|
117
|
-
case 'w':
|
118
|
-
case 'W':
|
119
|
-
return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
|
120
|
-
case 'D':
|
121
|
-
return number + '-га';
|
122
|
-
default:
|
123
|
-
return number;
|
66
|
+
lastWeek: function () {
|
67
|
+
switch (this.day()) {
|
68
|
+
case 0:
|
69
|
+
case 3:
|
70
|
+
case 5:
|
71
|
+
case 6:
|
72
|
+
return '[У мінулую] dddd [ў] LT';
|
73
|
+
case 1:
|
74
|
+
case 2:
|
75
|
+
case 4:
|
76
|
+
return '[У мінулы] dddd [ў] LT';
|
124
77
|
}
|
125
78
|
},
|
126
|
-
|
127
|
-
|
128
|
-
|
79
|
+
sameElse: 'L'
|
80
|
+
},
|
81
|
+
relativeTime : {
|
82
|
+
future : 'праз %s',
|
83
|
+
past : '%s таму',
|
84
|
+
s : 'некалькі секунд',
|
85
|
+
m : relativeTimeWithPlural,
|
86
|
+
mm : relativeTimeWithPlural,
|
87
|
+
h : relativeTimeWithPlural,
|
88
|
+
hh : relativeTimeWithPlural,
|
89
|
+
d : 'дзень',
|
90
|
+
dd : relativeTimeWithPlural,
|
91
|
+
M : 'месяц',
|
92
|
+
MM : relativeTimeWithPlural,
|
93
|
+
y : 'год',
|
94
|
+
yy : relativeTimeWithPlural
|
95
|
+
},
|
96
|
+
meridiemParse: /ночы|раніцы|дня|вечара/,
|
97
|
+
isPM : function (input) {
|
98
|
+
return /^(дня|вечара)$/.test(input);
|
99
|
+
},
|
100
|
+
meridiem : function (hour, minute, isLower) {
|
101
|
+
if (hour < 4) {
|
102
|
+
return 'ночы';
|
103
|
+
} else if (hour < 12) {
|
104
|
+
return 'раніцы';
|
105
|
+
} else if (hour < 17) {
|
106
|
+
return 'дня';
|
107
|
+
} else {
|
108
|
+
return 'вечара';
|
109
|
+
}
|
110
|
+
},
|
111
|
+
ordinalParse: /\d{1,2}-(і|ы|га)/,
|
112
|
+
ordinal: function (number, period) {
|
113
|
+
switch (period) {
|
114
|
+
case 'M':
|
115
|
+
case 'd':
|
116
|
+
case 'DDD':
|
117
|
+
case 'w':
|
118
|
+
case 'W':
|
119
|
+
return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
|
120
|
+
case 'D':
|
121
|
+
return number + '-га';
|
122
|
+
default:
|
123
|
+
return number;
|
129
124
|
}
|
130
|
-
}
|
125
|
+
},
|
126
|
+
week : {
|
127
|
+
dow : 1, // Monday is the first day of the week.
|
128
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
129
|
+
}
|
130
|
+
});
|
131
131
|
|
132
|
-
|
132
|
+
return be;
|
133
133
|
|
134
|
-
}));
|
134
|
+
})));
|
@@ -7,84 +7,84 @@
|
|
7
7
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
8
8
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
9
9
|
factory(global.moment)
|
10
|
-
}(this, function (moment) { 'use strict';
|
10
|
+
}(this, (function (moment) { 'use strict';
|
11
11
|
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
}
|
44
|
-
},
|
45
|
-
sameElse : 'L'
|
46
|
-
},
|
47
|
-
relativeTime : {
|
48
|
-
future : 'след %s',
|
49
|
-
past : 'преди %s',
|
50
|
-
s : 'няколко секунди',
|
51
|
-
m : 'минута',
|
52
|
-
mm : '%d минути',
|
53
|
-
h : 'час',
|
54
|
-
hh : '%d часа',
|
55
|
-
d : 'ден',
|
56
|
-
dd : '%d дни',
|
57
|
-
M : 'месец',
|
58
|
-
MM : '%d месеца',
|
59
|
-
y : 'година',
|
60
|
-
yy : '%d години'
|
61
|
-
},
|
62
|
-
ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
|
63
|
-
ordinal : function (number) {
|
64
|
-
var lastDigit = number % 10,
|
65
|
-
last2Digits = number % 100;
|
66
|
-
if (number === 0) {
|
67
|
-
return number + '-ев';
|
68
|
-
} else if (last2Digits === 0) {
|
69
|
-
return number + '-ен';
|
70
|
-
} else if (last2Digits > 10 && last2Digits < 20) {
|
71
|
-
return number + '-ти';
|
72
|
-
} else if (lastDigit === 1) {
|
73
|
-
return number + '-ви';
|
74
|
-
} else if (lastDigit === 2) {
|
75
|
-
return number + '-ри';
|
76
|
-
} else if (lastDigit === 7 || lastDigit === 8) {
|
77
|
-
return number + '-ми';
|
78
|
-
} else {
|
79
|
-
return number + '-ти';
|
13
|
+
var bg = moment.defineLocale('bg', {
|
14
|
+
months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
|
15
|
+
monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
|
16
|
+
weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
|
17
|
+
weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
|
18
|
+
weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
|
19
|
+
longDateFormat : {
|
20
|
+
LT : 'H:mm',
|
21
|
+
LTS : 'H:mm:ss',
|
22
|
+
L : 'D.MM.YYYY',
|
23
|
+
LL : 'D MMMM YYYY',
|
24
|
+
LLL : 'D MMMM YYYY H:mm',
|
25
|
+
LLLL : 'dddd, D MMMM YYYY H:mm'
|
26
|
+
},
|
27
|
+
calendar : {
|
28
|
+
sameDay : '[Днес в] LT',
|
29
|
+
nextDay : '[Утре в] LT',
|
30
|
+
nextWeek : 'dddd [в] LT',
|
31
|
+
lastDay : '[Вчера в] LT',
|
32
|
+
lastWeek : function () {
|
33
|
+
switch (this.day()) {
|
34
|
+
case 0:
|
35
|
+
case 3:
|
36
|
+
case 6:
|
37
|
+
return '[В изминалата] dddd [в] LT';
|
38
|
+
case 1:
|
39
|
+
case 2:
|
40
|
+
case 4:
|
41
|
+
case 5:
|
42
|
+
return '[В изминалия] dddd [в] LT';
|
80
43
|
}
|
81
44
|
},
|
82
|
-
|
83
|
-
|
84
|
-
|
45
|
+
sameElse : 'L'
|
46
|
+
},
|
47
|
+
relativeTime : {
|
48
|
+
future : 'след %s',
|
49
|
+
past : 'преди %s',
|
50
|
+
s : 'няколко секунди',
|
51
|
+
m : 'минута',
|
52
|
+
mm : '%d минути',
|
53
|
+
h : 'час',
|
54
|
+
hh : '%d часа',
|
55
|
+
d : 'ден',
|
56
|
+
dd : '%d дни',
|
57
|
+
M : 'месец',
|
58
|
+
MM : '%d месеца',
|
59
|
+
y : 'година',
|
60
|
+
yy : '%d години'
|
61
|
+
},
|
62
|
+
ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
|
63
|
+
ordinal : function (number) {
|
64
|
+
var lastDigit = number % 10,
|
65
|
+
last2Digits = number % 100;
|
66
|
+
if (number === 0) {
|
67
|
+
return number + '-ев';
|
68
|
+
} else if (last2Digits === 0) {
|
69
|
+
return number + '-ен';
|
70
|
+
} else if (last2Digits > 10 && last2Digits < 20) {
|
71
|
+
return number + '-ти';
|
72
|
+
} else if (lastDigit === 1) {
|
73
|
+
return number + '-ви';
|
74
|
+
} else if (lastDigit === 2) {
|
75
|
+
return number + '-ри';
|
76
|
+
} else if (lastDigit === 7 || lastDigit === 8) {
|
77
|
+
return number + '-ми';
|
78
|
+
} else {
|
79
|
+
return number + '-ти';
|
85
80
|
}
|
86
|
-
}
|
81
|
+
},
|
82
|
+
week : {
|
83
|
+
dow : 1, // Monday is the first day of the week.
|
84
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
85
|
+
}
|
86
|
+
});
|
87
87
|
|
88
|
-
|
88
|
+
return bg;
|
89
89
|
|
90
|
-
}));
|
90
|
+
})));
|