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,62 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : canadian english (en-ca)
|
3
|
+
//! author : Jonathan Abourbih : https://github.com/jonbca
|
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 en_ca = moment.defineLocale('en-ca', {
|
13
|
+
months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
14
|
+
monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
15
|
+
weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
16
|
+
weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
17
|
+
weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
18
|
+
longDateFormat : {
|
19
|
+
LT : 'h:mm A',
|
20
|
+
LTS : 'h:mm:ss A',
|
21
|
+
L : 'YYYY-MM-DD',
|
22
|
+
LL : 'D MMMM, YYYY',
|
23
|
+
LLL : 'D MMMM, YYYY h:mm A',
|
24
|
+
LLLL : 'dddd, D MMMM, YYYY h:mm A'
|
25
|
+
},
|
26
|
+
calendar : {
|
27
|
+
sameDay : '[Today at] LT',
|
28
|
+
nextDay : '[Tomorrow at] LT',
|
29
|
+
nextWeek : 'dddd [at] LT',
|
30
|
+
lastDay : '[Yesterday at] LT',
|
31
|
+
lastWeek : '[Last] dddd [at] LT',
|
32
|
+
sameElse : 'L'
|
33
|
+
},
|
34
|
+
relativeTime : {
|
35
|
+
future : 'in %s',
|
36
|
+
past : '%s ago',
|
37
|
+
s : 'a few seconds',
|
38
|
+
m : 'a minute',
|
39
|
+
mm : '%d minutes',
|
40
|
+
h : 'an hour',
|
41
|
+
hh : '%d hours',
|
42
|
+
d : 'a day',
|
43
|
+
dd : '%d days',
|
44
|
+
M : 'a month',
|
45
|
+
MM : '%d months',
|
46
|
+
y : 'a year',
|
47
|
+
yy : '%d years'
|
48
|
+
},
|
49
|
+
ordinalParse: /\d{1,2}(st|nd|rd|th)/,
|
50
|
+
ordinal : function (number) {
|
51
|
+
var b = number % 10,
|
52
|
+
output = (~~(number % 100 / 10) === 1) ? 'th' :
|
53
|
+
(b === 1) ? 'st' :
|
54
|
+
(b === 2) ? 'nd' :
|
55
|
+
(b === 3) ? 'rd' : 'th';
|
56
|
+
return number + output;
|
57
|
+
}
|
58
|
+
});
|
59
|
+
|
60
|
+
return en_ca;
|
61
|
+
|
62
|
+
}));
|
@@ -0,0 +1,66 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : great britain english (en-gb)
|
3
|
+
//! author : Chris Gedrim : https://github.com/chrisgedrim
|
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 en_gb = moment.defineLocale('en-gb', {
|
13
|
+
months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
14
|
+
monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
15
|
+
weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
16
|
+
weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
17
|
+
weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.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 : '[Today at] LT',
|
28
|
+
nextDay : '[Tomorrow at] LT',
|
29
|
+
nextWeek : 'dddd [at] LT',
|
30
|
+
lastDay : '[Yesterday at] LT',
|
31
|
+
lastWeek : '[Last] dddd [at] LT',
|
32
|
+
sameElse : 'L'
|
33
|
+
},
|
34
|
+
relativeTime : {
|
35
|
+
future : 'in %s',
|
36
|
+
past : '%s ago',
|
37
|
+
s : 'a few seconds',
|
38
|
+
m : 'a minute',
|
39
|
+
mm : '%d minutes',
|
40
|
+
h : 'an hour',
|
41
|
+
hh : '%d hours',
|
42
|
+
d : 'a day',
|
43
|
+
dd : '%d days',
|
44
|
+
M : 'a month',
|
45
|
+
MM : '%d months',
|
46
|
+
y : 'a year',
|
47
|
+
yy : '%d years'
|
48
|
+
},
|
49
|
+
ordinalParse: /\d{1,2}(st|nd|rd|th)/,
|
50
|
+
ordinal : function (number) {
|
51
|
+
var b = number % 10,
|
52
|
+
output = (~~(number % 100 / 10) === 1) ? 'th' :
|
53
|
+
(b === 1) ? 'st' :
|
54
|
+
(b === 2) ? 'nd' :
|
55
|
+
(b === 3) ? 'rd' : 'th';
|
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 en_gb;
|
65
|
+
|
66
|
+
}));
|
@@ -0,0 +1,72 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : esperanto (eo)
|
3
|
+
//! author : Colin Dean : https://github.com/colindean
|
4
|
+
//! komento: Mi estas malcerta se mi korekte traktis akuzativojn en tiu traduko.
|
5
|
+
//! Se ne, bonvolu korekti kaj avizi min por ke mi povas lerni!
|
6
|
+
|
7
|
+
(function (global, factory) {
|
8
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? 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 eo = moment.defineLocale('eo', {
|
15
|
+
months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
|
16
|
+
monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
|
17
|
+
weekdays : 'Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato'.split('_'),
|
18
|
+
weekdaysShort : 'Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab'.split('_'),
|
19
|
+
weekdaysMin : 'Di_Lu_Ma_Me_Ĵa_Ve_Sa'.split('_'),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : 'HH:mm',
|
22
|
+
LTS : 'HH:mm:ss',
|
23
|
+
L : 'YYYY-MM-DD',
|
24
|
+
LL : 'D[-an de] MMMM, YYYY',
|
25
|
+
LLL : 'D[-an de] MMMM, YYYY HH:mm',
|
26
|
+
LLLL : 'dddd, [la] D[-an de] MMMM, YYYY HH:mm'
|
27
|
+
},
|
28
|
+
meridiemParse: /[ap]\.t\.m/i,
|
29
|
+
isPM: function (input) {
|
30
|
+
return input.charAt(0).toLowerCase() === 'p';
|
31
|
+
},
|
32
|
+
meridiem : function (hours, minutes, isLower) {
|
33
|
+
if (hours > 11) {
|
34
|
+
return isLower ? 'p.t.m.' : 'P.T.M.';
|
35
|
+
} else {
|
36
|
+
return isLower ? 'a.t.m.' : 'A.T.M.';
|
37
|
+
}
|
38
|
+
},
|
39
|
+
calendar : {
|
40
|
+
sameDay : '[Hodiaŭ je] LT',
|
41
|
+
nextDay : '[Morgaŭ je] LT',
|
42
|
+
nextWeek : 'dddd [je] LT',
|
43
|
+
lastDay : '[Hieraŭ je] LT',
|
44
|
+
lastWeek : '[pasinta] dddd [je] LT',
|
45
|
+
sameElse : 'L'
|
46
|
+
},
|
47
|
+
relativeTime : {
|
48
|
+
future : 'je %s',
|
49
|
+
past : 'antaŭ %s',
|
50
|
+
s : 'sekundoj',
|
51
|
+
m : 'minuto',
|
52
|
+
mm : '%d minutoj',
|
53
|
+
h : 'horo',
|
54
|
+
hh : '%d horoj',
|
55
|
+
d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
|
56
|
+
dd : '%d tagoj',
|
57
|
+
M : 'monato',
|
58
|
+
MM : '%d monatoj',
|
59
|
+
y : 'jaro',
|
60
|
+
yy : '%d jaroj'
|
61
|
+
},
|
62
|
+
ordinalParse: /\d{1,2}a/,
|
63
|
+
ordinal : '%da',
|
64
|
+
week : {
|
65
|
+
dow : 1, // Monday is the first day of the week.
|
66
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
67
|
+
}
|
68
|
+
});
|
69
|
+
|
70
|
+
return eo;
|
71
|
+
|
72
|
+
}));
|
@@ -0,0 +1,78 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : spanish (es)
|
3
|
+
//! author : Julio Napurí : https://github.com/julionc
|
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 monthsShortDot = 'Ene._Feb._Mar._Abr._May._Jun._Jul._Ago._Sep._Oct._Nov._Dic.'.split('_'),
|
13
|
+
monthsShort = 'Ene_Feb_Mar_Abr_May_Jun_Jul_Ago_Sep_Oct_Nov_Dic'.split('_');
|
14
|
+
|
15
|
+
var es = moment.defineLocale('es', {
|
16
|
+
months : 'Enero_Febrero_Marzo_Abril_Mayo_Junio_Julio_Agosto_Septiembre_Octubre_Noviembre_Diciembre'.split('_'),
|
17
|
+
monthsShort : function (m, format) {
|
18
|
+
if (/-MMM-/.test(format)) {
|
19
|
+
return monthsShort[m.month()];
|
20
|
+
} else {
|
21
|
+
return monthsShortDot[m.month()];
|
22
|
+
}
|
23
|
+
},
|
24
|
+
weekdays : 'Domingo_Lunes_Martes_Miércoles_Jueves_Viernes_Sábado'.split('_'),
|
25
|
+
weekdaysShort : 'Dom._Lun._Mar._Mié._Jue._Vie._Sáb.'.split('_'),
|
26
|
+
weekdaysMin : 'Do_Lu_Ma_Mi_Ju_Vi_Sá'.split('_'),
|
27
|
+
longDateFormat : {
|
28
|
+
LT : 'H:mm',
|
29
|
+
LTS : 'H:mm:ss',
|
30
|
+
L : 'DD/MM/YYYY',
|
31
|
+
LL : 'D [de] MMMM [de] YYYY',
|
32
|
+
LLL : 'D [de] MMMM [de] YYYY H:mm',
|
33
|
+
LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
|
34
|
+
},
|
35
|
+
calendar : {
|
36
|
+
sameDay : function () {
|
37
|
+
return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
38
|
+
},
|
39
|
+
nextDay : function () {
|
40
|
+
return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
41
|
+
},
|
42
|
+
nextWeek : function () {
|
43
|
+
return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
44
|
+
},
|
45
|
+
lastDay : function () {
|
46
|
+
return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
47
|
+
},
|
48
|
+
lastWeek : function () {
|
49
|
+
return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
50
|
+
},
|
51
|
+
sameElse : 'L'
|
52
|
+
},
|
53
|
+
relativeTime : {
|
54
|
+
future : 'en %s',
|
55
|
+
past : 'hace %s',
|
56
|
+
s : 'unos segundos',
|
57
|
+
m : 'un minuto',
|
58
|
+
mm : '%d minutos',
|
59
|
+
h : 'una hora',
|
60
|
+
hh : '%d horas',
|
61
|
+
d : 'un día',
|
62
|
+
dd : '%d días',
|
63
|
+
M : 'un mes',
|
64
|
+
MM : '%d meses',
|
65
|
+
y : 'un año',
|
66
|
+
yy : '%d años'
|
67
|
+
},
|
68
|
+
ordinalParse : /\d{1,2}º/,
|
69
|
+
ordinal : '%dº',
|
70
|
+
week : {
|
71
|
+
dow : 1, // Monday is the first day of the week.
|
72
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
73
|
+
}
|
74
|
+
});
|
75
|
+
|
76
|
+
return es;
|
77
|
+
|
78
|
+
}));
|
@@ -0,0 +1,79 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : estonian (et)
|
3
|
+
//! author : Henry Kehlmann : https://github.com/madhenry
|
4
|
+
//! improvements : Illimar Tambek : https://github.com/ragulka
|
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
|
+
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
14
|
+
var format = {
|
15
|
+
's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
|
16
|
+
'm' : ['ühe minuti', 'üks minut'],
|
17
|
+
'mm': [number + ' minuti', number + ' minutit'],
|
18
|
+
'h' : ['ühe tunni', 'tund aega', 'üks tund'],
|
19
|
+
'hh': [number + ' tunni', number + ' tundi'],
|
20
|
+
'd' : ['ühe päeva', 'üks päev'],
|
21
|
+
'M' : ['kuu aja', 'kuu aega', 'üks kuu'],
|
22
|
+
'MM': [number + ' kuu', number + ' kuud'],
|
23
|
+
'y' : ['ühe aasta', 'aasta', 'üks aasta'],
|
24
|
+
'yy': [number + ' aasta', number + ' aastat']
|
25
|
+
};
|
26
|
+
if (withoutSuffix) {
|
27
|
+
return format[key][2] ? format[key][2] : format[key][1];
|
28
|
+
}
|
29
|
+
return isFuture ? format[key][0] : format[key][1];
|
30
|
+
}
|
31
|
+
|
32
|
+
var et = moment.defineLocale('et', {
|
33
|
+
months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
|
34
|
+
monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
|
35
|
+
weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
|
36
|
+
weekdaysShort : 'P_E_T_K_N_R_L'.split('_'),
|
37
|
+
weekdaysMin : 'P_E_T_K_N_R_L'.split('_'),
|
38
|
+
longDateFormat : {
|
39
|
+
LT : 'H:mm',
|
40
|
+
LTS : 'H:mm:ss',
|
41
|
+
L : 'DD.MM.YYYY',
|
42
|
+
LL : 'D. MMMM YYYY',
|
43
|
+
LLL : 'D. MMMM YYYY H:mm',
|
44
|
+
LLLL : 'dddd, D. MMMM YYYY H:mm'
|
45
|
+
},
|
46
|
+
calendar : {
|
47
|
+
sameDay : '[Täna,] LT',
|
48
|
+
nextDay : '[Homme,] LT',
|
49
|
+
nextWeek : '[Järgmine] dddd LT',
|
50
|
+
lastDay : '[Eile,] LT',
|
51
|
+
lastWeek : '[Eelmine] dddd LT',
|
52
|
+
sameElse : 'L'
|
53
|
+
},
|
54
|
+
relativeTime : {
|
55
|
+
future : '%s pärast',
|
56
|
+
past : '%s tagasi',
|
57
|
+
s : processRelativeTime,
|
58
|
+
m : processRelativeTime,
|
59
|
+
mm : processRelativeTime,
|
60
|
+
h : processRelativeTime,
|
61
|
+
hh : processRelativeTime,
|
62
|
+
d : processRelativeTime,
|
63
|
+
dd : '%d päeva',
|
64
|
+
M : processRelativeTime,
|
65
|
+
MM : processRelativeTime,
|
66
|
+
y : processRelativeTime,
|
67
|
+
yy : processRelativeTime
|
68
|
+
},
|
69
|
+
ordinalParse: /\d{1,2}\./,
|
70
|
+
ordinal : '%d.',
|
71
|
+
week : {
|
72
|
+
dow : 1, // Monday is the first day of the week.
|
73
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
74
|
+
}
|
75
|
+
});
|
76
|
+
|
77
|
+
return et;
|
78
|
+
|
79
|
+
}));
|
@@ -0,0 +1,63 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : euskara (eu)
|
3
|
+
//! author : Eneko Illarramendi : https://github.com/eillarra
|
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 eu = moment.defineLocale('eu', {
|
13
|
+
months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
|
14
|
+
monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
|
15
|
+
weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
|
16
|
+
weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'),
|
17
|
+
weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'),
|
18
|
+
longDateFormat : {
|
19
|
+
LT : 'HH:mm',
|
20
|
+
LTS : 'HH:mm:ss',
|
21
|
+
L : 'YYYY-MM-DD',
|
22
|
+
LL : 'YYYY[ko] MMMM[ren] D[a]',
|
23
|
+
LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm',
|
24
|
+
LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
|
25
|
+
l : 'YYYY-M-D',
|
26
|
+
ll : 'YYYY[ko] MMM D[a]',
|
27
|
+
lll : 'YYYY[ko] MMM D[a] HH:mm',
|
28
|
+
llll : 'ddd, YYYY[ko] MMM D[a] HH:mm'
|
29
|
+
},
|
30
|
+
calendar : {
|
31
|
+
sameDay : '[gaur] LT[etan]',
|
32
|
+
nextDay : '[bihar] LT[etan]',
|
33
|
+
nextWeek : 'dddd LT[etan]',
|
34
|
+
lastDay : '[atzo] LT[etan]',
|
35
|
+
lastWeek : '[aurreko] dddd LT[etan]',
|
36
|
+
sameElse : 'L'
|
37
|
+
},
|
38
|
+
relativeTime : {
|
39
|
+
future : '%s barru',
|
40
|
+
past : 'duela %s',
|
41
|
+
s : 'segundo batzuk',
|
42
|
+
m : 'minutu bat',
|
43
|
+
mm : '%d minutu',
|
44
|
+
h : 'ordu bat',
|
45
|
+
hh : '%d ordu',
|
46
|
+
d : 'egun bat',
|
47
|
+
dd : '%d egun',
|
48
|
+
M : 'hilabete bat',
|
49
|
+
MM : '%d hilabete',
|
50
|
+
y : 'urte bat',
|
51
|
+
yy : '%d urte'
|
52
|
+
},
|
53
|
+
ordinalParse: /\d{1,2}\./,
|
54
|
+
ordinal : '%d.',
|
55
|
+
week : {
|
56
|
+
dow : 1, // Monday is the first day of the week.
|
57
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
58
|
+
}
|
59
|
+
});
|
60
|
+
|
61
|
+
return eu;
|
62
|
+
|
63
|
+
}));
|
@@ -0,0 +1,104 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Persian (fa)
|
3
|
+
//! author : Ebrahim Byagowi : https://github.com/ebraminio
|
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 symbolMap = {
|
13
|
+
'1': '۱',
|
14
|
+
'2': '۲',
|
15
|
+
'3': '۳',
|
16
|
+
'4': '۴',
|
17
|
+
'5': '۵',
|
18
|
+
'6': '۶',
|
19
|
+
'7': '۷',
|
20
|
+
'8': '۸',
|
21
|
+
'9': '۹',
|
22
|
+
'0': '۰'
|
23
|
+
}, numberMap = {
|
24
|
+
'۱': '1',
|
25
|
+
'۲': '2',
|
26
|
+
'۳': '3',
|
27
|
+
'۴': '4',
|
28
|
+
'۵': '5',
|
29
|
+
'۶': '6',
|
30
|
+
'۷': '7',
|
31
|
+
'۸': '8',
|
32
|
+
'۹': '9',
|
33
|
+
'۰': '0'
|
34
|
+
};
|
35
|
+
|
36
|
+
var fa = moment.defineLocale('fa', {
|
37
|
+
months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
|
38
|
+
monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
|
39
|
+
weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
|
40
|
+
weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
|
41
|
+
weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'),
|
42
|
+
longDateFormat : {
|
43
|
+
LT : 'HH:mm',
|
44
|
+
LTS : 'HH:mm:ss',
|
45
|
+
L : 'DD/MM/YYYY',
|
46
|
+
LL : 'D MMMM YYYY',
|
47
|
+
LLL : 'D MMMM YYYY HH:mm',
|
48
|
+
LLLL : 'dddd, D MMMM YYYY HH:mm'
|
49
|
+
},
|
50
|
+
meridiemParse: /قبل از ظهر|بعد از ظهر/,
|
51
|
+
isPM: function (input) {
|
52
|
+
return /بعد از ظهر/.test(input);
|
53
|
+
},
|
54
|
+
meridiem : function (hour, minute, isLower) {
|
55
|
+
if (hour < 12) {
|
56
|
+
return 'قبل از ظهر';
|
57
|
+
} else {
|
58
|
+
return 'بعد از ظهر';
|
59
|
+
}
|
60
|
+
},
|
61
|
+
calendar : {
|
62
|
+
sameDay : '[امروز ساعت] LT',
|
63
|
+
nextDay : '[فردا ساعت] LT',
|
64
|
+
nextWeek : 'dddd [ساعت] LT',
|
65
|
+
lastDay : '[دیروز ساعت] LT',
|
66
|
+
lastWeek : 'dddd [پیش] [ساعت] LT',
|
67
|
+
sameElse : 'L'
|
68
|
+
},
|
69
|
+
relativeTime : {
|
70
|
+
future : 'در %s',
|
71
|
+
past : '%s پیش',
|
72
|
+
s : 'چندین ثانیه',
|
73
|
+
m : 'یک دقیقه',
|
74
|
+
mm : '%d دقیقه',
|
75
|
+
h : 'یک ساعت',
|
76
|
+
hh : '%d ساعت',
|
77
|
+
d : 'یک روز',
|
78
|
+
dd : '%d روز',
|
79
|
+
M : 'یک ماه',
|
80
|
+
MM : '%d ماه',
|
81
|
+
y : 'یک سال',
|
82
|
+
yy : '%d سال'
|
83
|
+
},
|
84
|
+
preparse: function (string) {
|
85
|
+
return string.replace(/[۰-۹]/g, function (match) {
|
86
|
+
return numberMap[match];
|
87
|
+
}).replace(/،/g, ',');
|
88
|
+
},
|
89
|
+
postformat: function (string) {
|
90
|
+
return string.replace(/\d/g, function (match) {
|
91
|
+
return symbolMap[match];
|
92
|
+
}).replace(/,/g, '،');
|
93
|
+
},
|
94
|
+
ordinalParse: /\d{1,2}م/,
|
95
|
+
ordinal : '%dم',
|
96
|
+
week : {
|
97
|
+
dow : 6, // Saturday is the first day of the week.
|
98
|
+
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
99
|
+
}
|
100
|
+
});
|
101
|
+
|
102
|
+
return fa;
|
103
|
+
|
104
|
+
}));
|
@@ -0,0 +1,106 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : finnish (fi)
|
3
|
+
//! author : Tarmo Aidantausta : https://github.com/bleadof
|
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 numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),
|
13
|
+
numbersFuture = [
|
14
|
+
'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
|
15
|
+
numbersPast[7], numbersPast[8], numbersPast[9]
|
16
|
+
];
|
17
|
+
function translate(number, withoutSuffix, key, isFuture) {
|
18
|
+
var result = '';
|
19
|
+
switch (key) {
|
20
|
+
case 's':
|
21
|
+
return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
|
22
|
+
case 'm':
|
23
|
+
return isFuture ? 'minuutin' : 'minuutti';
|
24
|
+
case 'mm':
|
25
|
+
result = isFuture ? 'minuutin' : 'minuuttia';
|
26
|
+
break;
|
27
|
+
case 'h':
|
28
|
+
return isFuture ? 'tunnin' : 'tunti';
|
29
|
+
case 'hh':
|
30
|
+
result = isFuture ? 'tunnin' : 'tuntia';
|
31
|
+
break;
|
32
|
+
case 'd':
|
33
|
+
return isFuture ? 'päivän' : 'päivä';
|
34
|
+
case 'dd':
|
35
|
+
result = isFuture ? 'päivän' : 'päivää';
|
36
|
+
break;
|
37
|
+
case 'M':
|
38
|
+
return isFuture ? 'kuukauden' : 'kuukausi';
|
39
|
+
case 'MM':
|
40
|
+
result = isFuture ? 'kuukauden' : 'kuukautta';
|
41
|
+
break;
|
42
|
+
case 'y':
|
43
|
+
return isFuture ? 'vuoden' : 'vuosi';
|
44
|
+
case 'yy':
|
45
|
+
result = isFuture ? 'vuoden' : 'vuotta';
|
46
|
+
break;
|
47
|
+
}
|
48
|
+
result = verbalNumber(number, isFuture) + ' ' + result;
|
49
|
+
return result;
|
50
|
+
}
|
51
|
+
function verbalNumber(number, isFuture) {
|
52
|
+
return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number;
|
53
|
+
}
|
54
|
+
|
55
|
+
var fi = moment.defineLocale('fi', {
|
56
|
+
months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
|
57
|
+
monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
|
58
|
+
weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
|
59
|
+
weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'),
|
60
|
+
weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'),
|
61
|
+
longDateFormat : {
|
62
|
+
LT : 'HH.mm',
|
63
|
+
LTS : 'HH.mm.ss',
|
64
|
+
L : 'DD.MM.YYYY',
|
65
|
+
LL : 'Do MMMM[ta] YYYY',
|
66
|
+
LLL : 'Do MMMM[ta] YYYY, [klo] HH.mm',
|
67
|
+
LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
|
68
|
+
l : 'D.M.YYYY',
|
69
|
+
ll : 'Do MMM YYYY',
|
70
|
+
lll : 'Do MMM YYYY, [klo] HH.mm',
|
71
|
+
llll : 'ddd, Do MMM YYYY, [klo] HH.mm'
|
72
|
+
},
|
73
|
+
calendar : {
|
74
|
+
sameDay : '[tänään] [klo] LT',
|
75
|
+
nextDay : '[huomenna] [klo] LT',
|
76
|
+
nextWeek : 'dddd [klo] LT',
|
77
|
+
lastDay : '[eilen] [klo] LT',
|
78
|
+
lastWeek : '[viime] dddd[na] [klo] LT',
|
79
|
+
sameElse : 'L'
|
80
|
+
},
|
81
|
+
relativeTime : {
|
82
|
+
future : '%s päästä',
|
83
|
+
past : '%s sitten',
|
84
|
+
s : translate,
|
85
|
+
m : translate,
|
86
|
+
mm : translate,
|
87
|
+
h : translate,
|
88
|
+
hh : translate,
|
89
|
+
d : translate,
|
90
|
+
dd : translate,
|
91
|
+
M : translate,
|
92
|
+
MM : translate,
|
93
|
+
y : translate,
|
94
|
+
yy : translate
|
95
|
+
},
|
96
|
+
ordinalParse: /\d{1,2}\./,
|
97
|
+
ordinal : '%d.',
|
98
|
+
week : {
|
99
|
+
dow : 1, // Monday is the first day of the week.
|
100
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
101
|
+
}
|
102
|
+
});
|
103
|
+
|
104
|
+
return fi;
|
105
|
+
|
106
|
+
}));
|