js_stack 1.10.0 → 1.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/README.md +6 -6
- data/js_stack.gemspec +0 -1
- data/lib/js_stack/version.rb +1 -1
- data/lib/js_stack.rb +0 -1
- data/vendor/assets/javascripts/js_stack/base/backbone/1.2.3.js +1894 -0
- data/vendor/assets/javascripts/js_stack/base/backbone.js +1 -1
- data/vendor/assets/javascripts/js_stack/base/marionette/{2.4.1.js → 2.4.3.js} +265 -138
- data/vendor/assets/javascripts/js_stack/base/marionette.js +1 -1
- data/vendor/assets/javascripts/js_stack/plugins/backbone/stickit/{0.9.0.js → 0.9.2.js} +1 -1
- data/vendor/assets/javascripts/js_stack/plugins/backbone.stickit.js +1 -1
- data/vendor/assets/javascripts/js_stack/plugins/moment/2.10.6.js +3195 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/af.js +72 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ar-ma.js +58 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ar-sa.js +102 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ar-tn.js +56 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ar.js +135 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/az.js +103 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/be.js +146 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/bg.js +89 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/bn.js +112 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/bo.js +109 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/br.js +106 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/bs.js +140 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ca.js +78 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/cs.js +156 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/cv.js +62 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/cy.js +78 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/da.js +59 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/de-at.js +75 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/de.js +74 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/el.js +93 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/en-au.js +65 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/en-ca.js +62 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/en-gb.js +66 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/eo.js +72 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/es.js +78 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/et.js +79 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/eu.js +63 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fa.js +104 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fi.js +106 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fo.js +59 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fr-ca.js +57 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fr.js +61 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fy.js +70 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/gl.js +74 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/he.js +81 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/hi.js +122 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/hr.js +139 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/hu.js +108 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/hy-am.js +110 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/id.js +82 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/is.js +126 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/it.js +69 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ja.js +64 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/jv.js +82 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ka.js +102 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/km.js +57 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ko.js +67 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/lb.js +133 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/lt.js +124 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/lv.js +95 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/me.js +108 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/mk.js +89 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ml.js +70 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/mr.js +120 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ms-my.js +81 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ms.js +81 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/my.js +92 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/nb.js +60 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ne.js +122 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/nl.js +70 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/nn.js +59 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/pl.js +104 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/pt-br.js +59 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/pt.js +63 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ro.js +73 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ru.js +163 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/si.js +64 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sk.js +157 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sl.js +159 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sq.js +68 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sr-cyrl.js +107 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sr.js +107 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sv.js +66 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ta.js +94 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/th.js +64 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tl-ph.js +61 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tr.js +89 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tzl.js +84 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tzm-latn.js +57 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tzm.js +57 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/uk.js +152 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/uz.js +57 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/vi.js +65 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/zh-cn.js +126 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/zh-tw.js +100 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment.js +1 -1
- data/vendor/assets/javascripts/js_stack/plugins/underscore/string/3.2.2.js +1186 -0
- data/vendor/assets/javascripts/js_stack/plugins/underscore.string.js +1 -1
- metadata +93 -20
@@ -0,0 +1,102 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Georgian (ka)
|
3
|
+
//! author : Irakli Janiashvili : https://github.com/irakli-janiashvili
|
4
|
+
|
5
|
+
(function (global, factory) {
|
6
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
7
|
+
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
8
|
+
factory(global.moment)
|
9
|
+
}(this, function (moment) { 'use strict';
|
10
|
+
|
11
|
+
|
12
|
+
function monthsCaseReplace(m, format) {
|
13
|
+
var months = {
|
14
|
+
'nominative': 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
|
15
|
+
'accusative': 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')
|
16
|
+
},
|
17
|
+
nounCase = (/D[oD] *MMMM?/).test(format) ?
|
18
|
+
'accusative' :
|
19
|
+
'nominative';
|
20
|
+
return months[nounCase][m.month()];
|
21
|
+
}
|
22
|
+
function weekdaysCaseReplace(m, format) {
|
23
|
+
var weekdays = {
|
24
|
+
'nominative': 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
|
25
|
+
'accusative': 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_')
|
26
|
+
},
|
27
|
+
nounCase = (/(წინა|შემდეგ)/).test(format) ?
|
28
|
+
'accusative' :
|
29
|
+
'nominative';
|
30
|
+
return weekdays[nounCase][m.day()];
|
31
|
+
}
|
32
|
+
|
33
|
+
var ka = moment.defineLocale('ka', {
|
34
|
+
months : monthsCaseReplace,
|
35
|
+
monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
|
36
|
+
weekdays : weekdaysCaseReplace,
|
37
|
+
weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
|
38
|
+
weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
|
39
|
+
longDateFormat : {
|
40
|
+
LT : 'h:mm A',
|
41
|
+
LTS : 'h:mm:ss A',
|
42
|
+
L : 'DD/MM/YYYY',
|
43
|
+
LL : 'D MMMM YYYY',
|
44
|
+
LLL : 'D MMMM YYYY h:mm A',
|
45
|
+
LLLL : 'dddd, D MMMM YYYY h:mm A'
|
46
|
+
},
|
47
|
+
calendar : {
|
48
|
+
sameDay : '[დღეს] LT[-ზე]',
|
49
|
+
nextDay : '[ხვალ] LT[-ზე]',
|
50
|
+
lastDay : '[გუშინ] LT[-ზე]',
|
51
|
+
nextWeek : '[შემდეგ] dddd LT[-ზე]',
|
52
|
+
lastWeek : '[წინა] dddd LT-ზე',
|
53
|
+
sameElse : 'L'
|
54
|
+
},
|
55
|
+
relativeTime : {
|
56
|
+
future : function (s) {
|
57
|
+
return (/(წამი|წუთი|საათი|წელი)/).test(s) ?
|
58
|
+
s.replace(/ი$/, 'ში') :
|
59
|
+
s + 'ში';
|
60
|
+
},
|
61
|
+
past : function (s) {
|
62
|
+
if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) {
|
63
|
+
return s.replace(/(ი|ე)$/, 'ის წინ');
|
64
|
+
}
|
65
|
+
if ((/წელი/).test(s)) {
|
66
|
+
return s.replace(/წელი$/, 'წლის წინ');
|
67
|
+
}
|
68
|
+
},
|
69
|
+
s : 'რამდენიმე წამი',
|
70
|
+
m : 'წუთი',
|
71
|
+
mm : '%d წუთი',
|
72
|
+
h : 'საათი',
|
73
|
+
hh : '%d საათი',
|
74
|
+
d : 'დღე',
|
75
|
+
dd : '%d დღე',
|
76
|
+
M : 'თვე',
|
77
|
+
MM : '%d თვე',
|
78
|
+
y : 'წელი',
|
79
|
+
yy : '%d წელი'
|
80
|
+
},
|
81
|
+
ordinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
|
82
|
+
ordinal : function (number) {
|
83
|
+
if (number === 0) {
|
84
|
+
return number;
|
85
|
+
}
|
86
|
+
if (number === 1) {
|
87
|
+
return number + '-ლი';
|
88
|
+
}
|
89
|
+
if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) {
|
90
|
+
return 'მე-' + number;
|
91
|
+
}
|
92
|
+
return number + '-ე';
|
93
|
+
},
|
94
|
+
week : {
|
95
|
+
dow : 1,
|
96
|
+
doy : 7
|
97
|
+
}
|
98
|
+
});
|
99
|
+
|
100
|
+
return ka;
|
101
|
+
|
102
|
+
}));
|
@@ -0,0 +1,57 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : khmer (km)
|
3
|
+
//! author : Kruy Vanna : https://github.com/kruyvanna
|
4
|
+
|
5
|
+
(function (global, factory) {
|
6
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
7
|
+
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
8
|
+
factory(global.moment)
|
9
|
+
}(this, function (moment) { 'use strict';
|
10
|
+
|
11
|
+
|
12
|
+
var km = moment.defineLocale('km', {
|
13
|
+
months: 'មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
|
14
|
+
monthsShort: 'មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
|
15
|
+
weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
|
16
|
+
weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
|
17
|
+
weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
|
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
|
+
calendar: {
|
27
|
+
sameDay: '[ថ្ងៃនៈ ម៉ោង] LT',
|
28
|
+
nextDay: '[ស្អែក ម៉ោង] LT',
|
29
|
+
nextWeek: 'dddd [ម៉ោង] LT',
|
30
|
+
lastDay: '[ម្សិលមិញ ម៉ោង] LT',
|
31
|
+
lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
|
32
|
+
sameElse: 'L'
|
33
|
+
},
|
34
|
+
relativeTime: {
|
35
|
+
future: '%sទៀត',
|
36
|
+
past: '%sមុន',
|
37
|
+
s: 'ប៉ុន្មានវិនាទី',
|
38
|
+
m: 'មួយនាទី',
|
39
|
+
mm: '%d នាទី',
|
40
|
+
h: 'មួយម៉ោង',
|
41
|
+
hh: '%d ម៉ោង',
|
42
|
+
d: 'មួយថ្ងៃ',
|
43
|
+
dd: '%d ថ្ងៃ',
|
44
|
+
M: 'មួយខែ',
|
45
|
+
MM: '%d ខែ',
|
46
|
+
y: 'មួយឆ្នាំ',
|
47
|
+
yy: '%d ឆ្នាំ'
|
48
|
+
},
|
49
|
+
week: {
|
50
|
+
dow: 1, // Monday is the first day of the week.
|
51
|
+
doy: 4 // The week that contains Jan 4th is the first week of the year.
|
52
|
+
}
|
53
|
+
});
|
54
|
+
|
55
|
+
return km;
|
56
|
+
|
57
|
+
}));
|
@@ -0,0 +1,67 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : korean (ko)
|
3
|
+
//!
|
4
|
+
//! authors
|
5
|
+
//!
|
6
|
+
//! - Kyungwook, Park : https://github.com/kyungw00k
|
7
|
+
//! - Jeeeyul Lee <jeeeyul@gmail.com>
|
8
|
+
|
9
|
+
(function (global, factory) {
|
10
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
11
|
+
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
12
|
+
factory(global.moment)
|
13
|
+
}(this, function (moment) { 'use strict';
|
14
|
+
|
15
|
+
|
16
|
+
var ko = moment.defineLocale('ko', {
|
17
|
+
months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
|
18
|
+
monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
|
19
|
+
weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
|
20
|
+
weekdaysShort : '일_월_화_수_목_금_토'.split('_'),
|
21
|
+
weekdaysMin : '일_월_화_수_목_금_토'.split('_'),
|
22
|
+
longDateFormat : {
|
23
|
+
LT : 'A h시 m분',
|
24
|
+
LTS : 'A h시 m분 s초',
|
25
|
+
L : 'YYYY.MM.DD',
|
26
|
+
LL : 'YYYY년 MMMM D일',
|
27
|
+
LLL : 'YYYY년 MMMM D일 A h시 m분',
|
28
|
+
LLLL : 'YYYY년 MMMM D일 dddd A h시 m분'
|
29
|
+
},
|
30
|
+
calendar : {
|
31
|
+
sameDay : '오늘 LT',
|
32
|
+
nextDay : '내일 LT',
|
33
|
+
nextWeek : 'dddd LT',
|
34
|
+
lastDay : '어제 LT',
|
35
|
+
lastWeek : '지난주 dddd LT',
|
36
|
+
sameElse : 'L'
|
37
|
+
},
|
38
|
+
relativeTime : {
|
39
|
+
future : '%s 후',
|
40
|
+
past : '%s 전',
|
41
|
+
s : '몇초',
|
42
|
+
ss : '%d초',
|
43
|
+
m : '일분',
|
44
|
+
mm : '%d분',
|
45
|
+
h : '한시간',
|
46
|
+
hh : '%d시간',
|
47
|
+
d : '하루',
|
48
|
+
dd : '%d일',
|
49
|
+
M : '한달',
|
50
|
+
MM : '%d달',
|
51
|
+
y : '일년',
|
52
|
+
yy : '%d년'
|
53
|
+
},
|
54
|
+
ordinalParse : /\d{1,2}일/,
|
55
|
+
ordinal : '%d일',
|
56
|
+
meridiemParse : /오전|오후/,
|
57
|
+
isPM : function (token) {
|
58
|
+
return token === '오후';
|
59
|
+
},
|
60
|
+
meridiem : function (hour, minute, isUpper) {
|
61
|
+
return hour < 12 ? '오전' : '오후';
|
62
|
+
}
|
63
|
+
});
|
64
|
+
|
65
|
+
return ko;
|
66
|
+
|
67
|
+
}));
|
@@ -0,0 +1,133 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Luxembourgish (lb)
|
3
|
+
//! author : mweimerskirch : https://github.com/mweimerskirch, David Raison : https://github.com/kwisatz
|
4
|
+
|
5
|
+
(function (global, factory) {
|
6
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
7
|
+
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
8
|
+
factory(global.moment)
|
9
|
+
}(this, function (moment) { 'use strict';
|
10
|
+
|
11
|
+
|
12
|
+
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
13
|
+
var format = {
|
14
|
+
'm': ['eng Minutt', 'enger Minutt'],
|
15
|
+
'h': ['eng Stonn', 'enger Stonn'],
|
16
|
+
'd': ['een Dag', 'engem Dag'],
|
17
|
+
'M': ['ee Mount', 'engem Mount'],
|
18
|
+
'y': ['ee Joer', 'engem Joer']
|
19
|
+
};
|
20
|
+
return withoutSuffix ? format[key][0] : format[key][1];
|
21
|
+
}
|
22
|
+
function processFutureTime(string) {
|
23
|
+
var number = string.substr(0, string.indexOf(' '));
|
24
|
+
if (eifelerRegelAppliesToNumber(number)) {
|
25
|
+
return 'a ' + string;
|
26
|
+
}
|
27
|
+
return 'an ' + string;
|
28
|
+
}
|
29
|
+
function processPastTime(string) {
|
30
|
+
var number = string.substr(0, string.indexOf(' '));
|
31
|
+
if (eifelerRegelAppliesToNumber(number)) {
|
32
|
+
return 'viru ' + string;
|
33
|
+
}
|
34
|
+
return 'virun ' + string;
|
35
|
+
}
|
36
|
+
/**
|
37
|
+
* Returns true if the word before the given number loses the '-n' ending.
|
38
|
+
* e.g. 'an 10 Deeg' but 'a 5 Deeg'
|
39
|
+
*
|
40
|
+
* @param number {integer}
|
41
|
+
* @returns {boolean}
|
42
|
+
*/
|
43
|
+
function eifelerRegelAppliesToNumber(number) {
|
44
|
+
number = parseInt(number, 10);
|
45
|
+
if (isNaN(number)) {
|
46
|
+
return false;
|
47
|
+
}
|
48
|
+
if (number < 0) {
|
49
|
+
// Negative Number --> always true
|
50
|
+
return true;
|
51
|
+
} else if (number < 10) {
|
52
|
+
// Only 1 digit
|
53
|
+
if (4 <= number && number <= 7) {
|
54
|
+
return true;
|
55
|
+
}
|
56
|
+
return false;
|
57
|
+
} else if (number < 100) {
|
58
|
+
// 2 digits
|
59
|
+
var lastDigit = number % 10, firstDigit = number / 10;
|
60
|
+
if (lastDigit === 0) {
|
61
|
+
return eifelerRegelAppliesToNumber(firstDigit);
|
62
|
+
}
|
63
|
+
return eifelerRegelAppliesToNumber(lastDigit);
|
64
|
+
} else if (number < 10000) {
|
65
|
+
// 3 or 4 digits --> recursively check first digit
|
66
|
+
while (number >= 10) {
|
67
|
+
number = number / 10;
|
68
|
+
}
|
69
|
+
return eifelerRegelAppliesToNumber(number);
|
70
|
+
} else {
|
71
|
+
// Anything larger than 4 digits: recursively check first n-3 digits
|
72
|
+
number = number / 1000;
|
73
|
+
return eifelerRegelAppliesToNumber(number);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
var lb = moment.defineLocale('lb', {
|
78
|
+
months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
|
79
|
+
monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
|
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
|
+
longDateFormat: {
|
84
|
+
LT: 'H:mm [Auer]',
|
85
|
+
LTS: 'H:mm:ss [Auer]',
|
86
|
+
L: 'DD.MM.YYYY',
|
87
|
+
LL: 'D. MMMM YYYY',
|
88
|
+
LLL: 'D. MMMM YYYY H:mm [Auer]',
|
89
|
+
LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
|
90
|
+
},
|
91
|
+
calendar: {
|
92
|
+
sameDay: '[Haut um] LT',
|
93
|
+
sameElse: 'L',
|
94
|
+
nextDay: '[Muer um] LT',
|
95
|
+
nextWeek: 'dddd [um] LT',
|
96
|
+
lastDay: '[Gëschter um] LT',
|
97
|
+
lastWeek: function () {
|
98
|
+
// Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
|
99
|
+
switch (this.day()) {
|
100
|
+
case 2:
|
101
|
+
case 4:
|
102
|
+
return '[Leschten] dddd [um] LT';
|
103
|
+
default:
|
104
|
+
return '[Leschte] dddd [um] LT';
|
105
|
+
}
|
106
|
+
}
|
107
|
+
},
|
108
|
+
relativeTime : {
|
109
|
+
future : processFutureTime,
|
110
|
+
past : processPastTime,
|
111
|
+
s : 'e puer Sekonnen',
|
112
|
+
m : processRelativeTime,
|
113
|
+
mm : '%d Minutten',
|
114
|
+
h : processRelativeTime,
|
115
|
+
hh : '%d Stonnen',
|
116
|
+
d : processRelativeTime,
|
117
|
+
dd : '%d Deeg',
|
118
|
+
M : processRelativeTime,
|
119
|
+
MM : '%d Méint',
|
120
|
+
y : processRelativeTime,
|
121
|
+
yy : '%d Joer'
|
122
|
+
},
|
123
|
+
ordinalParse: /\d{1,2}\./,
|
124
|
+
ordinal: '%d.',
|
125
|
+
week: {
|
126
|
+
dow: 1, // Monday is the first day of the week.
|
127
|
+
doy: 4 // The week that contains Jan 4th is the first week of the year.
|
128
|
+
}
|
129
|
+
});
|
130
|
+
|
131
|
+
return lb;
|
132
|
+
|
133
|
+
}));
|
@@ -0,0 +1,124 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Lithuanian (lt)
|
3
|
+
//! author : Mindaugas Mozūras : https://github.com/mmozuras
|
4
|
+
|
5
|
+
(function (global, factory) {
|
6
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
7
|
+
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
8
|
+
factory(global.moment)
|
9
|
+
}(this, function (moment) { 'use strict';
|
10
|
+
|
11
|
+
|
12
|
+
var units = {
|
13
|
+
'm' : 'minutė_minutės_minutę',
|
14
|
+
'mm': 'minutės_minučių_minutes',
|
15
|
+
'h' : 'valanda_valandos_valandą',
|
16
|
+
'hh': 'valandos_valandų_valandas',
|
17
|
+
'd' : 'diena_dienos_dieną',
|
18
|
+
'dd': 'dienos_dienų_dienas',
|
19
|
+
'M' : 'mėnuo_mėnesio_mėnesį',
|
20
|
+
'MM': 'mėnesiai_mėnesių_mėnesius',
|
21
|
+
'y' : 'metai_metų_metus',
|
22
|
+
'yy': 'metai_metų_metus'
|
23
|
+
},
|
24
|
+
weekDays = 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_');
|
25
|
+
function translateSeconds(number, withoutSuffix, key, isFuture) {
|
26
|
+
if (withoutSuffix) {
|
27
|
+
return 'kelios sekundės';
|
28
|
+
} else {
|
29
|
+
return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
|
30
|
+
}
|
31
|
+
}
|
32
|
+
function monthsCaseReplace(m, format) {
|
33
|
+
var months = {
|
34
|
+
'nominative': 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
|
35
|
+
'accusative': 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_')
|
36
|
+
},
|
37
|
+
nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
|
38
|
+
'accusative' :
|
39
|
+
'nominative';
|
40
|
+
return months[nounCase][m.month()];
|
41
|
+
}
|
42
|
+
function translateSingular(number, withoutSuffix, key, isFuture) {
|
43
|
+
return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
|
44
|
+
}
|
45
|
+
function special(number) {
|
46
|
+
return number % 10 === 0 || (number > 10 && number < 20);
|
47
|
+
}
|
48
|
+
function forms(key) {
|
49
|
+
return units[key].split('_');
|
50
|
+
}
|
51
|
+
function translate(number, withoutSuffix, key, isFuture) {
|
52
|
+
var result = number + ' ';
|
53
|
+
if (number === 1) {
|
54
|
+
return result + translateSingular(number, withoutSuffix, key[0], isFuture);
|
55
|
+
} else if (withoutSuffix) {
|
56
|
+
return result + (special(number) ? forms(key)[1] : forms(key)[0]);
|
57
|
+
} else {
|
58
|
+
if (isFuture) {
|
59
|
+
return result + forms(key)[1];
|
60
|
+
} else {
|
61
|
+
return result + (special(number) ? forms(key)[1] : forms(key)[2]);
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
function relativeWeekDay(moment, format) {
|
66
|
+
var nominative = format.indexOf('dddd HH:mm') === -1,
|
67
|
+
weekDay = weekDays[moment.day()];
|
68
|
+
return nominative ? weekDay : weekDay.substring(0, weekDay.length - 2) + 'į';
|
69
|
+
}
|
70
|
+
|
71
|
+
var lt = moment.defineLocale('lt', {
|
72
|
+
months : monthsCaseReplace,
|
73
|
+
monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
|
74
|
+
weekdays : relativeWeekDay,
|
75
|
+
weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
|
76
|
+
weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),
|
77
|
+
longDateFormat : {
|
78
|
+
LT : 'HH:mm',
|
79
|
+
LTS : 'HH:mm:ss',
|
80
|
+
L : 'YYYY-MM-DD',
|
81
|
+
LL : 'YYYY [m.] MMMM D [d.]',
|
82
|
+
LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
|
83
|
+
LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
|
84
|
+
l : 'YYYY-MM-DD',
|
85
|
+
ll : 'YYYY [m.] MMMM D [d.]',
|
86
|
+
lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
|
87
|
+
llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
|
88
|
+
},
|
89
|
+
calendar : {
|
90
|
+
sameDay : '[Šiandien] LT',
|
91
|
+
nextDay : '[Rytoj] LT',
|
92
|
+
nextWeek : 'dddd LT',
|
93
|
+
lastDay : '[Vakar] LT',
|
94
|
+
lastWeek : '[Praėjusį] dddd LT',
|
95
|
+
sameElse : 'L'
|
96
|
+
},
|
97
|
+
relativeTime : {
|
98
|
+
future : 'po %s',
|
99
|
+
past : 'prieš %s',
|
100
|
+
s : translateSeconds,
|
101
|
+
m : translateSingular,
|
102
|
+
mm : translate,
|
103
|
+
h : translateSingular,
|
104
|
+
hh : translate,
|
105
|
+
d : translateSingular,
|
106
|
+
dd : translate,
|
107
|
+
M : translateSingular,
|
108
|
+
MM : translate,
|
109
|
+
y : translateSingular,
|
110
|
+
yy : translate
|
111
|
+
},
|
112
|
+
ordinalParse: /\d{1,2}-oji/,
|
113
|
+
ordinal : function (number) {
|
114
|
+
return number + '-oji';
|
115
|
+
},
|
116
|
+
week : {
|
117
|
+
dow : 1, // Monday is the first day of the week.
|
118
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
119
|
+
}
|
120
|
+
});
|
121
|
+
|
122
|
+
return lt;
|
123
|
+
|
124
|
+
}));
|
@@ -0,0 +1,95 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : latvian (lv)
|
3
|
+
//! author : Kristaps Karlsons : https://github.com/skakri
|
4
|
+
//! author : Jānis Elmeris : https://github.com/JanisE
|
5
|
+
|
6
|
+
(function (global, factory) {
|
7
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
8
|
+
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
9
|
+
factory(global.moment)
|
10
|
+
}(this, function (moment) { 'use strict';
|
11
|
+
|
12
|
+
|
13
|
+
var units = {
|
14
|
+
'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
|
15
|
+
'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
|
16
|
+
'h': 'stundas_stundām_stunda_stundas'.split('_'),
|
17
|
+
'hh': 'stundas_stundām_stunda_stundas'.split('_'),
|
18
|
+
'd': 'dienas_dienām_diena_dienas'.split('_'),
|
19
|
+
'dd': 'dienas_dienām_diena_dienas'.split('_'),
|
20
|
+
'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
|
21
|
+
'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
|
22
|
+
'y': 'gada_gadiem_gads_gadi'.split('_'),
|
23
|
+
'yy': 'gada_gadiem_gads_gadi'.split('_')
|
24
|
+
};
|
25
|
+
/**
|
26
|
+
* @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
|
27
|
+
*/
|
28
|
+
function format(forms, number, withoutSuffix) {
|
29
|
+
if (withoutSuffix) {
|
30
|
+
// E.g. "21 minūte", "3 minūtes".
|
31
|
+
return number % 10 === 1 && number !== 11 ? forms[2] : forms[3];
|
32
|
+
} else {
|
33
|
+
// E.g. "21 minūtes" as in "pēc 21 minūtes".
|
34
|
+
// E.g. "3 minūtēm" as in "pēc 3 minūtēm".
|
35
|
+
return number % 10 === 1 && number !== 11 ? forms[0] : forms[1];
|
36
|
+
}
|
37
|
+
}
|
38
|
+
function relativeTimeWithPlural(number, withoutSuffix, key) {
|
39
|
+
return number + ' ' + format(units[key], number, withoutSuffix);
|
40
|
+
}
|
41
|
+
function relativeTimeWithSingular(number, withoutSuffix, key) {
|
42
|
+
return format(units[key], number, withoutSuffix);
|
43
|
+
}
|
44
|
+
function relativeSeconds(number, withoutSuffix) {
|
45
|
+
return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
|
46
|
+
}
|
47
|
+
|
48
|
+
var lv = moment.defineLocale('lv', {
|
49
|
+
months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
|
50
|
+
monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
|
51
|
+
weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
|
52
|
+
weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'),
|
53
|
+
weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'),
|
54
|
+
longDateFormat : {
|
55
|
+
LT : 'HH:mm',
|
56
|
+
LTS : 'HH:mm:ss',
|
57
|
+
L : 'DD.MM.YYYY.',
|
58
|
+
LL : 'YYYY. [gada] D. MMMM',
|
59
|
+
LLL : 'YYYY. [gada] D. MMMM, HH:mm',
|
60
|
+
LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm'
|
61
|
+
},
|
62
|
+
calendar : {
|
63
|
+
sameDay : '[Šodien pulksten] LT',
|
64
|
+
nextDay : '[Rīt pulksten] LT',
|
65
|
+
nextWeek : 'dddd [pulksten] LT',
|
66
|
+
lastDay : '[Vakar pulksten] LT',
|
67
|
+
lastWeek : '[Pagājušā] dddd [pulksten] LT',
|
68
|
+
sameElse : 'L'
|
69
|
+
},
|
70
|
+
relativeTime : {
|
71
|
+
future : 'pēc %s',
|
72
|
+
past : 'pirms %s',
|
73
|
+
s : relativeSeconds,
|
74
|
+
m : relativeTimeWithSingular,
|
75
|
+
mm : relativeTimeWithPlural,
|
76
|
+
h : relativeTimeWithSingular,
|
77
|
+
hh : relativeTimeWithPlural,
|
78
|
+
d : relativeTimeWithSingular,
|
79
|
+
dd : relativeTimeWithPlural,
|
80
|
+
M : relativeTimeWithSingular,
|
81
|
+
MM : relativeTimeWithPlural,
|
82
|
+
y : relativeTimeWithSingular,
|
83
|
+
yy : relativeTimeWithPlural
|
84
|
+
},
|
85
|
+
ordinalParse: /\d{1,2}\./,
|
86
|
+
ordinal : '%d.',
|
87
|
+
week : {
|
88
|
+
dow : 1, // Monday is the first day of the week.
|
89
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
90
|
+
}
|
91
|
+
});
|
92
|
+
|
93
|
+
return lv;
|
94
|
+
|
95
|
+
}));
|