effective_bootstrap 0.4.8 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/app/assets/javascripts/effective_date/input.js +1 -1
- data/app/assets/javascripts/effective_datetime/input.js +1 -1
- data/app/assets/javascripts/effective_time/input.js +1 -1
- data/app/assets/javascripts/moment/locale/af.js +72 -0
- data/app/assets/javascripts/moment/locale/ar-dz.js +58 -0
- data/app/assets/javascripts/moment/locale/ar-kw.js +58 -0
- data/app/assets/javascripts/moment/locale/ar-ly.js +121 -0
- data/app/assets/javascripts/moment/locale/ar-ma.js +58 -0
- data/app/assets/javascripts/moment/locale/ar-sa.js +103 -0
- data/app/assets/javascripts/moment/locale/ar-tn.js +58 -0
- data/app/assets/javascripts/moment/locale/ar.js +134 -0
- data/app/assets/javascripts/moment/locale/az.js +104 -0
- data/app/assets/javascripts/moment/locale/be.js +131 -0
- data/app/assets/javascripts/moment/locale/bg.js +89 -0
- data/app/assets/javascripts/moment/locale/bm.js +57 -0
- data/app/assets/javascripts/moment/locale/bn.js +118 -0
- data/app/assets/javascripts/moment/locale/bo.js +118 -0
- data/app/assets/javascripts/moment/locale/br.js +107 -0
- data/app/assets/javascripts/moment/locale/bs.js +150 -0
- data/app/assets/javascripts/moment/locale/ca.js +87 -0
- data/app/assets/javascripts/moment/locale/cs.js +171 -0
- data/app/assets/javascripts/moment/locale/cv.js +62 -0
- data/app/assets/javascripts/moment/locale/cy.js +79 -0
- data/app/assets/javascripts/moment/locale/da.js +59 -0
- data/app/assets/javascripts/moment/locale/de-at.js +75 -0
- data/app/assets/javascripts/moment/locale/de-ch.js +75 -0
- data/app/assets/javascripts/moment/locale/de.js +75 -0
- data/app/assets/javascripts/moment/locale/dv.js +98 -0
- data/app/assets/javascripts/moment/locale/el.js +99 -0
- data/app/assets/javascripts/moment/locale/en-SG.js +66 -0
- data/app/assets/javascripts/moment/locale/en-au.js +66 -0
- data/app/assets/javascripts/moment/locale/en-ca.js +62 -0
- data/app/assets/javascripts/moment/locale/en-gb.js +66 -0
- data/app/assets/javascripts/moment/locale/en-ie.js +66 -0
- data/app/assets/javascripts/moment/locale/en-il.js +61 -0
- data/app/assets/javascripts/moment/locale/en-nz.js +66 -0
- data/app/assets/javascripts/moment/locale/eo.js +70 -0
- data/app/assets/javascripts/moment/locale/es-do.js +91 -0
- data/app/assets/javascripts/moment/locale/es-us.js +91 -0
- data/app/assets/javascripts/moment/locale/es.js +91 -0
- data/app/assets/javascripts/moment/locale/et.js +79 -0
- data/app/assets/javascripts/moment/locale/eu.js +65 -0
- data/app/assets/javascripts/moment/locale/fa.js +105 -0
- data/app/assets/javascripts/moment/locale/fi.js +108 -0
- data/app/assets/javascripts/moment/locale/fo.js +59 -0
- data/app/assets/javascripts/moment/locale/fr-ca.js +73 -0
- data/app/assets/javascripts/moment/locale/fr-ch.js +77 -0
- data/app/assets/javascripts/moment/locale/fr.js +82 -0
- data/app/assets/javascripts/moment/locale/fy.js +74 -0
- data/app/assets/javascripts/moment/locale/ga.js +76 -0
- data/app/assets/javascripts/moment/locale/gd.js +75 -0
- data/app/assets/javascripts/moment/locale/gl.js +76 -0
- data/app/assets/javascripts/moment/locale/gom-latn.js +122 -0
- data/app/assets/javascripts/moment/locale/gu.js +123 -0
- data/app/assets/javascripts/moment/locale/he.js +96 -0
- data/app/assets/javascripts/moment/locale/hi.js +123 -0
- data/app/assets/javascripts/moment/locale/hr.js +153 -0
- data/app/assets/javascripts/moment/locale/hu.js +109 -0
- data/app/assets/javascripts/moment/locale/hy-am.js +94 -0
- data/app/assets/javascripts/moment/locale/id.js +81 -0
- data/app/assets/javascripts/moment/locale/is.js +131 -0
- data/app/assets/javascripts/moment/locale/it-ch.js +68 -0
- data/app/assets/javascripts/moment/locale/it.js +68 -0
- data/app/assets/javascripts/moment/locale/ja.js +91 -0
- data/app/assets/javascripts/moment/locale/jv.js +81 -0
- data/app/assets/javascripts/moment/locale/ka.js +88 -0
- data/app/assets/javascripts/moment/locale/kk.js +86 -0
- data/app/assets/javascripts/moment/locale/km.js +109 -0
- data/app/assets/javascripts/moment/locale/kn.js +125 -0
- data/app/assets/javascripts/moment/locale/ko.js +80 -0
- data/app/assets/javascripts/moment/locale/ku.js +118 -0
- data/app/assets/javascripts/moment/locale/ky.js +86 -0
- data/app/assets/javascripts/moment/locale/lb.js +135 -0
- data/app/assets/javascripts/moment/locale/lo.js +69 -0
- data/app/assets/javascripts/moment/locale/lt.js +117 -0
- data/app/assets/javascripts/moment/locale/lv.js +96 -0
- data/app/assets/javascripts/moment/locale/me.js +111 -0
- data/app/assets/javascripts/moment/locale/mi.js +63 -0
- data/app/assets/javascripts/moment/locale/mk.js +89 -0
- data/app/assets/javascripts/moment/locale/ml.js +80 -0
- data/app/assets/javascripts/moment/locale/mn.js +103 -0
- data/app/assets/javascripts/moment/locale/mr.js +159 -0
- data/app/assets/javascripts/moment/locale/ms-my.js +81 -0
- data/app/assets/javascripts/moment/locale/ms.js +81 -0
- data/app/assets/javascripts/moment/locale/mt.js +59 -0
- data/app/assets/javascripts/moment/locale/my.js +92 -0
- data/app/assets/javascripts/moment/locale/nb.js +61 -0
- data/app/assets/javascripts/moment/locale/ne.js +122 -0
- data/app/assets/javascripts/moment/locale/nl-be.js +86 -0
- data/app/assets/javascripts/moment/locale/nl.js +86 -0
- data/app/assets/javascripts/moment/locale/nn.js +59 -0
- data/app/assets/javascripts/moment/locale/pa-in.js +123 -0
- data/app/assets/javascripts/moment/locale/pl.js +125 -0
- data/app/assets/javascripts/moment/locale/pt-br.js +60 -0
- data/app/assets/javascripts/moment/locale/pt.js +64 -0
- data/app/assets/javascripts/moment/locale/ro.js +74 -0
- data/app/assets/javascripts/moment/locale/ru.js +181 -0
- data/app/assets/javascripts/moment/locale/sd.js +97 -0
- data/app/assets/javascripts/moment/locale/se.js +59 -0
- data/app/assets/javascripts/moment/locale/si.js +70 -0
- data/app/assets/javascripts/moment/locale/sk.js +155 -0
- data/app/assets/javascripts/moment/locale/sl.js +172 -0
- data/app/assets/javascripts/moment/locale/sq.js +67 -0
- data/app/assets/javascripts/moment/locale/sr-cyrl.js +110 -0
- data/app/assets/javascripts/moment/locale/sr.js +110 -0
- data/app/assets/javascripts/moment/locale/ss.js +87 -0
- data/app/assets/javascripts/moment/locale/sv.js +68 -0
- data/app/assets/javascripts/moment/locale/sw.js +58 -0
- data/app/assets/javascripts/moment/locale/ta.js +128 -0
- data/app/assets/javascripts/moment/locale/te.js +88 -0
- data/app/assets/javascripts/moment/locale/tet.js +66 -0
- data/app/assets/javascripts/moment/locale/tg.js +115 -0
- data/app/assets/javascripts/moment/locale/th.js +66 -0
- data/app/assets/javascripts/moment/locale/tl-ph.js +61 -0
- data/app/assets/javascripts/moment/locale/tlh.js +121 -0
- data/app/assets/javascripts/moment/locale/tr.js +93 -0
- data/app/assets/javascripts/moment/locale/tzl.js +90 -0
- data/app/assets/javascripts/moment/locale/tzm-latn.js +57 -0
- data/app/assets/javascripts/moment/locale/tzm.js +57 -0
- data/app/assets/javascripts/moment/locale/ug-cn.js +118 -0
- data/app/assets/javascripts/moment/locale/uk.js +153 -0
- data/app/assets/javascripts/moment/locale/ur.js +97 -0
- data/app/assets/javascripts/moment/locale/uz-latn.js +57 -0
- data/app/assets/javascripts/moment/locale/uz.js +57 -0
- data/app/assets/javascripts/moment/locale/vi.js +78 -0
- data/app/assets/javascripts/moment/locale/x-pseudo.js +67 -0
- data/app/assets/javascripts/moment/locale/yo.js +59 -0
- data/app/assets/javascripts/moment/locale/zh-cn.js +109 -0
- data/app/assets/javascripts/moment/locale/zh-hk.js +102 -0
- data/app/assets/javascripts/moment/locale/zh-tw.js +102 -0
- data/app/assets/javascripts/moment/moment.js +4603 -0
- data/lib/effective_bootstrap/version.rb +1 -1
- metadata +129 -2
- data/app/assets/javascripts/effective_datetime/moment.js +0 -4535
@@ -0,0 +1,80 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
|
3
|
+
;(function (global, factory) {
|
4
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
5
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
6
|
+
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
7
|
+
factory(global.moment)
|
8
|
+
}(this, (function (moment) { 'use strict';
|
9
|
+
|
10
|
+
|
11
|
+
var ko = moment.defineLocale('ko', {
|
12
|
+
months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
|
13
|
+
monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
|
14
|
+
weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
|
15
|
+
weekdaysShort : '일_월_화_수_목_금_토'.split('_'),
|
16
|
+
weekdaysMin : '일_월_화_수_목_금_토'.split('_'),
|
17
|
+
longDateFormat : {
|
18
|
+
LT : 'A h:mm',
|
19
|
+
LTS : 'A h:mm:ss',
|
20
|
+
L : 'YYYY.MM.DD.',
|
21
|
+
LL : 'YYYY년 MMMM D일',
|
22
|
+
LLL : 'YYYY년 MMMM D일 A h:mm',
|
23
|
+
LLLL : 'YYYY년 MMMM D일 dddd A h:mm',
|
24
|
+
l : 'YYYY.MM.DD.',
|
25
|
+
ll : 'YYYY년 MMMM D일',
|
26
|
+
lll : 'YYYY년 MMMM D일 A h:mm',
|
27
|
+
llll : 'YYYY년 MMMM D일 dddd A h:mm'
|
28
|
+
},
|
29
|
+
calendar : {
|
30
|
+
sameDay : '오늘 LT',
|
31
|
+
nextDay : '내일 LT',
|
32
|
+
nextWeek : 'dddd LT',
|
33
|
+
lastDay : '어제 LT',
|
34
|
+
lastWeek : '지난주 dddd LT',
|
35
|
+
sameElse : 'L'
|
36
|
+
},
|
37
|
+
relativeTime : {
|
38
|
+
future : '%s 후',
|
39
|
+
past : '%s 전',
|
40
|
+
s : '몇 초',
|
41
|
+
ss : '%d초',
|
42
|
+
m : '1분',
|
43
|
+
mm : '%d분',
|
44
|
+
h : '한 시간',
|
45
|
+
hh : '%d시간',
|
46
|
+
d : '하루',
|
47
|
+
dd : '%d일',
|
48
|
+
M : '한 달',
|
49
|
+
MM : '%d달',
|
50
|
+
y : '일 년',
|
51
|
+
yy : '%d년'
|
52
|
+
},
|
53
|
+
dayOfMonthOrdinalParse : /\d{1,2}(일|월|주)/,
|
54
|
+
ordinal : function (number, period) {
|
55
|
+
switch (period) {
|
56
|
+
case 'd':
|
57
|
+
case 'D':
|
58
|
+
case 'DDD':
|
59
|
+
return number + '일';
|
60
|
+
case 'M':
|
61
|
+
return number + '월';
|
62
|
+
case 'w':
|
63
|
+
case 'W':
|
64
|
+
return number + '주';
|
65
|
+
default:
|
66
|
+
return number;
|
67
|
+
}
|
68
|
+
},
|
69
|
+
meridiemParse : /오전|오후/,
|
70
|
+
isPM : function (token) {
|
71
|
+
return token === '오후';
|
72
|
+
},
|
73
|
+
meridiem : function (hour, minute, isUpper) {
|
74
|
+
return hour < 12 ? '오전' : '오후';
|
75
|
+
}
|
76
|
+
});
|
77
|
+
|
78
|
+
return ko;
|
79
|
+
|
80
|
+
})));
|
@@ -0,0 +1,118 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
|
3
|
+
;(function (global, factory) {
|
4
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
5
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
6
|
+
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
7
|
+
factory(global.moment)
|
8
|
+
}(this, (function (moment) { 'use strict';
|
9
|
+
|
10
|
+
|
11
|
+
var symbolMap = {
|
12
|
+
'1': '١',
|
13
|
+
'2': '٢',
|
14
|
+
'3': '٣',
|
15
|
+
'4': '٤',
|
16
|
+
'5': '٥',
|
17
|
+
'6': '٦',
|
18
|
+
'7': '٧',
|
19
|
+
'8': '٨',
|
20
|
+
'9': '٩',
|
21
|
+
'0': '٠'
|
22
|
+
}, numberMap = {
|
23
|
+
'١': '1',
|
24
|
+
'٢': '2',
|
25
|
+
'٣': '3',
|
26
|
+
'٤': '4',
|
27
|
+
'٥': '5',
|
28
|
+
'٦': '6',
|
29
|
+
'٧': '7',
|
30
|
+
'٨': '8',
|
31
|
+
'٩': '9',
|
32
|
+
'٠': '0'
|
33
|
+
},
|
34
|
+
months = [
|
35
|
+
'کانونی دووەم',
|
36
|
+
'شوبات',
|
37
|
+
'ئازار',
|
38
|
+
'نیسان',
|
39
|
+
'ئایار',
|
40
|
+
'حوزەیران',
|
41
|
+
'تەمموز',
|
42
|
+
'ئاب',
|
43
|
+
'ئەیلوول',
|
44
|
+
'تشرینی یەكەم',
|
45
|
+
'تشرینی دووەم',
|
46
|
+
'كانونی یەکەم'
|
47
|
+
];
|
48
|
+
|
49
|
+
|
50
|
+
var ku = moment.defineLocale('ku', {
|
51
|
+
months : months,
|
52
|
+
monthsShort : months,
|
53
|
+
weekdays : 'یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه'.split('_'),
|
54
|
+
weekdaysShort : 'یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه'.split('_'),
|
55
|
+
weekdaysMin : 'ی_د_س_چ_پ_ه_ش'.split('_'),
|
56
|
+
weekdaysParseExact : true,
|
57
|
+
longDateFormat : {
|
58
|
+
LT : 'HH:mm',
|
59
|
+
LTS : 'HH:mm:ss',
|
60
|
+
L : 'DD/MM/YYYY',
|
61
|
+
LL : 'D MMMM YYYY',
|
62
|
+
LLL : 'D MMMM YYYY HH:mm',
|
63
|
+
LLLL : 'dddd, D MMMM YYYY HH:mm'
|
64
|
+
},
|
65
|
+
meridiemParse: /ئێواره|بهیانی/,
|
66
|
+
isPM: function (input) {
|
67
|
+
return /ئێواره/.test(input);
|
68
|
+
},
|
69
|
+
meridiem : function (hour, minute, isLower) {
|
70
|
+
if (hour < 12) {
|
71
|
+
return 'بهیانی';
|
72
|
+
} else {
|
73
|
+
return 'ئێواره';
|
74
|
+
}
|
75
|
+
},
|
76
|
+
calendar : {
|
77
|
+
sameDay : '[ئهمرۆ كاتژمێر] LT',
|
78
|
+
nextDay : '[بهیانی كاتژمێر] LT',
|
79
|
+
nextWeek : 'dddd [كاتژمێر] LT',
|
80
|
+
lastDay : '[دوێنێ كاتژمێر] LT',
|
81
|
+
lastWeek : 'dddd [كاتژمێر] LT',
|
82
|
+
sameElse : 'L'
|
83
|
+
},
|
84
|
+
relativeTime : {
|
85
|
+
future : 'له %s',
|
86
|
+
past : '%s',
|
87
|
+
s : 'چهند چركهیهك',
|
88
|
+
ss : 'چركه %d',
|
89
|
+
m : 'یهك خولهك',
|
90
|
+
mm : '%d خولهك',
|
91
|
+
h : 'یهك كاتژمێر',
|
92
|
+
hh : '%d كاتژمێر',
|
93
|
+
d : 'یهك ڕۆژ',
|
94
|
+
dd : '%d ڕۆژ',
|
95
|
+
M : 'یهك مانگ',
|
96
|
+
MM : '%d مانگ',
|
97
|
+
y : 'یهك ساڵ',
|
98
|
+
yy : '%d ساڵ'
|
99
|
+
},
|
100
|
+
preparse: function (string) {
|
101
|
+
return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
|
102
|
+
return numberMap[match];
|
103
|
+
}).replace(/،/g, ',');
|
104
|
+
},
|
105
|
+
postformat: function (string) {
|
106
|
+
return string.replace(/\d/g, function (match) {
|
107
|
+
return symbolMap[match];
|
108
|
+
}).replace(/,/g, '،');
|
109
|
+
},
|
110
|
+
week : {
|
111
|
+
dow : 6, // Saturday is the first day of the week.
|
112
|
+
doy : 12 // The week that contains Jan 12th is the first week of the year.
|
113
|
+
}
|
114
|
+
});
|
115
|
+
|
116
|
+
return ku;
|
117
|
+
|
118
|
+
})));
|
@@ -0,0 +1,86 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
|
3
|
+
;(function (global, factory) {
|
4
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
5
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
6
|
+
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
7
|
+
factory(global.moment)
|
8
|
+
}(this, (function (moment) { 'use strict';
|
9
|
+
|
10
|
+
|
11
|
+
var suffixes = {
|
12
|
+
0: '-чү',
|
13
|
+
1: '-чи',
|
14
|
+
2: '-чи',
|
15
|
+
3: '-чү',
|
16
|
+
4: '-чү',
|
17
|
+
5: '-чи',
|
18
|
+
6: '-чы',
|
19
|
+
7: '-чи',
|
20
|
+
8: '-чи',
|
21
|
+
9: '-чу',
|
22
|
+
10: '-чу',
|
23
|
+
20: '-чы',
|
24
|
+
30: '-чу',
|
25
|
+
40: '-чы',
|
26
|
+
50: '-чү',
|
27
|
+
60: '-чы',
|
28
|
+
70: '-чи',
|
29
|
+
80: '-чи',
|
30
|
+
90: '-чу',
|
31
|
+
100: '-чү'
|
32
|
+
};
|
33
|
+
|
34
|
+
var ky = moment.defineLocale('ky', {
|
35
|
+
months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
|
36
|
+
monthsShort : 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
|
37
|
+
weekdays : 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),
|
38
|
+
weekdaysShort : 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
|
39
|
+
weekdaysMin : 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
|
40
|
+
longDateFormat : {
|
41
|
+
LT : 'HH:mm',
|
42
|
+
LTS : 'HH:mm:ss',
|
43
|
+
L : 'DD.MM.YYYY',
|
44
|
+
LL : 'D MMMM YYYY',
|
45
|
+
LLL : 'D MMMM YYYY HH:mm',
|
46
|
+
LLLL : 'dddd, D MMMM YYYY HH:mm'
|
47
|
+
},
|
48
|
+
calendar : {
|
49
|
+
sameDay : '[Бүгүн саат] LT',
|
50
|
+
nextDay : '[Эртең саат] LT',
|
51
|
+
nextWeek : 'dddd [саат] LT',
|
52
|
+
lastDay : '[Кечээ саат] LT',
|
53
|
+
lastWeek : '[Өткөн аптанын] dddd [күнү] [саат] LT',
|
54
|
+
sameElse : 'L'
|
55
|
+
},
|
56
|
+
relativeTime : {
|
57
|
+
future : '%s ичинде',
|
58
|
+
past : '%s мурун',
|
59
|
+
s : 'бирнече секунд',
|
60
|
+
ss : '%d секунд',
|
61
|
+
m : 'бир мүнөт',
|
62
|
+
mm : '%d мүнөт',
|
63
|
+
h : 'бир саат',
|
64
|
+
hh : '%d саат',
|
65
|
+
d : 'бир күн',
|
66
|
+
dd : '%d күн',
|
67
|
+
M : 'бир ай',
|
68
|
+
MM : '%d ай',
|
69
|
+
y : 'бир жыл',
|
70
|
+
yy : '%d жыл'
|
71
|
+
},
|
72
|
+
dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
|
73
|
+
ordinal : function (number) {
|
74
|
+
var a = number % 10,
|
75
|
+
b = number >= 100 ? 100 : null;
|
76
|
+
return number + (suffixes[number] || suffixes[a] || suffixes[b]);
|
77
|
+
},
|
78
|
+
week : {
|
79
|
+
dow : 1, // Monday is the first day of the week.
|
80
|
+
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
81
|
+
}
|
82
|
+
});
|
83
|
+
|
84
|
+
return ky;
|
85
|
+
|
86
|
+
})));
|
@@ -0,0 +1,135 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
|
3
|
+
;(function (global, factory) {
|
4
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
5
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
6
|
+
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
7
|
+
factory(global.moment)
|
8
|
+
}(this, (function (moment) { 'use strict';
|
9
|
+
|
10
|
+
|
11
|
+
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
12
|
+
var format = {
|
13
|
+
'm': ['eng Minutt', 'enger Minutt'],
|
14
|
+
'h': ['eng Stonn', 'enger Stonn'],
|
15
|
+
'd': ['een Dag', 'engem Dag'],
|
16
|
+
'M': ['ee Mount', 'engem Mount'],
|
17
|
+
'y': ['ee Joer', 'engem Joer']
|
18
|
+
};
|
19
|
+
return withoutSuffix ? format[key][0] : format[key][1];
|
20
|
+
}
|
21
|
+
function processFutureTime(string) {
|
22
|
+
var number = string.substr(0, string.indexOf(' '));
|
23
|
+
if (eifelerRegelAppliesToNumber(number)) {
|
24
|
+
return 'a ' + string;
|
25
|
+
}
|
26
|
+
return 'an ' + string;
|
27
|
+
}
|
28
|
+
function processPastTime(string) {
|
29
|
+
var number = string.substr(0, string.indexOf(' '));
|
30
|
+
if (eifelerRegelAppliesToNumber(number)) {
|
31
|
+
return 'viru ' + string;
|
32
|
+
}
|
33
|
+
return 'virun ' + string;
|
34
|
+
}
|
35
|
+
/**
|
36
|
+
* Returns true if the word before the given number loses the '-n' ending.
|
37
|
+
* e.g. 'an 10 Deeg' but 'a 5 Deeg'
|
38
|
+
*
|
39
|
+
* @param number {integer}
|
40
|
+
* @returns {boolean}
|
41
|
+
*/
|
42
|
+
function eifelerRegelAppliesToNumber(number) {
|
43
|
+
number = parseInt(number, 10);
|
44
|
+
if (isNaN(number)) {
|
45
|
+
return false;
|
46
|
+
}
|
47
|
+
if (number < 0) {
|
48
|
+
// Negative Number --> always true
|
49
|
+
return true;
|
50
|
+
} else if (number < 10) {
|
51
|
+
// Only 1 digit
|
52
|
+
if (4 <= number && number <= 7) {
|
53
|
+
return true;
|
54
|
+
}
|
55
|
+
return false;
|
56
|
+
} else if (number < 100) {
|
57
|
+
// 2 digits
|
58
|
+
var lastDigit = number % 10, firstDigit = number / 10;
|
59
|
+
if (lastDigit === 0) {
|
60
|
+
return eifelerRegelAppliesToNumber(firstDigit);
|
61
|
+
}
|
62
|
+
return eifelerRegelAppliesToNumber(lastDigit);
|
63
|
+
} else if (number < 10000) {
|
64
|
+
// 3 or 4 digits --> recursively check first digit
|
65
|
+
while (number >= 10) {
|
66
|
+
number = number / 10;
|
67
|
+
}
|
68
|
+
return eifelerRegelAppliesToNumber(number);
|
69
|
+
} else {
|
70
|
+
// Anything larger than 4 digits: recursively check first n-3 digits
|
71
|
+
number = number / 1000;
|
72
|
+
return eifelerRegelAppliesToNumber(number);
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
var lb = moment.defineLocale('lb', {
|
77
|
+
months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
|
78
|
+
monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
|
79
|
+
monthsParseExact : true,
|
80
|
+
weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
|
81
|
+
weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
|
82
|
+
weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
|
83
|
+
weekdaysParseExact : true,
|
84
|
+
longDateFormat: {
|
85
|
+
LT: 'H:mm [Auer]',
|
86
|
+
LTS: 'H:mm:ss [Auer]',
|
87
|
+
L: 'DD.MM.YYYY',
|
88
|
+
LL: 'D. MMMM YYYY',
|
89
|
+
LLL: 'D. MMMM YYYY H:mm [Auer]',
|
90
|
+
LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
|
91
|
+
},
|
92
|
+
calendar: {
|
93
|
+
sameDay: '[Haut um] LT',
|
94
|
+
sameElse: 'L',
|
95
|
+
nextDay: '[Muer um] LT',
|
96
|
+
nextWeek: 'dddd [um] LT',
|
97
|
+
lastDay: '[Gëschter um] LT',
|
98
|
+
lastWeek: function () {
|
99
|
+
// Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
|
100
|
+
switch (this.day()) {
|
101
|
+
case 2:
|
102
|
+
case 4:
|
103
|
+
return '[Leschten] dddd [um] LT';
|
104
|
+
default:
|
105
|
+
return '[Leschte] dddd [um] LT';
|
106
|
+
}
|
107
|
+
}
|
108
|
+
},
|
109
|
+
relativeTime : {
|
110
|
+
future : processFutureTime,
|
111
|
+
past : processPastTime,
|
112
|
+
s : 'e puer Sekonnen',
|
113
|
+
ss : '%d Sekonnen',
|
114
|
+
m : processRelativeTime,
|
115
|
+
mm : '%d Minutten',
|
116
|
+
h : processRelativeTime,
|
117
|
+
hh : '%d Stonnen',
|
118
|
+
d : processRelativeTime,
|
119
|
+
dd : '%d Deeg',
|
120
|
+
M : processRelativeTime,
|
121
|
+
MM : '%d Méint',
|
122
|
+
y : processRelativeTime,
|
123
|
+
yy : '%d Joer'
|
124
|
+
},
|
125
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
126
|
+
ordinal: '%d.',
|
127
|
+
week: {
|
128
|
+
dow: 1, // Monday is the first day of the week.
|
129
|
+
doy: 4 // The week that contains Jan 4th is the first week of the year.
|
130
|
+
}
|
131
|
+
});
|
132
|
+
|
133
|
+
return lb;
|
134
|
+
|
135
|
+
})));
|
@@ -0,0 +1,69 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
|
3
|
+
;(function (global, factory) {
|
4
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
5
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
6
|
+
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
7
|
+
factory(global.moment)
|
8
|
+
}(this, (function (moment) { 'use strict';
|
9
|
+
|
10
|
+
|
11
|
+
var lo = moment.defineLocale('lo', {
|
12
|
+
months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
|
13
|
+
monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
|
14
|
+
weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
|
15
|
+
weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
|
16
|
+
weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
|
17
|
+
weekdaysParseExact : true,
|
18
|
+
longDateFormat : {
|
19
|
+
LT : 'HH:mm',
|
20
|
+
LTS : 'HH:mm:ss',
|
21
|
+
L : 'DD/MM/YYYY',
|
22
|
+
LL : 'D MMMM YYYY',
|
23
|
+
LLL : 'D MMMM YYYY HH:mm',
|
24
|
+
LLLL : 'ວັນdddd D MMMM YYYY HH:mm'
|
25
|
+
},
|
26
|
+
meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
|
27
|
+
isPM: function (input) {
|
28
|
+
return input === 'ຕອນແລງ';
|
29
|
+
},
|
30
|
+
meridiem : function (hour, minute, isLower) {
|
31
|
+
if (hour < 12) {
|
32
|
+
return 'ຕອນເຊົ້າ';
|
33
|
+
} else {
|
34
|
+
return 'ຕອນແລງ';
|
35
|
+
}
|
36
|
+
},
|
37
|
+
calendar : {
|
38
|
+
sameDay : '[ມື້ນີ້ເວລາ] LT',
|
39
|
+
nextDay : '[ມື້ອື່ນເວລາ] LT',
|
40
|
+
nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',
|
41
|
+
lastDay : '[ມື້ວານນີ້ເວລາ] LT',
|
42
|
+
lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
|
43
|
+
sameElse : 'L'
|
44
|
+
},
|
45
|
+
relativeTime : {
|
46
|
+
future : 'ອີກ %s',
|
47
|
+
past : '%sຜ່ານມາ',
|
48
|
+
s : 'ບໍ່ເທົ່າໃດວິນາທີ',
|
49
|
+
ss : '%d ວິນາທີ' ,
|
50
|
+
m : '1 ນາທີ',
|
51
|
+
mm : '%d ນາທີ',
|
52
|
+
h : '1 ຊົ່ວໂມງ',
|
53
|
+
hh : '%d ຊົ່ວໂມງ',
|
54
|
+
d : '1 ມື້',
|
55
|
+
dd : '%d ມື້',
|
56
|
+
M : '1 ເດືອນ',
|
57
|
+
MM : '%d ເດືອນ',
|
58
|
+
y : '1 ປີ',
|
59
|
+
yy : '%d ປີ'
|
60
|
+
},
|
61
|
+
dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
|
62
|
+
ordinal : function (number) {
|
63
|
+
return 'ທີ່' + number;
|
64
|
+
}
|
65
|
+
});
|
66
|
+
|
67
|
+
return lo;
|
68
|
+
|
69
|
+
})));
|