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
@@ -0,0 +1,127 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Kannada [kn]
|
3
|
+
//! author : Rajeev Naik : https://github.com/rajeevnaikte
|
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 symbolMap = {
|
14
|
+
'1': '೧',
|
15
|
+
'2': '೨',
|
16
|
+
'3': '೩',
|
17
|
+
'4': '೪',
|
18
|
+
'5': '೫',
|
19
|
+
'6': '೬',
|
20
|
+
'7': '೭',
|
21
|
+
'8': '೮',
|
22
|
+
'9': '೯',
|
23
|
+
'0': '೦'
|
24
|
+
};
|
25
|
+
var numberMap = {
|
26
|
+
'೧': '1',
|
27
|
+
'೨': '2',
|
28
|
+
'೩': '3',
|
29
|
+
'೪': '4',
|
30
|
+
'೫': '5',
|
31
|
+
'೬': '6',
|
32
|
+
'೭': '7',
|
33
|
+
'೮': '8',
|
34
|
+
'೯': '9',
|
35
|
+
'೦': '0'
|
36
|
+
};
|
37
|
+
|
38
|
+
var kn = moment.defineLocale('kn', {
|
39
|
+
months : 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'),
|
40
|
+
monthsShort : 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬ_ಅಕ್ಟೋಬ_ನವೆಂಬ_ಡಿಸೆಂಬ'.split('_'),
|
41
|
+
monthsParseExact: true,
|
42
|
+
weekdays : 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'),
|
43
|
+
weekdaysShort : 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
|
44
|
+
weekdaysMin : 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
|
45
|
+
longDateFormat : {
|
46
|
+
LT : 'A h:mm',
|
47
|
+
LTS : 'A h:mm:ss',
|
48
|
+
L : 'DD/MM/YYYY',
|
49
|
+
LL : 'D MMMM YYYY',
|
50
|
+
LLL : 'D MMMM YYYY, A h:mm',
|
51
|
+
LLLL : 'dddd, D MMMM YYYY, A h:mm'
|
52
|
+
},
|
53
|
+
calendar : {
|
54
|
+
sameDay : '[ಇಂದು] LT',
|
55
|
+
nextDay : '[ನಾಳೆ] LT',
|
56
|
+
nextWeek : 'dddd, LT',
|
57
|
+
lastDay : '[ನಿನ್ನೆ] LT',
|
58
|
+
lastWeek : '[ಕೊನೆಯ] dddd, LT',
|
59
|
+
sameElse : 'L'
|
60
|
+
},
|
61
|
+
relativeTime : {
|
62
|
+
future : '%s ನಂತರ',
|
63
|
+
past : '%s ಹಿಂದೆ',
|
64
|
+
s : 'ಕೆಲವು ಕ್ಷಣಗಳು',
|
65
|
+
ss : '%d ಸೆಕೆಂಡುಗಳು',
|
66
|
+
m : 'ಒಂದು ನಿಮಿಷ',
|
67
|
+
mm : '%d ನಿಮಿಷ',
|
68
|
+
h : 'ಒಂದು ಗಂಟೆ',
|
69
|
+
hh : '%d ಗಂಟೆ',
|
70
|
+
d : 'ಒಂದು ದಿನ',
|
71
|
+
dd : '%d ದಿನ',
|
72
|
+
M : 'ಒಂದು ತಿಂಗಳು',
|
73
|
+
MM : '%d ತಿಂಗಳು',
|
74
|
+
y : 'ಒಂದು ವರ್ಷ',
|
75
|
+
yy : '%d ವರ್ಷ'
|
76
|
+
},
|
77
|
+
preparse: function (string) {
|
78
|
+
return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
|
79
|
+
return numberMap[match];
|
80
|
+
});
|
81
|
+
},
|
82
|
+
postformat: function (string) {
|
83
|
+
return string.replace(/\d/g, function (match) {
|
84
|
+
return symbolMap[match];
|
85
|
+
});
|
86
|
+
},
|
87
|
+
meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
|
88
|
+
meridiemHour : function (hour, meridiem) {
|
89
|
+
if (hour === 12) {
|
90
|
+
hour = 0;
|
91
|
+
}
|
92
|
+
if (meridiem === 'ರಾತ್ರಿ') {
|
93
|
+
return hour < 4 ? hour : hour + 12;
|
94
|
+
} else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
|
95
|
+
return hour;
|
96
|
+
} else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
|
97
|
+
return hour >= 10 ? hour : hour + 12;
|
98
|
+
} else if (meridiem === 'ಸಂಜೆ') {
|
99
|
+
return hour + 12;
|
100
|
+
}
|
101
|
+
},
|
102
|
+
meridiem : function (hour, minute, isLower) {
|
103
|
+
if (hour < 4) {
|
104
|
+
return 'ರಾತ್ರಿ';
|
105
|
+
} else if (hour < 10) {
|
106
|
+
return 'ಬೆಳಿಗ್ಗೆ';
|
107
|
+
} else if (hour < 17) {
|
108
|
+
return 'ಮಧ್ಯಾಹ್ನ';
|
109
|
+
} else if (hour < 20) {
|
110
|
+
return 'ಸಂಜೆ';
|
111
|
+
} else {
|
112
|
+
return 'ರಾತ್ರಿ';
|
113
|
+
}
|
114
|
+
},
|
115
|
+
dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
|
116
|
+
ordinal : function (number) {
|
117
|
+
return number + 'ನೇ';
|
118
|
+
},
|
119
|
+
week : {
|
120
|
+
dow : 0, // Sunday is the first day of the week.
|
121
|
+
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
122
|
+
}
|
123
|
+
});
|
124
|
+
|
125
|
+
return kn;
|
126
|
+
|
127
|
+
})));
|
@@ -1,65 +1,83 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
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
|
-
|
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
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Korean [ko]
|
3
|
+
//! author : Kyungwook, Park : https://github.com/kyungw00k
|
4
|
+
//! author : Jeeeyul Lee <jeeeyul@gmail.com>
|
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 ko = moment.defineLocale('ko', {
|
15
|
+
months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
|
16
|
+
monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
|
17
|
+
weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
|
18
|
+
weekdaysShort : '일_월_화_수_목_금_토'.split('_'),
|
19
|
+
weekdaysMin : '일_월_화_수_목_금_토'.split('_'),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : 'A h:mm',
|
22
|
+
LTS : 'A h:mm:ss',
|
23
|
+
L : 'YYYY.MM.DD',
|
24
|
+
LL : 'YYYY년 MMMM D일',
|
25
|
+
LLL : 'YYYY년 MMMM D일 A h:mm',
|
26
|
+
LLLL : 'YYYY년 MMMM D일 dddd A h:mm',
|
27
|
+
l : 'YYYY.MM.DD',
|
28
|
+
ll : 'YYYY년 MMMM D일',
|
29
|
+
lll : 'YYYY년 MMMM D일 A h:mm',
|
30
|
+
llll : 'YYYY년 MMMM D일 dddd A h:mm'
|
31
|
+
},
|
32
|
+
calendar : {
|
33
|
+
sameDay : '오늘 LT',
|
34
|
+
nextDay : '내일 LT',
|
35
|
+
nextWeek : 'dddd LT',
|
36
|
+
lastDay : '어제 LT',
|
37
|
+
lastWeek : '지난주 dddd LT',
|
38
|
+
sameElse : 'L'
|
39
|
+
},
|
40
|
+
relativeTime : {
|
41
|
+
future : '%s 후',
|
42
|
+
past : '%s 전',
|
43
|
+
s : '몇 초',
|
44
|
+
ss : '%d초',
|
45
|
+
m : '1분',
|
46
|
+
mm : '%d분',
|
47
|
+
h : '한 시간',
|
48
|
+
hh : '%d시간',
|
49
|
+
d : '하루',
|
50
|
+
dd : '%d일',
|
51
|
+
M : '한 달',
|
52
|
+
MM : '%d달',
|
53
|
+
y : '일 년',
|
54
|
+
yy : '%d년'
|
55
|
+
},
|
56
|
+
dayOfMonthOrdinalParse : /\d{1,2}(일|월|주)/,
|
57
|
+
ordinal : function (number, period) {
|
58
|
+
switch (period) {
|
59
|
+
case 'd':
|
60
|
+
case 'D':
|
61
|
+
case 'DDD':
|
62
|
+
return number + '일';
|
63
|
+
case 'M':
|
64
|
+
return number + '월';
|
65
|
+
case 'w':
|
66
|
+
case 'W':
|
67
|
+
return number + '주';
|
68
|
+
default:
|
69
|
+
return number;
|
63
70
|
}
|
64
|
-
}
|
65
|
-
|
71
|
+
},
|
72
|
+
meridiemParse : /오전|오후/,
|
73
|
+
isPM : function (token) {
|
74
|
+
return token === '오후';
|
75
|
+
},
|
76
|
+
meridiem : function (hour, minute, isUpper) {
|
77
|
+
return hour < 12 ? '오전' : '오후';
|
78
|
+
}
|
79
|
+
});
|
80
|
+
|
81
|
+
return ko;
|
82
|
+
|
83
|
+
})));
|
@@ -0,0 +1,89 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Kyrgyz [ky]
|
3
|
+
//! author : Chyngyz Arystan uulu : https://github.com/chyngyz
|
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
|
+
|
14
|
+
var suffixes = {
|
15
|
+
0: '-чү',
|
16
|
+
1: '-чи',
|
17
|
+
2: '-чи',
|
18
|
+
3: '-чү',
|
19
|
+
4: '-чү',
|
20
|
+
5: '-чи',
|
21
|
+
6: '-чы',
|
22
|
+
7: '-чи',
|
23
|
+
8: '-чи',
|
24
|
+
9: '-чу',
|
25
|
+
10: '-чу',
|
26
|
+
20: '-чы',
|
27
|
+
30: '-чу',
|
28
|
+
40: '-чы',
|
29
|
+
50: '-чү',
|
30
|
+
60: '-чы',
|
31
|
+
70: '-чи',
|
32
|
+
80: '-чи',
|
33
|
+
90: '-чу',
|
34
|
+
100: '-чү'
|
35
|
+
};
|
36
|
+
|
37
|
+
var ky = moment.defineLocale('ky', {
|
38
|
+
months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
|
39
|
+
monthsShort : 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
|
40
|
+
weekdays : 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),
|
41
|
+
weekdaysShort : 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
|
42
|
+
weekdaysMin : 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
|
43
|
+
longDateFormat : {
|
44
|
+
LT : 'HH:mm',
|
45
|
+
LTS : 'HH:mm:ss',
|
46
|
+
L : 'DD.MM.YYYY',
|
47
|
+
LL : 'D MMMM YYYY',
|
48
|
+
LLL : 'D MMMM YYYY HH:mm',
|
49
|
+
LLLL : 'dddd, D MMMM YYYY HH:mm'
|
50
|
+
},
|
51
|
+
calendar : {
|
52
|
+
sameDay : '[Бүгүн саат] LT',
|
53
|
+
nextDay : '[Эртең саат] LT',
|
54
|
+
nextWeek : 'dddd [саат] LT',
|
55
|
+
lastDay : '[Кече саат] LT',
|
56
|
+
lastWeek : '[Өткен аптанын] dddd [күнү] [саат] LT',
|
57
|
+
sameElse : 'L'
|
58
|
+
},
|
59
|
+
relativeTime : {
|
60
|
+
future : '%s ичинде',
|
61
|
+
past : '%s мурун',
|
62
|
+
s : 'бирнече секунд',
|
63
|
+
ss : '%d секунд',
|
64
|
+
m : 'бир мүнөт',
|
65
|
+
mm : '%d мүнөт',
|
66
|
+
h : 'бир саат',
|
67
|
+
hh : '%d саат',
|
68
|
+
d : 'бир күн',
|
69
|
+
dd : '%d күн',
|
70
|
+
M : 'бир ай',
|
71
|
+
MM : '%d ай',
|
72
|
+
y : 'бир жыл',
|
73
|
+
yy : '%d жыл'
|
74
|
+
},
|
75
|
+
dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
|
76
|
+
ordinal : function (number) {
|
77
|
+
var a = number % 10,
|
78
|
+
b = number >= 100 ? 100 : null;
|
79
|
+
return number + (suffixes[number] || suffixes[a] || suffixes[b]);
|
80
|
+
},
|
81
|
+
week : {
|
82
|
+
dow : 1, // Monday is the first day of the week.
|
83
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
84
|
+
}
|
85
|
+
});
|
86
|
+
|
87
|
+
return ky;
|
88
|
+
|
89
|
+
})));
|
@@ -1,139 +1,138 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Luxembourgish [lb]
|
3
|
+
//! author : mweimerskirch : https://github.com/mweimerskirch
|
4
|
+
//! author : David Raison : https://github.com/kwisatz
|
4
5
|
|
5
|
-
|
6
|
-
|
7
|
-
|
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';
|
8
12
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
|
14
|
+
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
15
|
+
var format = {
|
16
|
+
'm': ['eng Minutt', 'enger Minutt'],
|
17
|
+
'h': ['eng Stonn', 'enger Stonn'],
|
18
|
+
'd': ['een Dag', 'engem Dag'],
|
19
|
+
'M': ['ee Mount', 'engem Mount'],
|
20
|
+
'y': ['ee Joer', 'engem Joer']
|
21
|
+
};
|
22
|
+
return withoutSuffix ? format[key][0] : format[key][1];
|
23
|
+
}
|
24
|
+
function processFutureTime(string) {
|
25
|
+
var number = string.substr(0, string.indexOf(' '));
|
26
|
+
if (eifelerRegelAppliesToNumber(number)) {
|
27
|
+
return 'a ' + string;
|
16
28
|
}
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
'M': ['ee Mount', 'engem Mount'],
|
24
|
-
'y': ['ee Joer', 'engem Joer']
|
25
|
-
};
|
26
|
-
return withoutSuffix ? format[key][0] : format[key][1];
|
29
|
+
return 'an ' + string;
|
30
|
+
}
|
31
|
+
function processPastTime(string) {
|
32
|
+
var number = string.substr(0, string.indexOf(' '));
|
33
|
+
if (eifelerRegelAppliesToNumber(number)) {
|
34
|
+
return 'viru ' + string;
|
27
35
|
}
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
36
|
+
return 'virun ' + string;
|
37
|
+
}
|
38
|
+
/**
|
39
|
+
* Returns true if the word before the given number loses the '-n' ending.
|
40
|
+
* e.g. 'an 10 Deeg' but 'a 5 Deeg'
|
41
|
+
*
|
42
|
+
* @param number {integer}
|
43
|
+
* @returns {boolean}
|
44
|
+
*/
|
45
|
+
function eifelerRegelAppliesToNumber(number) {
|
46
|
+
number = parseInt(number, 10);
|
47
|
+
if (isNaN(number)) {
|
48
|
+
return false;
|
35
49
|
}
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
50
|
+
if (number < 0) {
|
51
|
+
// Negative Number --> always true
|
52
|
+
return true;
|
53
|
+
} else if (number < 10) {
|
54
|
+
// Only 1 digit
|
55
|
+
if (4 <= number && number <= 7) {
|
56
|
+
return true;
|
41
57
|
}
|
42
|
-
return
|
43
|
-
}
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
*
|
49
|
-
* @param number {integer}
|
50
|
-
* @returns {boolean}
|
51
|
-
*/
|
52
|
-
function eifelerRegelAppliesToNumber(number) {
|
53
|
-
number = parseInt(number, 10);
|
54
|
-
if (isNaN(number)) {
|
55
|
-
return false;
|
58
|
+
return false;
|
59
|
+
} else if (number < 100) {
|
60
|
+
// 2 digits
|
61
|
+
var lastDigit = number % 10, firstDigit = number / 10;
|
62
|
+
if (lastDigit === 0) {
|
63
|
+
return eifelerRegelAppliesToNumber(firstDigit);
|
56
64
|
}
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
if (4 <= number && number <= 7) {
|
63
|
-
return true;
|
64
|
-
}
|
65
|
-
return false;
|
66
|
-
} else if (number < 100) {
|
67
|
-
// 2 digits
|
68
|
-
var lastDigit = number % 10, firstDigit = number / 10;
|
69
|
-
if (lastDigit === 0) {
|
70
|
-
return eifelerRegelAppliesToNumber(firstDigit);
|
71
|
-
}
|
72
|
-
return eifelerRegelAppliesToNumber(lastDigit);
|
73
|
-
} else if (number < 10000) {
|
74
|
-
// 3 or 4 digits --> recursively check first digit
|
75
|
-
while (number >= 10) {
|
76
|
-
number = number / 10;
|
77
|
-
}
|
78
|
-
return eifelerRegelAppliesToNumber(number);
|
79
|
-
} else {
|
80
|
-
// Anything larger than 4 digits: recursively check first n-3 digits
|
81
|
-
number = number / 1000;
|
82
|
-
return eifelerRegelAppliesToNumber(number);
|
65
|
+
return eifelerRegelAppliesToNumber(lastDigit);
|
66
|
+
} else if (number < 10000) {
|
67
|
+
// 3 or 4 digits --> recursively check first digit
|
68
|
+
while (number >= 10) {
|
69
|
+
number = number / 10;
|
83
70
|
}
|
71
|
+
return eifelerRegelAppliesToNumber(number);
|
72
|
+
} else {
|
73
|
+
// Anything larger than 4 digits: recursively check first n-3 digits
|
74
|
+
number = number / 1000;
|
75
|
+
return eifelerRegelAppliesToNumber(number);
|
84
76
|
}
|
77
|
+
}
|
85
78
|
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
79
|
+
var lb = moment.defineLocale('lb', {
|
80
|
+
months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
|
81
|
+
monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
|
82
|
+
monthsParseExact : true,
|
83
|
+
weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
|
84
|
+
weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
|
85
|
+
weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
|
86
|
+
weekdaysParseExact : true,
|
87
|
+
longDateFormat: {
|
88
|
+
LT: 'H:mm [Auer]',
|
89
|
+
LTS: 'H:mm:ss [Auer]',
|
90
|
+
L: 'DD.MM.YYYY',
|
91
|
+
LL: 'D. MMMM YYYY',
|
92
|
+
LLL: 'D. MMMM YYYY H:mm [Auer]',
|
93
|
+
LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
|
94
|
+
},
|
95
|
+
calendar: {
|
96
|
+
sameDay: '[Haut um] LT',
|
97
|
+
sameElse: 'L',
|
98
|
+
nextDay: '[Muer um] LT',
|
99
|
+
nextWeek: 'dddd [um] LT',
|
100
|
+
lastDay: '[Gëschter um] LT',
|
101
|
+
lastWeek: function () {
|
102
|
+
// Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
|
103
|
+
switch (this.day()) {
|
104
|
+
case 2:
|
105
|
+
case 4:
|
106
|
+
return '[Leschten] dddd [um] LT';
|
107
|
+
default:
|
108
|
+
return '[Leschte] dddd [um] LT';
|
115
109
|
}
|
116
|
-
},
|
117
|
-
relativeTime : {
|
118
|
-
future : processFutureTime,
|
119
|
-
past : processPastTime,
|
120
|
-
s : 'e puer Sekonnen',
|
121
|
-
m : processRelativeTime,
|
122
|
-
mm : '%d Minutten',
|
123
|
-
h : processRelativeTime,
|
124
|
-
hh : '%d Stonnen',
|
125
|
-
d : processRelativeTime,
|
126
|
-
dd : '%d Deeg',
|
127
|
-
M : processRelativeTime,
|
128
|
-
MM : '%d Méint',
|
129
|
-
y : processRelativeTime,
|
130
|
-
yy : '%d Joer'
|
131
|
-
},
|
132
|
-
ordinalParse: /\d{1,2}\./,
|
133
|
-
ordinal: '%d.',
|
134
|
-
week: {
|
135
|
-
dow: 1, // Monday is the first day of the week.
|
136
|
-
doy: 4 // The week that contains Jan 4th is the first week of the year.
|
137
110
|
}
|
138
|
-
}
|
139
|
-
|
111
|
+
},
|
112
|
+
relativeTime : {
|
113
|
+
future : processFutureTime,
|
114
|
+
past : processPastTime,
|
115
|
+
s : 'e puer Sekonnen',
|
116
|
+
ss : '%d Sekonnen',
|
117
|
+
m : processRelativeTime,
|
118
|
+
mm : '%d Minutten',
|
119
|
+
h : processRelativeTime,
|
120
|
+
hh : '%d Stonnen',
|
121
|
+
d : processRelativeTime,
|
122
|
+
dd : '%d Deeg',
|
123
|
+
M : processRelativeTime,
|
124
|
+
MM : '%d Méint',
|
125
|
+
y : processRelativeTime,
|
126
|
+
yy : '%d Joer'
|
127
|
+
},
|
128
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
129
|
+
ordinal: '%d.',
|
130
|
+
week: {
|
131
|
+
dow: 1, // Monday is the first day of the week.
|
132
|
+
doy: 4 // The week that contains Jan 4th is the first week of the year.
|
133
|
+
}
|
134
|
+
});
|
135
|
+
|
136
|
+
return lb;
|
137
|
+
|
138
|
+
})));
|