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,107 +1,106 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Azerbaijani [az]
|
3
|
+
//! author : topchiyev : https://github.com/topchiyev
|
4
4
|
|
5
|
-
(function (factory) {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
|
12
|
-
}
|
13
|
-
}(function (moment) {
|
14
|
-
var suffixes = {
|
15
|
-
1: '-inci',
|
16
|
-
5: '-inci',
|
17
|
-
8: '-inci',
|
18
|
-
70: '-inci',
|
19
|
-
80: '-inci',
|
20
|
-
|
21
|
-
2: '-nci',
|
22
|
-
7: '-nci',
|
23
|
-
20: '-nci',
|
24
|
-
50: '-nci',
|
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';
|
25
11
|
|
26
|
-
3: '-üncü',
|
27
|
-
4: '-üncü',
|
28
|
-
100: '-üncü',
|
29
12
|
|
30
|
-
|
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
|
+
};
|
31
33
|
|
32
|
-
|
33
|
-
|
34
|
-
|
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
|
+
ss : '%d saniyə',
|
62
|
+
m : 'bir dəqiqə',
|
63
|
+
mm : '%d dəqiqə',
|
64
|
+
h : 'bir saat',
|
65
|
+
hh : '%d saat',
|
66
|
+
d : 'bir gün',
|
67
|
+
dd : '%d gün',
|
68
|
+
M : 'bir ay',
|
69
|
+
MM : '%d ay',
|
70
|
+
y : 'bir il',
|
71
|
+
yy : '%d il'
|
72
|
+
},
|
73
|
+
meridiemParse: /gecə|səhər|gündüz|axşam/,
|
74
|
+
isPM : function (input) {
|
75
|
+
return /^(gündüz|axşam)$/.test(input);
|
76
|
+
},
|
77
|
+
meridiem : function (hour, minute, isLower) {
|
78
|
+
if (hour < 4) {
|
79
|
+
return 'gecə';
|
80
|
+
} else if (hour < 12) {
|
81
|
+
return 'səhər';
|
82
|
+
} else if (hour < 17) {
|
83
|
+
return 'gündüz';
|
84
|
+
} else {
|
85
|
+
return 'axşam';
|
86
|
+
}
|
87
|
+
},
|
88
|
+
dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
|
89
|
+
ordinal : function (number) {
|
90
|
+
if (number === 0) { // special case for zero
|
91
|
+
return number + '-ıncı';
|
92
|
+
}
|
93
|
+
var a = number % 10,
|
94
|
+
b = number % 100 - a,
|
95
|
+
c = number >= 100 ? 100 : null;
|
96
|
+
return number + (suffixes[a] || suffixes[b] || suffixes[c]);
|
97
|
+
},
|
98
|
+
week : {
|
99
|
+
dow : 1, // Monday is the first day of the week.
|
100
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
101
|
+
}
|
102
|
+
});
|
35
103
|
|
36
|
-
|
37
|
-
90: '-ıncı'
|
38
|
-
};
|
39
|
-
return moment.defineLocale('az', {
|
40
|
-
months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
|
41
|
-
monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
|
42
|
-
weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
|
43
|
-
weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
|
44
|
-
weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
|
45
|
-
longDateFormat : {
|
46
|
-
LT : 'HH:mm',
|
47
|
-
LTS : 'LT:ss',
|
48
|
-
L : 'DD.MM.YYYY',
|
49
|
-
LL : 'D MMMM YYYY',
|
50
|
-
LLL : 'D MMMM YYYY LT',
|
51
|
-
LLLL : 'dddd, D MMMM YYYY LT'
|
52
|
-
},
|
53
|
-
calendar : {
|
54
|
-
sameDay : '[bugün saat] LT',
|
55
|
-
nextDay : '[sabah saat] LT',
|
56
|
-
nextWeek : '[gələn həftə] dddd [saat] LT',
|
57
|
-
lastDay : '[dünən] LT',
|
58
|
-
lastWeek : '[keçən həftə] dddd [saat] LT',
|
59
|
-
sameElse : 'L'
|
60
|
-
},
|
61
|
-
relativeTime : {
|
62
|
-
future : '%s sonra',
|
63
|
-
past : '%s əvvəl',
|
64
|
-
s : 'birneçə saniyyə',
|
65
|
-
m : 'bir dəqiqə',
|
66
|
-
mm : '%d dəqiqə',
|
67
|
-
h : 'bir saat',
|
68
|
-
hh : '%d saat',
|
69
|
-
d : 'bir gün',
|
70
|
-
dd : '%d gün',
|
71
|
-
M : 'bir ay',
|
72
|
-
MM : '%d ay',
|
73
|
-
y : 'bir il',
|
74
|
-
yy : '%d il'
|
75
|
-
},
|
76
|
-
meridiemParse: /gecə|səhər|gündüz|axşam/,
|
77
|
-
isPM : function (input) {
|
78
|
-
return /^(gündüz|axşam)$/.test(input);
|
79
|
-
},
|
80
|
-
meridiem : function (hour, minute, isLower) {
|
81
|
-
if (hour < 4) {
|
82
|
-
return 'gecə';
|
83
|
-
} else if (hour < 12) {
|
84
|
-
return 'səhər';
|
85
|
-
} else if (hour < 17) {
|
86
|
-
return 'gündüz';
|
87
|
-
} else {
|
88
|
-
return 'axşam';
|
89
|
-
}
|
90
|
-
},
|
91
|
-
ordinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
|
92
|
-
ordinal : function (number) {
|
93
|
-
if (number === 0) { // special case for zero
|
94
|
-
return number + '-ıncı';
|
95
|
-
}
|
96
|
-
var a = number % 10,
|
97
|
-
b = number % 100 - a,
|
98
|
-
c = number >= 100 ? 100 : null;
|
104
|
+
return az;
|
99
105
|
|
100
|
-
|
101
|
-
},
|
102
|
-
week : {
|
103
|
-
dow : 1, // Monday is the first day of the week.
|
104
|
-
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
105
|
-
}
|
106
|
-
});
|
107
|
-
}));
|
106
|
+
})));
|
@@ -1,91 +1,71 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Belarusian [be]
|
3
|
+
//! author : Dmitry Demidov : https://github.com/demidov91
|
4
|
+
//! author: Praleska: http://praleska.pro/
|
5
|
+
//! Author : Menelion Elensúle : https://github.com/Oire
|
6
6
|
|
7
|
-
(function (factory) {
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
|
14
|
-
}
|
15
|
-
}(function (moment) {
|
16
|
-
function plural(word, num) {
|
17
|
-
var forms = word.split('_');
|
18
|
-
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]);
|
19
|
-
}
|
7
|
+
;(function (global, factory) {
|
8
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
9
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
10
|
+
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
11
|
+
factory(global.moment)
|
12
|
+
}(this, (function (moment) { 'use strict';
|
20
13
|
|
21
|
-
function relativeTimeWithPlural(number, withoutSuffix, key) {
|
22
|
-
var format = {
|
23
|
-
'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
|
24
|
-
'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
|
25
|
-
'dd': 'дзень_дні_дзён',
|
26
|
-
'MM': 'месяц_месяцы_месяцаў',
|
27
|
-
'yy': 'год_гады_гадоў'
|
28
|
-
};
|
29
|
-
if (key === 'm') {
|
30
|
-
return withoutSuffix ? 'хвіліна' : 'хвіліну';
|
31
|
-
}
|
32
|
-
else if (key === 'h') {
|
33
|
-
return withoutSuffix ? 'гадзіна' : 'гадзіну';
|
34
|
-
}
|
35
|
-
else {
|
36
|
-
return number + ' ' + plural(format[key], +number);
|
37
|
-
}
|
38
|
-
}
|
39
14
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
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
|
+
'ss': withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
|
22
|
+
'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
|
23
|
+
'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
|
24
|
+
'dd': 'дзень_дні_дзён',
|
25
|
+
'MM': 'месяц_месяцы_месяцаў',
|
26
|
+
'yy': 'год_гады_гадоў'
|
27
|
+
};
|
28
|
+
if (key === 'm') {
|
29
|
+
return withoutSuffix ? 'хвіліна' : 'хвіліну';
|
51
30
|
}
|
52
|
-
|
53
|
-
|
54
|
-
var weekdays = {
|
55
|
-
'nominative': 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
|
56
|
-
'accusative': 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_')
|
57
|
-
},
|
58
|
-
|
59
|
-
nounCase = (/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/).test(format) ?
|
60
|
-
'accusative' :
|
61
|
-
'nominative';
|
62
|
-
|
63
|
-
return weekdays[nounCase][m.day()];
|
31
|
+
else if (key === 'h') {
|
32
|
+
return withoutSuffix ? 'гадзіна' : 'гадзіну';
|
64
33
|
}
|
34
|
+
else {
|
35
|
+
return number + ' ' + plural(format[key], +number);
|
36
|
+
}
|
37
|
+
}
|
65
38
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
39
|
+
var be = moment.defineLocale('be', {
|
40
|
+
months : {
|
41
|
+
format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
|
42
|
+
standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
|
43
|
+
},
|
44
|
+
monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
|
45
|
+
weekdays : {
|
46
|
+
format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
|
47
|
+
standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
|
48
|
+
isFormat: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/
|
49
|
+
},
|
50
|
+
weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
|
51
|
+
weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
|
52
|
+
longDateFormat : {
|
53
|
+
LT : 'HH:mm',
|
54
|
+
LTS : 'HH:mm:ss',
|
55
|
+
L : 'DD.MM.YYYY',
|
56
|
+
LL : 'D MMMM YYYY г.',
|
57
|
+
LLL : 'D MMMM YYYY г., HH:mm',
|
58
|
+
LLLL : 'dddd, D MMMM YYYY г., HH:mm'
|
59
|
+
},
|
60
|
+
calendar : {
|
61
|
+
sameDay: '[Сёння ў] LT',
|
62
|
+
nextDay: '[Заўтра ў] LT',
|
63
|
+
lastDay: '[Учора ў] LT',
|
64
|
+
nextWeek: function () {
|
65
|
+
return '[У] dddd [ў] LT';
|
79
66
|
},
|
80
|
-
|
81
|
-
|
82
|
-
nextDay: '[Заўтра ў] LT',
|
83
|
-
lastDay: '[Учора ў] LT',
|
84
|
-
nextWeek: function () {
|
85
|
-
return '[У] dddd [ў] LT';
|
86
|
-
},
|
87
|
-
lastWeek: function () {
|
88
|
-
switch (this.day()) {
|
67
|
+
lastWeek: function () {
|
68
|
+
switch (this.day()) {
|
89
69
|
case 0:
|
90
70
|
case 3:
|
91
71
|
case 5:
|
@@ -95,44 +75,43 @@
|
|
95
75
|
case 2:
|
96
76
|
case 4:
|
97
77
|
return '[У мінулы] dddd [ў] LT';
|
98
|
-
}
|
99
|
-
},
|
100
|
-
sameElse: 'L'
|
101
|
-
},
|
102
|
-
relativeTime : {
|
103
|
-
future : 'праз %s',
|
104
|
-
past : '%s таму',
|
105
|
-
s : 'некалькі секунд',
|
106
|
-
m : relativeTimeWithPlural,
|
107
|
-
mm : relativeTimeWithPlural,
|
108
|
-
h : relativeTimeWithPlural,
|
109
|
-
hh : relativeTimeWithPlural,
|
110
|
-
d : 'дзень',
|
111
|
-
dd : relativeTimeWithPlural,
|
112
|
-
M : 'месяц',
|
113
|
-
MM : relativeTimeWithPlural,
|
114
|
-
y : 'год',
|
115
|
-
yy : relativeTimeWithPlural
|
116
|
-
},
|
117
|
-
meridiemParse: /ночы|раніцы|дня|вечара/,
|
118
|
-
isPM : function (input) {
|
119
|
-
return /^(дня|вечара)$/.test(input);
|
120
|
-
},
|
121
|
-
meridiem : function (hour, minute, isLower) {
|
122
|
-
if (hour < 4) {
|
123
|
-
return 'ночы';
|
124
|
-
} else if (hour < 12) {
|
125
|
-
return 'раніцы';
|
126
|
-
} else if (hour < 17) {
|
127
|
-
return 'дня';
|
128
|
-
} else {
|
129
|
-
return 'вечара';
|
130
78
|
}
|
131
79
|
},
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
80
|
+
sameElse: 'L'
|
81
|
+
},
|
82
|
+
relativeTime : {
|
83
|
+
future : 'праз %s',
|
84
|
+
past : '%s таму',
|
85
|
+
s : 'некалькі секунд',
|
86
|
+
m : relativeTimeWithPlural,
|
87
|
+
mm : relativeTimeWithPlural,
|
88
|
+
h : relativeTimeWithPlural,
|
89
|
+
hh : relativeTimeWithPlural,
|
90
|
+
d : 'дзень',
|
91
|
+
dd : relativeTimeWithPlural,
|
92
|
+
M : 'месяц',
|
93
|
+
MM : relativeTimeWithPlural,
|
94
|
+
y : 'год',
|
95
|
+
yy : relativeTimeWithPlural
|
96
|
+
},
|
97
|
+
meridiemParse: /ночы|раніцы|дня|вечара/,
|
98
|
+
isPM : function (input) {
|
99
|
+
return /^(дня|вечара)$/.test(input);
|
100
|
+
},
|
101
|
+
meridiem : function (hour, minute, isLower) {
|
102
|
+
if (hour < 4) {
|
103
|
+
return 'ночы';
|
104
|
+
} else if (hour < 12) {
|
105
|
+
return 'раніцы';
|
106
|
+
} else if (hour < 17) {
|
107
|
+
return 'дня';
|
108
|
+
} else {
|
109
|
+
return 'вечара';
|
110
|
+
}
|
111
|
+
},
|
112
|
+
dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
|
113
|
+
ordinal: function (number, period) {
|
114
|
+
switch (period) {
|
136
115
|
case 'M':
|
137
116
|
case 'd':
|
138
117
|
case 'DDD':
|
@@ -143,12 +122,14 @@
|
|
143
122
|
return number + '-га';
|
144
123
|
default:
|
145
124
|
return number;
|
146
|
-
}
|
147
|
-
},
|
148
|
-
|
149
|
-
week : {
|
150
|
-
dow : 1, // Monday is the first day of the week.
|
151
|
-
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
152
125
|
}
|
153
|
-
}
|
154
|
-
|
126
|
+
},
|
127
|
+
week : {
|
128
|
+
dow : 1, // Monday is the first day of the week.
|
129
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
130
|
+
}
|
131
|
+
});
|
132
|
+
|
133
|
+
return be;
|
134
|
+
|
135
|
+
})));
|
@@ -1,37 +1,36 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Bulgarian [bg]
|
3
|
+
//! author : Krasen Borisov : https://github.com/kraz
|
4
4
|
|
5
|
-
(function (factory) {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
switch (this.day()) {
|
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 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()) {
|
35
34
|
case 0:
|
36
35
|
case 3:
|
37
36
|
case 6:
|
@@ -41,48 +40,52 @@
|
|
41
40
|
case 4:
|
42
41
|
case 5:
|
43
42
|
return '[В изминалия] dddd [в] LT';
|
44
|
-
}
|
45
|
-
},
|
46
|
-
sameElse : 'L'
|
47
|
-
},
|
48
|
-
relativeTime : {
|
49
|
-
future : 'след %s',
|
50
|
-
past : 'преди %s',
|
51
|
-
s : 'няколко секунди',
|
52
|
-
m : 'минута',
|
53
|
-
mm : '%d минути',
|
54
|
-
h : 'час',
|
55
|
-
hh : '%d часа',
|
56
|
-
d : 'ден',
|
57
|
-
dd : '%d дни',
|
58
|
-
M : 'месец',
|
59
|
-
MM : '%d месеца',
|
60
|
-
y : 'година',
|
61
|
-
yy : '%d години'
|
62
|
-
},
|
63
|
-
ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
|
64
|
-
ordinal : function (number) {
|
65
|
-
var lastDigit = number % 10,
|
66
|
-
last2Digits = number % 100;
|
67
|
-
if (number === 0) {
|
68
|
-
return number + '-ев';
|
69
|
-
} else if (last2Digits === 0) {
|
70
|
-
return number + '-ен';
|
71
|
-
} else if (last2Digits > 10 && last2Digits < 20) {
|
72
|
-
return number + '-ти';
|
73
|
-
} else if (lastDigit === 1) {
|
74
|
-
return number + '-ви';
|
75
|
-
} else if (lastDigit === 2) {
|
76
|
-
return number + '-ри';
|
77
|
-
} else if (lastDigit === 7 || lastDigit === 8) {
|
78
|
-
return number + '-ми';
|
79
|
-
} else {
|
80
|
-
return number + '-ти';
|
81
43
|
}
|
82
44
|
},
|
83
|
-
|
84
|
-
|
85
|
-
|
45
|
+
sameElse : 'L'
|
46
|
+
},
|
47
|
+
relativeTime : {
|
48
|
+
future : 'след %s',
|
49
|
+
past : 'преди %s',
|
50
|
+
s : 'няколко секунди',
|
51
|
+
ss : '%d секунди',
|
52
|
+
m : 'минута',
|
53
|
+
mm : '%d минути',
|
54
|
+
h : 'час',
|
55
|
+
hh : '%d часа',
|
56
|
+
d : 'ден',
|
57
|
+
dd : '%d дни',
|
58
|
+
M : 'месец',
|
59
|
+
MM : '%d месеца',
|
60
|
+
y : 'година',
|
61
|
+
yy : '%d години'
|
62
|
+
},
|
63
|
+
dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
|
64
|
+
ordinal : function (number) {
|
65
|
+
var lastDigit = number % 10,
|
66
|
+
last2Digits = number % 100;
|
67
|
+
if (number === 0) {
|
68
|
+
return number + '-ев';
|
69
|
+
} else if (last2Digits === 0) {
|
70
|
+
return number + '-ен';
|
71
|
+
} else if (last2Digits > 10 && last2Digits < 20) {
|
72
|
+
return number + '-ти';
|
73
|
+
} else if (lastDigit === 1) {
|
74
|
+
return number + '-ви';
|
75
|
+
} else if (lastDigit === 2) {
|
76
|
+
return number + '-ри';
|
77
|
+
} else if (lastDigit === 7 || lastDigit === 8) {
|
78
|
+
return number + '-ми';
|
79
|
+
} else {
|
80
|
+
return number + '-ти';
|
86
81
|
}
|
87
|
-
}
|
88
|
-
|
82
|
+
},
|
83
|
+
week : {
|
84
|
+
dow : 1, // Monday is the first day of the week.
|
85
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
86
|
+
}
|
87
|
+
});
|
88
|
+
|
89
|
+
return bg;
|
90
|
+
|
91
|
+
})));
|