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,107 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Serbian-cyrillic (sr-cyrl)
|
3
|
+
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
|
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 translator = {
|
13
|
+
words: { //Different grammatical cases
|
14
|
+
m: ['један минут', 'једне минуте'],
|
15
|
+
mm: ['минут', 'минуте', 'минута'],
|
16
|
+
h: ['један сат', 'једног сата'],
|
17
|
+
hh: ['сат', 'сата', 'сати'],
|
18
|
+
dd: ['дан', 'дана', 'дана'],
|
19
|
+
MM: ['месец', 'месеца', 'месеци'],
|
20
|
+
yy: ['година', 'године', 'година']
|
21
|
+
},
|
22
|
+
correctGrammaticalCase: function (number, wordKey) {
|
23
|
+
return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
|
24
|
+
},
|
25
|
+
translate: function (number, withoutSuffix, key) {
|
26
|
+
var wordKey = translator.words[key];
|
27
|
+
if (key.length === 1) {
|
28
|
+
return withoutSuffix ? wordKey[0] : wordKey[1];
|
29
|
+
} else {
|
30
|
+
return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
};
|
34
|
+
|
35
|
+
var sr_cyrl = moment.defineLocale('sr-cyrl', {
|
36
|
+
months: ['јануар', 'фебруар', 'март', 'април', 'мај', 'јун', 'јул', 'август', 'септембар', 'октобар', 'новембар', 'децембар'],
|
37
|
+
monthsShort: ['јан.', 'феб.', 'мар.', 'апр.', 'мај', 'јун', 'јул', 'авг.', 'сеп.', 'окт.', 'нов.', 'дец.'],
|
38
|
+
weekdays: ['недеља', 'понедељак', 'уторак', 'среда', 'четвртак', 'петак', 'субота'],
|
39
|
+
weekdaysShort: ['нед.', 'пон.', 'уто.', 'сре.', 'чет.', 'пет.', 'суб.'],
|
40
|
+
weekdaysMin: ['не', 'по', 'ут', 'ср', 'че', 'пе', 'су'],
|
41
|
+
longDateFormat: {
|
42
|
+
LT: 'H:mm',
|
43
|
+
LTS : 'H:mm:ss',
|
44
|
+
L: 'DD. MM. YYYY',
|
45
|
+
LL: 'D. MMMM YYYY',
|
46
|
+
LLL: 'D. MMMM YYYY H:mm',
|
47
|
+
LLLL: 'dddd, D. MMMM YYYY H:mm'
|
48
|
+
},
|
49
|
+
calendar: {
|
50
|
+
sameDay: '[данас у] LT',
|
51
|
+
nextDay: '[сутра у] LT',
|
52
|
+
nextWeek: function () {
|
53
|
+
switch (this.day()) {
|
54
|
+
case 0:
|
55
|
+
return '[у] [недељу] [у] LT';
|
56
|
+
case 3:
|
57
|
+
return '[у] [среду] [у] LT';
|
58
|
+
case 6:
|
59
|
+
return '[у] [суботу] [у] LT';
|
60
|
+
case 1:
|
61
|
+
case 2:
|
62
|
+
case 4:
|
63
|
+
case 5:
|
64
|
+
return '[у] dddd [у] LT';
|
65
|
+
}
|
66
|
+
},
|
67
|
+
lastDay : '[јуче у] LT',
|
68
|
+
lastWeek : function () {
|
69
|
+
var lastWeekDays = [
|
70
|
+
'[прошле] [недеље] [у] LT',
|
71
|
+
'[прошлог] [понедељка] [у] LT',
|
72
|
+
'[прошлог] [уторка] [у] LT',
|
73
|
+
'[прошле] [среде] [у] LT',
|
74
|
+
'[прошлог] [четвртка] [у] LT',
|
75
|
+
'[прошлог] [петка] [у] LT',
|
76
|
+
'[прошле] [суботе] [у] LT'
|
77
|
+
];
|
78
|
+
return lastWeekDays[this.day()];
|
79
|
+
},
|
80
|
+
sameElse : 'L'
|
81
|
+
},
|
82
|
+
relativeTime : {
|
83
|
+
future : 'за %s',
|
84
|
+
past : 'пре %s',
|
85
|
+
s : 'неколико секунди',
|
86
|
+
m : translator.translate,
|
87
|
+
mm : translator.translate,
|
88
|
+
h : translator.translate,
|
89
|
+
hh : translator.translate,
|
90
|
+
d : 'дан',
|
91
|
+
dd : translator.translate,
|
92
|
+
M : 'месец',
|
93
|
+
MM : translator.translate,
|
94
|
+
y : 'годину',
|
95
|
+
yy : translator.translate
|
96
|
+
},
|
97
|
+
ordinalParse: /\d{1,2}\./,
|
98
|
+
ordinal : '%d.',
|
99
|
+
week : {
|
100
|
+
dow : 1, // Monday is the first day of the week.
|
101
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
102
|
+
}
|
103
|
+
});
|
104
|
+
|
105
|
+
return sr_cyrl;
|
106
|
+
|
107
|
+
}));
|
@@ -0,0 +1,107 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Serbian-latin (sr)
|
3
|
+
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
|
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 translator = {
|
13
|
+
words: { //Different grammatical cases
|
14
|
+
m: ['jedan minut', 'jedne minute'],
|
15
|
+
mm: ['minut', 'minute', 'minuta'],
|
16
|
+
h: ['jedan sat', 'jednog sata'],
|
17
|
+
hh: ['sat', 'sata', 'sati'],
|
18
|
+
dd: ['dan', 'dana', 'dana'],
|
19
|
+
MM: ['mesec', 'meseca', 'meseci'],
|
20
|
+
yy: ['godina', 'godine', 'godina']
|
21
|
+
},
|
22
|
+
correctGrammaticalCase: function (number, wordKey) {
|
23
|
+
return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
|
24
|
+
},
|
25
|
+
translate: function (number, withoutSuffix, key) {
|
26
|
+
var wordKey = translator.words[key];
|
27
|
+
if (key.length === 1) {
|
28
|
+
return withoutSuffix ? wordKey[0] : wordKey[1];
|
29
|
+
} else {
|
30
|
+
return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
};
|
34
|
+
|
35
|
+
var sr = moment.defineLocale('sr', {
|
36
|
+
months: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'],
|
37
|
+
monthsShort: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun', 'jul', 'avg.', 'sep.', 'okt.', 'nov.', 'dec.'],
|
38
|
+
weekdays: ['nedelja', 'ponedeljak', 'utorak', 'sreda', 'četvrtak', 'petak', 'subota'],
|
39
|
+
weekdaysShort: ['ned.', 'pon.', 'uto.', 'sre.', 'čet.', 'pet.', 'sub.'],
|
40
|
+
weekdaysMin: ['ne', 'po', 'ut', 'sr', 'če', 'pe', 'su'],
|
41
|
+
longDateFormat: {
|
42
|
+
LT: 'H:mm',
|
43
|
+
LTS : 'H:mm:ss',
|
44
|
+
L: 'DD. MM. YYYY',
|
45
|
+
LL: 'D. MMMM YYYY',
|
46
|
+
LLL: 'D. MMMM YYYY H:mm',
|
47
|
+
LLLL: 'dddd, D. MMMM YYYY H:mm'
|
48
|
+
},
|
49
|
+
calendar: {
|
50
|
+
sameDay: '[danas u] LT',
|
51
|
+
nextDay: '[sutra u] LT',
|
52
|
+
nextWeek: function () {
|
53
|
+
switch (this.day()) {
|
54
|
+
case 0:
|
55
|
+
return '[u] [nedelju] [u] LT';
|
56
|
+
case 3:
|
57
|
+
return '[u] [sredu] [u] LT';
|
58
|
+
case 6:
|
59
|
+
return '[u] [subotu] [u] LT';
|
60
|
+
case 1:
|
61
|
+
case 2:
|
62
|
+
case 4:
|
63
|
+
case 5:
|
64
|
+
return '[u] dddd [u] LT';
|
65
|
+
}
|
66
|
+
},
|
67
|
+
lastDay : '[juče u] LT',
|
68
|
+
lastWeek : function () {
|
69
|
+
var lastWeekDays = [
|
70
|
+
'[prošle] [nedelje] [u] LT',
|
71
|
+
'[prošlog] [ponedeljka] [u] LT',
|
72
|
+
'[prošlog] [utorka] [u] LT',
|
73
|
+
'[prošle] [srede] [u] LT',
|
74
|
+
'[prošlog] [četvrtka] [u] LT',
|
75
|
+
'[prošlog] [petka] [u] LT',
|
76
|
+
'[prošle] [subote] [u] LT'
|
77
|
+
];
|
78
|
+
return lastWeekDays[this.day()];
|
79
|
+
},
|
80
|
+
sameElse : 'L'
|
81
|
+
},
|
82
|
+
relativeTime : {
|
83
|
+
future : 'za %s',
|
84
|
+
past : 'pre %s',
|
85
|
+
s : 'nekoliko sekundi',
|
86
|
+
m : translator.translate,
|
87
|
+
mm : translator.translate,
|
88
|
+
h : translator.translate,
|
89
|
+
hh : translator.translate,
|
90
|
+
d : 'dan',
|
91
|
+
dd : translator.translate,
|
92
|
+
M : 'mesec',
|
93
|
+
MM : translator.translate,
|
94
|
+
y : 'godinu',
|
95
|
+
yy : translator.translate
|
96
|
+
},
|
97
|
+
ordinalParse: /\d{1,2}\./,
|
98
|
+
ordinal : '%d.',
|
99
|
+
week : {
|
100
|
+
dow : 1, // Monday is the first day of the week.
|
101
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
102
|
+
}
|
103
|
+
});
|
104
|
+
|
105
|
+
return sr;
|
106
|
+
|
107
|
+
}));
|
@@ -0,0 +1,66 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : swedish (sv)
|
3
|
+
//! author : Jens Alm : https://github.com/ulmus
|
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 sv = moment.defineLocale('sv', {
|
13
|
+
months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
|
14
|
+
monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
|
15
|
+
weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
|
16
|
+
weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
|
17
|
+
weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),
|
18
|
+
longDateFormat : {
|
19
|
+
LT : 'HH:mm',
|
20
|
+
LTS : 'HH:mm:ss',
|
21
|
+
L : 'YYYY-MM-DD',
|
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: '[Idag] LT',
|
28
|
+
nextDay: '[Imorgon] LT',
|
29
|
+
lastDay: '[Igår] LT',
|
30
|
+
nextWeek: '[På] dddd LT',
|
31
|
+
lastWeek: '[I] dddd[s] LT',
|
32
|
+
sameElse: 'L'
|
33
|
+
},
|
34
|
+
relativeTime : {
|
35
|
+
future : 'om %s',
|
36
|
+
past : 'för %s sedan',
|
37
|
+
s : 'några sekunder',
|
38
|
+
m : 'en minut',
|
39
|
+
mm : '%d minuter',
|
40
|
+
h : 'en timme',
|
41
|
+
hh : '%d timmar',
|
42
|
+
d : 'en dag',
|
43
|
+
dd : '%d dagar',
|
44
|
+
M : 'en månad',
|
45
|
+
MM : '%d månader',
|
46
|
+
y : 'ett år',
|
47
|
+
yy : '%d år'
|
48
|
+
},
|
49
|
+
ordinalParse: /\d{1,2}(e|a)/,
|
50
|
+
ordinal : function (number) {
|
51
|
+
var b = number % 10,
|
52
|
+
output = (~~(number % 100 / 10) === 1) ? 'e' :
|
53
|
+
(b === 1) ? 'a' :
|
54
|
+
(b === 2) ? 'a' :
|
55
|
+
(b === 3) ? 'e' : 'e';
|
56
|
+
return number + output;
|
57
|
+
},
|
58
|
+
week : {
|
59
|
+
dow : 1, // Monday is the first day of the week.
|
60
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
61
|
+
}
|
62
|
+
});
|
63
|
+
|
64
|
+
return sv;
|
65
|
+
|
66
|
+
}));
|
@@ -0,0 +1,94 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : tamil (ta)
|
3
|
+
//! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
|
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 ta = moment.defineLocale('ta', {
|
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
|
+
ordinalParse: /\d{1,2}வது/,
|
50
|
+
ordinal : function (number) {
|
51
|
+
return number + 'வது';
|
52
|
+
},
|
53
|
+
// refer http://ta.wikipedia.org/s/1er1
|
54
|
+
meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
|
55
|
+
meridiem : function (hour, minute, isLower) {
|
56
|
+
if (hour < 2) {
|
57
|
+
return ' யாமம்';
|
58
|
+
} else if (hour < 6) {
|
59
|
+
return ' வைகறை'; // வைகறை
|
60
|
+
} else if (hour < 10) {
|
61
|
+
return ' காலை'; // காலை
|
62
|
+
} else if (hour < 14) {
|
63
|
+
return ' நண்பகல்'; // நண்பகல்
|
64
|
+
} else if (hour < 18) {
|
65
|
+
return ' எற்பாடு'; // எற்பாடு
|
66
|
+
} else if (hour < 22) {
|
67
|
+
return ' மாலை'; // மாலை
|
68
|
+
} else {
|
69
|
+
return ' யாமம்';
|
70
|
+
}
|
71
|
+
},
|
72
|
+
meridiemHour : function (hour, meridiem) {
|
73
|
+
if (hour === 12) {
|
74
|
+
hour = 0;
|
75
|
+
}
|
76
|
+
if (meridiem === 'யாமம்') {
|
77
|
+
return hour < 2 ? hour : hour + 12;
|
78
|
+
} else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
|
79
|
+
return hour;
|
80
|
+
} else if (meridiem === 'நண்பகல்') {
|
81
|
+
return hour >= 10 ? hour : hour + 12;
|
82
|
+
} else {
|
83
|
+
return hour + 12;
|
84
|
+
}
|
85
|
+
},
|
86
|
+
week : {
|
87
|
+
dow : 0, // Sunday is the first day of the week.
|
88
|
+
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
89
|
+
}
|
90
|
+
});
|
91
|
+
|
92
|
+
return ta;
|
93
|
+
|
94
|
+
}));
|
@@ -0,0 +1,64 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : thai (th)
|
3
|
+
//! author : Kridsada Thanabulpong : https://github.com/sirn
|
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 th = moment.defineLocale('th', {
|
13
|
+
months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
|
14
|
+
monthsShort : 'มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา'.split('_'),
|
15
|
+
weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
|
16
|
+
weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
|
17
|
+
weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
|
18
|
+
longDateFormat : {
|
19
|
+
LT : 'H นาฬิกา m นาที',
|
20
|
+
LTS : 'H นาฬิกา m นาที s วินาที',
|
21
|
+
L : 'YYYY/MM/DD',
|
22
|
+
LL : 'D MMMM YYYY',
|
23
|
+
LLL : 'D MMMM YYYY เวลา H นาฬิกา m นาที',
|
24
|
+
LLLL : 'วันddddที่ D MMMM YYYY เวลา H นาฬิกา m นาที'
|
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
|
+
m : '1 นาที',
|
50
|
+
mm : '%d นาที',
|
51
|
+
h : '1 ชั่วโมง',
|
52
|
+
hh : '%d ชั่วโมง',
|
53
|
+
d : '1 วัน',
|
54
|
+
dd : '%d วัน',
|
55
|
+
M : '1 เดือน',
|
56
|
+
MM : '%d เดือน',
|
57
|
+
y : '1 ปี',
|
58
|
+
yy : '%d ปี'
|
59
|
+
}
|
60
|
+
});
|
61
|
+
|
62
|
+
return th;
|
63
|
+
|
64
|
+
}));
|
@@ -0,0 +1,61 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Tagalog/Filipino (tl-ph)
|
3
|
+
//! author : Dan Hagman
|
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 tl_ph = moment.defineLocale('tl-ph', {
|
13
|
+
months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
|
14
|
+
monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
|
15
|
+
weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
|
16
|
+
weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
|
17
|
+
weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
|
18
|
+
longDateFormat : {
|
19
|
+
LT : 'HH:mm',
|
20
|
+
LTS : 'HH:mm:ss',
|
21
|
+
L : 'MM/D/YYYY',
|
22
|
+
LL : 'MMMM D, YYYY',
|
23
|
+
LLL : 'MMMM D, YYYY HH:mm',
|
24
|
+
LLLL : 'dddd, MMMM DD, YYYY HH:mm'
|
25
|
+
},
|
26
|
+
calendar : {
|
27
|
+
sameDay: '[Ngayon sa] LT',
|
28
|
+
nextDay: '[Bukas sa] LT',
|
29
|
+
nextWeek: 'dddd [sa] LT',
|
30
|
+
lastDay: '[Kahapon sa] LT',
|
31
|
+
lastWeek: 'dddd [huling linggo] LT',
|
32
|
+
sameElse: 'L'
|
33
|
+
},
|
34
|
+
relativeTime : {
|
35
|
+
future : 'sa loob ng %s',
|
36
|
+
past : '%s ang nakalipas',
|
37
|
+
s : 'ilang segundo',
|
38
|
+
m : 'isang minuto',
|
39
|
+
mm : '%d minuto',
|
40
|
+
h : 'isang oras',
|
41
|
+
hh : '%d oras',
|
42
|
+
d : 'isang araw',
|
43
|
+
dd : '%d araw',
|
44
|
+
M : 'isang buwan',
|
45
|
+
MM : '%d buwan',
|
46
|
+
y : 'isang taon',
|
47
|
+
yy : '%d taon'
|
48
|
+
},
|
49
|
+
ordinalParse: /\d{1,2}/,
|
50
|
+
ordinal : function (number) {
|
51
|
+
return number;
|
52
|
+
},
|
53
|
+
week : {
|
54
|
+
dow : 1, // Monday is the first day of the week.
|
55
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
56
|
+
}
|
57
|
+
});
|
58
|
+
|
59
|
+
return tl_ph;
|
60
|
+
|
61
|
+
}));
|
@@ -0,0 +1,89 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : turkish (tr)
|
3
|
+
//! authors : Erhan Gundogan : https://github.com/erhangundogan,
|
4
|
+
//! Burak Yiğit Kaya: https://github.com/BYK
|
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 suffixes = {
|
14
|
+
1: '\'inci',
|
15
|
+
5: '\'inci',
|
16
|
+
8: '\'inci',
|
17
|
+
70: '\'inci',
|
18
|
+
80: '\'inci',
|
19
|
+
2: '\'nci',
|
20
|
+
7: '\'nci',
|
21
|
+
20: '\'nci',
|
22
|
+
50: '\'nci',
|
23
|
+
3: '\'üncü',
|
24
|
+
4: '\'üncü',
|
25
|
+
100: '\'üncü',
|
26
|
+
6: '\'ncı',
|
27
|
+
9: '\'uncu',
|
28
|
+
10: '\'uncu',
|
29
|
+
30: '\'uncu',
|
30
|
+
60: '\'ıncı',
|
31
|
+
90: '\'ıncı'
|
32
|
+
};
|
33
|
+
|
34
|
+
var tr = moment.defineLocale('tr', {
|
35
|
+
months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
|
36
|
+
monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
|
37
|
+
weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
|
38
|
+
weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
|
39
|
+
weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.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 : '[bugün saat] LT',
|
50
|
+
nextDay : '[yarın saat] LT',
|
51
|
+
nextWeek : '[haftaya] dddd [saat] LT',
|
52
|
+
lastDay : '[dün] LT',
|
53
|
+
lastWeek : '[geçen hafta] dddd [saat] LT',
|
54
|
+
sameElse : 'L'
|
55
|
+
},
|
56
|
+
relativeTime : {
|
57
|
+
future : '%s sonra',
|
58
|
+
past : '%s önce',
|
59
|
+
s : 'birkaç saniye',
|
60
|
+
m : 'bir dakika',
|
61
|
+
mm : '%d dakika',
|
62
|
+
h : 'bir saat',
|
63
|
+
hh : '%d saat',
|
64
|
+
d : 'bir gün',
|
65
|
+
dd : '%d gün',
|
66
|
+
M : 'bir ay',
|
67
|
+
MM : '%d ay',
|
68
|
+
y : 'bir yıl',
|
69
|
+
yy : '%d yıl'
|
70
|
+
},
|
71
|
+
ordinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,
|
72
|
+
ordinal : function (number) {
|
73
|
+
if (number === 0) { // special case for zero
|
74
|
+
return number + '\'ıncı';
|
75
|
+
}
|
76
|
+
var a = number % 10,
|
77
|
+
b = number % 100 - a,
|
78
|
+
c = number >= 100 ? 100 : null;
|
79
|
+
return number + (suffixes[a] || suffixes[b] || suffixes[c]);
|
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 tr;
|
88
|
+
|
89
|
+
}));
|
@@ -0,0 +1,84 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : talossan (tzl)
|
3
|
+
//! author : Robin van der Vliet : https://github.com/robin0van0der0v with the help of Iustì Canun
|
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
|
+
|
13
|
+
var tzl = moment.defineLocale('tzl', {
|
14
|
+
months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
|
15
|
+
monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
|
16
|
+
weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
|
17
|
+
weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
|
18
|
+
weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
|
19
|
+
longDateFormat : {
|
20
|
+
LT : 'HH.mm',
|
21
|
+
LTS : 'LT.ss',
|
22
|
+
L : 'DD.MM.YYYY',
|
23
|
+
LL : 'D. MMMM [dallas] YYYY',
|
24
|
+
LLL : 'D. MMMM [dallas] YYYY LT',
|
25
|
+
LLLL : 'dddd, [li] D. MMMM [dallas] YYYY LT'
|
26
|
+
},
|
27
|
+
meridiem : function (hours, minutes, isLower) {
|
28
|
+
if (hours > 11) {
|
29
|
+
return isLower ? 'd\'o' : 'D\'O';
|
30
|
+
} else {
|
31
|
+
return isLower ? 'd\'a' : 'D\'A';
|
32
|
+
}
|
33
|
+
},
|
34
|
+
calendar : {
|
35
|
+
sameDay : '[oxhi à] LT',
|
36
|
+
nextDay : '[demà à] LT',
|
37
|
+
nextWeek : 'dddd [à] LT',
|
38
|
+
lastDay : '[ieiri à] LT',
|
39
|
+
lastWeek : '[sür el] dddd [lasteu à] LT',
|
40
|
+
sameElse : 'L'
|
41
|
+
},
|
42
|
+
relativeTime : {
|
43
|
+
future : 'osprei %s',
|
44
|
+
past : 'ja%s',
|
45
|
+
s : processRelativeTime,
|
46
|
+
m : processRelativeTime,
|
47
|
+
mm : processRelativeTime,
|
48
|
+
h : processRelativeTime,
|
49
|
+
hh : processRelativeTime,
|
50
|
+
d : processRelativeTime,
|
51
|
+
dd : processRelativeTime,
|
52
|
+
M : processRelativeTime,
|
53
|
+
MM : processRelativeTime,
|
54
|
+
y : processRelativeTime,
|
55
|
+
yy : processRelativeTime
|
56
|
+
},
|
57
|
+
ordinalParse: /\d{1,2}\./,
|
58
|
+
ordinal : '%d.',
|
59
|
+
week : {
|
60
|
+
dow : 1, // Monday is the first day of the week.
|
61
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
62
|
+
}
|
63
|
+
});
|
64
|
+
|
65
|
+
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
66
|
+
var format = {
|
67
|
+
's': ['viensas secunds', '\'iensas secunds'],
|
68
|
+
'm': ['\'n míut', '\'iens míut'],
|
69
|
+
'mm': [number + ' míuts', ' ' + number + ' míuts'],
|
70
|
+
'h': ['\'n þora', '\'iensa þora'],
|
71
|
+
'hh': [number + ' þoras', ' ' + number + ' þoras'],
|
72
|
+
'd': ['\'n ziua', '\'iensa ziua'],
|
73
|
+
'dd': [number + ' ziuas', ' ' + number + ' ziuas'],
|
74
|
+
'M': ['\'n mes', '\'iens mes'],
|
75
|
+
'MM': [number + ' mesen', ' ' + number + ' mesen'],
|
76
|
+
'y': ['\'n ar', '\'iens ar'],
|
77
|
+
'yy': [number + ' ars', ' ' + number + ' ars']
|
78
|
+
};
|
79
|
+
return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1].trim());
|
80
|
+
}
|
81
|
+
|
82
|
+
return tzl;
|
83
|
+
|
84
|
+
}));
|