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,72 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : afrikaans (af)
|
3
|
+
//! author : Werner Mollentze : https://github.com/wernerm
|
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 af = moment.defineLocale('af', {
|
13
|
+
months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
|
14
|
+
monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
|
15
|
+
weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
|
16
|
+
weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
|
17
|
+
weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
|
18
|
+
meridiemParse: /vm|nm/i,
|
19
|
+
isPM : function (input) {
|
20
|
+
return /^nm$/i.test(input);
|
21
|
+
},
|
22
|
+
meridiem : function (hours, minutes, isLower) {
|
23
|
+
if (hours < 12) {
|
24
|
+
return isLower ? 'vm' : 'VM';
|
25
|
+
} else {
|
26
|
+
return isLower ? 'nm' : 'NM';
|
27
|
+
}
|
28
|
+
},
|
29
|
+
longDateFormat : {
|
30
|
+
LT : 'HH:mm',
|
31
|
+
LTS : 'HH:mm:ss',
|
32
|
+
L : 'DD/MM/YYYY',
|
33
|
+
LL : 'D MMMM YYYY',
|
34
|
+
LLL : 'D MMMM YYYY HH:mm',
|
35
|
+
LLLL : 'dddd, D MMMM YYYY HH:mm'
|
36
|
+
},
|
37
|
+
calendar : {
|
38
|
+
sameDay : '[Vandag om] LT',
|
39
|
+
nextDay : '[Môre om] LT',
|
40
|
+
nextWeek : 'dddd [om] LT',
|
41
|
+
lastDay : '[Gister om] LT',
|
42
|
+
lastWeek : '[Laas] dddd [om] LT',
|
43
|
+
sameElse : 'L'
|
44
|
+
},
|
45
|
+
relativeTime : {
|
46
|
+
future : 'oor %s',
|
47
|
+
past : '%s gelede',
|
48
|
+
s : '\'n paar sekondes',
|
49
|
+
m : '\'n minuut',
|
50
|
+
mm : '%d minute',
|
51
|
+
h : '\'n uur',
|
52
|
+
hh : '%d ure',
|
53
|
+
d : '\'n dag',
|
54
|
+
dd : '%d dae',
|
55
|
+
M : '\'n maand',
|
56
|
+
MM : '%d maande',
|
57
|
+
y : '\'n jaar',
|
58
|
+
yy : '%d jaar'
|
59
|
+
},
|
60
|
+
ordinalParse: /\d{1,2}(ste|de)/,
|
61
|
+
ordinal : function (number) {
|
62
|
+
return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
|
63
|
+
},
|
64
|
+
week : {
|
65
|
+
dow : 1, // Maandag is die eerste dag van die week.
|
66
|
+
doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
|
67
|
+
}
|
68
|
+
});
|
69
|
+
|
70
|
+
return af;
|
71
|
+
|
72
|
+
}));
|
@@ -0,0 +1,58 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Moroccan Arabic (ar-ma)
|
3
|
+
//! author : ElFadili Yassine : https://github.com/ElFadiliY
|
4
|
+
//! author : Abdel Said : https://github.com/abdelsaid
|
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 ar_ma = moment.defineLocale('ar-ma', {
|
14
|
+
months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
|
15
|
+
monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
|
16
|
+
weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
17
|
+
weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
|
18
|
+
weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
19
|
+
longDateFormat : {
|
20
|
+
LT : 'HH:mm',
|
21
|
+
LTS : 'HH:mm:ss',
|
22
|
+
L : 'DD/MM/YYYY',
|
23
|
+
LL : 'D MMMM YYYY',
|
24
|
+
LLL : 'D MMMM YYYY HH:mm',
|
25
|
+
LLLL : 'dddd D MMMM YYYY HH:mm'
|
26
|
+
},
|
27
|
+
calendar : {
|
28
|
+
sameDay: '[اليوم على الساعة] LT',
|
29
|
+
nextDay: '[غدا على الساعة] LT',
|
30
|
+
nextWeek: 'dddd [على الساعة] LT',
|
31
|
+
lastDay: '[أمس على الساعة] LT',
|
32
|
+
lastWeek: 'dddd [على الساعة] LT',
|
33
|
+
sameElse: 'L'
|
34
|
+
},
|
35
|
+
relativeTime : {
|
36
|
+
future : 'في %s',
|
37
|
+
past : 'منذ %s',
|
38
|
+
s : 'ثوان',
|
39
|
+
m : 'دقيقة',
|
40
|
+
mm : '%d دقائق',
|
41
|
+
h : 'ساعة',
|
42
|
+
hh : '%d ساعات',
|
43
|
+
d : 'يوم',
|
44
|
+
dd : '%d أيام',
|
45
|
+
M : 'شهر',
|
46
|
+
MM : '%d أشهر',
|
47
|
+
y : 'سنة',
|
48
|
+
yy : '%d سنوات'
|
49
|
+
},
|
50
|
+
week : {
|
51
|
+
dow : 6, // Saturday is the first day of the week.
|
52
|
+
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
53
|
+
}
|
54
|
+
});
|
55
|
+
|
56
|
+
return ar_ma;
|
57
|
+
|
58
|
+
}));
|
@@ -0,0 +1,102 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Arabic Saudi Arabia (ar-sa)
|
3
|
+
//! author : Suhail Alkowaileet : https://github.com/xsoh
|
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 ar_sa = moment.defineLocale('ar-sa', {
|
37
|
+
months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
38
|
+
monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
39
|
+
weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
40
|
+
weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.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 'م' === 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
|
+
week : {
|
95
|
+
dow : 6, // Saturday is the first day of the week.
|
96
|
+
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
97
|
+
}
|
98
|
+
});
|
99
|
+
|
100
|
+
return ar_sa;
|
101
|
+
|
102
|
+
}));
|
@@ -0,0 +1,56 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Tunisian Arabic (ar-tn)
|
3
|
+
|
4
|
+
(function (global, factory) {
|
5
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? 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 ar_tn = moment.defineLocale('ar-tn', {
|
12
|
+
months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
13
|
+
monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
14
|
+
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
15
|
+
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
16
|
+
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
17
|
+
longDateFormat: {
|
18
|
+
LT: 'HH:mm',
|
19
|
+
LTS: 'HH:mm:ss',
|
20
|
+
L: 'DD/MM/YYYY',
|
21
|
+
LL: 'D MMMM YYYY',
|
22
|
+
LLL: 'D MMMM YYYY HH:mm',
|
23
|
+
LLLL: 'dddd D MMMM YYYY HH:mm'
|
24
|
+
},
|
25
|
+
calendar: {
|
26
|
+
sameDay: '[اليوم على الساعة] LT',
|
27
|
+
nextDay: '[غدا على الساعة] LT',
|
28
|
+
nextWeek: 'dddd [على الساعة] LT',
|
29
|
+
lastDay: '[أمس على الساعة] LT',
|
30
|
+
lastWeek: 'dddd [على الساعة] LT',
|
31
|
+
sameElse: 'L'
|
32
|
+
},
|
33
|
+
relativeTime: {
|
34
|
+
future: 'في %s',
|
35
|
+
past: 'منذ %s',
|
36
|
+
s: 'ثوان',
|
37
|
+
m: 'دقيقة',
|
38
|
+
mm: '%d دقائق',
|
39
|
+
h: 'ساعة',
|
40
|
+
hh: '%d ساعات',
|
41
|
+
d: 'يوم',
|
42
|
+
dd: '%d أيام',
|
43
|
+
M: 'شهر',
|
44
|
+
MM: '%d أشهر',
|
45
|
+
y: 'سنة',
|
46
|
+
yy: '%d سنوات'
|
47
|
+
},
|
48
|
+
week: {
|
49
|
+
dow: 1, // Monday is the first day of the week.
|
50
|
+
doy: 4 // The week that contains Jan 4th is the first week of the year.
|
51
|
+
}
|
52
|
+
});
|
53
|
+
|
54
|
+
return ar_tn;
|
55
|
+
|
56
|
+
}));
|
@@ -0,0 +1,135 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! Locale: Arabic (ar)
|
3
|
+
//! Author: Abdel Said: https://github.com/abdelsaid
|
4
|
+
//! Changes in months, weekdays: Ahmed Elkhatib
|
5
|
+
//! Native plural forms: forabi https://github.com/forabi
|
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 symbolMap = {
|
15
|
+
'1': '١',
|
16
|
+
'2': '٢',
|
17
|
+
'3': '٣',
|
18
|
+
'4': '٤',
|
19
|
+
'5': '٥',
|
20
|
+
'6': '٦',
|
21
|
+
'7': '٧',
|
22
|
+
'8': '٨',
|
23
|
+
'9': '٩',
|
24
|
+
'0': '٠'
|
25
|
+
}, numberMap = {
|
26
|
+
'١': '1',
|
27
|
+
'٢': '2',
|
28
|
+
'٣': '3',
|
29
|
+
'٤': '4',
|
30
|
+
'٥': '5',
|
31
|
+
'٦': '6',
|
32
|
+
'٧': '7',
|
33
|
+
'٨': '8',
|
34
|
+
'٩': '9',
|
35
|
+
'٠': '0'
|
36
|
+
}, pluralForm = function (n) {
|
37
|
+
return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
|
38
|
+
}, plurals = {
|
39
|
+
s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
|
40
|
+
m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
|
41
|
+
h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
|
42
|
+
d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
|
43
|
+
M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
|
44
|
+
y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
|
45
|
+
}, pluralize = function (u) {
|
46
|
+
return function (number, withoutSuffix, string, isFuture) {
|
47
|
+
var f = pluralForm(number),
|
48
|
+
str = plurals[u][pluralForm(number)];
|
49
|
+
if (f === 2) {
|
50
|
+
str = str[withoutSuffix ? 0 : 1];
|
51
|
+
}
|
52
|
+
return str.replace(/%d/i, number);
|
53
|
+
};
|
54
|
+
}, months = [
|
55
|
+
'كانون الثاني يناير',
|
56
|
+
'شباط فبراير',
|
57
|
+
'آذار مارس',
|
58
|
+
'نيسان أبريل',
|
59
|
+
'أيار مايو',
|
60
|
+
'حزيران يونيو',
|
61
|
+
'تموز يوليو',
|
62
|
+
'آب أغسطس',
|
63
|
+
'أيلول سبتمبر',
|
64
|
+
'تشرين الأول أكتوبر',
|
65
|
+
'تشرين الثاني نوفمبر',
|
66
|
+
'كانون الأول ديسمبر'
|
67
|
+
];
|
68
|
+
|
69
|
+
var ar = moment.defineLocale('ar', {
|
70
|
+
months : months,
|
71
|
+
monthsShort : months,
|
72
|
+
weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
73
|
+
weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
74
|
+
weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
75
|
+
longDateFormat : {
|
76
|
+
LT : 'HH:mm',
|
77
|
+
LTS : 'HH:mm:ss',
|
78
|
+
L : 'D/\u200FM/\u200FYYYY',
|
79
|
+
LL : 'D MMMM YYYY',
|
80
|
+
LLL : 'D MMMM YYYY HH:mm',
|
81
|
+
LLLL : 'dddd D MMMM YYYY HH:mm'
|
82
|
+
},
|
83
|
+
meridiemParse: /ص|م/,
|
84
|
+
isPM : function (input) {
|
85
|
+
return 'م' === input;
|
86
|
+
},
|
87
|
+
meridiem : function (hour, minute, isLower) {
|
88
|
+
if (hour < 12) {
|
89
|
+
return 'ص';
|
90
|
+
} else {
|
91
|
+
return 'م';
|
92
|
+
}
|
93
|
+
},
|
94
|
+
calendar : {
|
95
|
+
sameDay: '[اليوم عند الساعة] LT',
|
96
|
+
nextDay: '[غدًا عند الساعة] LT',
|
97
|
+
nextWeek: 'dddd [عند الساعة] LT',
|
98
|
+
lastDay: '[أمس عند الساعة] LT',
|
99
|
+
lastWeek: 'dddd [عند الساعة] LT',
|
100
|
+
sameElse: 'L'
|
101
|
+
},
|
102
|
+
relativeTime : {
|
103
|
+
future : 'بعد %s',
|
104
|
+
past : 'منذ %s',
|
105
|
+
s : pluralize('s'),
|
106
|
+
m : pluralize('m'),
|
107
|
+
mm : pluralize('m'),
|
108
|
+
h : pluralize('h'),
|
109
|
+
hh : pluralize('h'),
|
110
|
+
d : pluralize('d'),
|
111
|
+
dd : pluralize('d'),
|
112
|
+
M : pluralize('M'),
|
113
|
+
MM : pluralize('M'),
|
114
|
+
y : pluralize('y'),
|
115
|
+
yy : pluralize('y')
|
116
|
+
},
|
117
|
+
preparse: function (string) {
|
118
|
+
return string.replace(/\u200f/g, '').replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
|
119
|
+
return numberMap[match];
|
120
|
+
}).replace(/،/g, ',');
|
121
|
+
},
|
122
|
+
postformat: function (string) {
|
123
|
+
return string.replace(/\d/g, function (match) {
|
124
|
+
return symbolMap[match];
|
125
|
+
}).replace(/,/g, '،');
|
126
|
+
},
|
127
|
+
week : {
|
128
|
+
dow : 6, // Saturday is the first day of the week.
|
129
|
+
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
130
|
+
}
|
131
|
+
});
|
132
|
+
|
133
|
+
return ar;
|
134
|
+
|
135
|
+
}));
|
@@ -0,0 +1,103 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : azerbaijani (az)
|
3
|
+
//! author : topchiyev : https://github.com/topchiyev
|
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 suffixes = {
|
13
|
+
1: '-inci',
|
14
|
+
5: '-inci',
|
15
|
+
8: '-inci',
|
16
|
+
70: '-inci',
|
17
|
+
80: '-inci',
|
18
|
+
2: '-nci',
|
19
|
+
7: '-nci',
|
20
|
+
20: '-nci',
|
21
|
+
50: '-nci',
|
22
|
+
3: '-üncü',
|
23
|
+
4: '-üncü',
|
24
|
+
100: '-üncü',
|
25
|
+
6: '-ncı',
|
26
|
+
9: '-uncu',
|
27
|
+
10: '-uncu',
|
28
|
+
30: '-uncu',
|
29
|
+
60: '-ıncı',
|
30
|
+
90: '-ıncı'
|
31
|
+
};
|
32
|
+
|
33
|
+
var az = moment.defineLocale('az', {
|
34
|
+
months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
|
35
|
+
monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
|
36
|
+
weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
|
37
|
+
weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
|
38
|
+
weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
|
39
|
+
longDateFormat : {
|
40
|
+
LT : 'HH:mm',
|
41
|
+
LTS : 'HH:mm:ss',
|
42
|
+
L : 'DD.MM.YYYY',
|
43
|
+
LL : 'D MMMM YYYY',
|
44
|
+
LLL : 'D MMMM YYYY HH:mm',
|
45
|
+
LLLL : 'dddd, D MMMM YYYY HH:mm'
|
46
|
+
},
|
47
|
+
calendar : {
|
48
|
+
sameDay : '[bugün saat] LT',
|
49
|
+
nextDay : '[sabah saat] LT',
|
50
|
+
nextWeek : '[gələn həftə] dddd [saat] LT',
|
51
|
+
lastDay : '[dünən] LT',
|
52
|
+
lastWeek : '[keçən həftə] dddd [saat] LT',
|
53
|
+
sameElse : 'L'
|
54
|
+
},
|
55
|
+
relativeTime : {
|
56
|
+
future : '%s sonra',
|
57
|
+
past : '%s əvvəl',
|
58
|
+
s : 'birneçə saniyyə',
|
59
|
+
m : 'bir dəqiqə',
|
60
|
+
mm : '%d dəqiqə',
|
61
|
+
h : 'bir saat',
|
62
|
+
hh : '%d saat',
|
63
|
+
d : 'bir gün',
|
64
|
+
dd : '%d gün',
|
65
|
+
M : 'bir ay',
|
66
|
+
MM : '%d ay',
|
67
|
+
y : 'bir il',
|
68
|
+
yy : '%d il'
|
69
|
+
},
|
70
|
+
meridiemParse: /gecə|səhər|gündüz|axşam/,
|
71
|
+
isPM : function (input) {
|
72
|
+
return /^(gündüz|axşam)$/.test(input);
|
73
|
+
},
|
74
|
+
meridiem : function (hour, minute, isLower) {
|
75
|
+
if (hour < 4) {
|
76
|
+
return 'gecə';
|
77
|
+
} else if (hour < 12) {
|
78
|
+
return 'səhər';
|
79
|
+
} else if (hour < 17) {
|
80
|
+
return 'gündüz';
|
81
|
+
} else {
|
82
|
+
return 'axşam';
|
83
|
+
}
|
84
|
+
},
|
85
|
+
ordinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
|
86
|
+
ordinal : function (number) {
|
87
|
+
if (number === 0) { // special case for zero
|
88
|
+
return number + '-ıncı';
|
89
|
+
}
|
90
|
+
var a = number % 10,
|
91
|
+
b = number % 100 - a,
|
92
|
+
c = number >= 100 ? 100 : null;
|
93
|
+
return number + (suffixes[a] || suffixes[b] || suffixes[c]);
|
94
|
+
},
|
95
|
+
week : {
|
96
|
+
dow : 1, // Monday is the first day of the week.
|
97
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
98
|
+
}
|
99
|
+
});
|
100
|
+
|
101
|
+
return az;
|
102
|
+
|
103
|
+
}));
|
@@ -0,0 +1,146 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : belarusian (be)
|
3
|
+
//! author : Dmitry Demidov : https://github.com/demidov91
|
4
|
+
//! author: Praleska: http://praleska.pro/
|
5
|
+
//! Author : Menelion Elensúle : https://github.com/Oire
|
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
|
+
function plural(word, num) {
|
15
|
+
var forms = word.split('_');
|
16
|
+
return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
|
17
|
+
}
|
18
|
+
function relativeTimeWithPlural(number, withoutSuffix, key) {
|
19
|
+
var format = {
|
20
|
+
'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
|
21
|
+
'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
|
22
|
+
'dd': 'дзень_дні_дзён',
|
23
|
+
'MM': 'месяц_месяцы_месяцаў',
|
24
|
+
'yy': 'год_гады_гадоў'
|
25
|
+
};
|
26
|
+
if (key === 'm') {
|
27
|
+
return withoutSuffix ? 'хвіліна' : 'хвіліну';
|
28
|
+
}
|
29
|
+
else if (key === 'h') {
|
30
|
+
return withoutSuffix ? 'гадзіна' : 'гадзіну';
|
31
|
+
}
|
32
|
+
else {
|
33
|
+
return number + ' ' + plural(format[key], +number);
|
34
|
+
}
|
35
|
+
}
|
36
|
+
function monthsCaseReplace(m, format) {
|
37
|
+
var months = {
|
38
|
+
'nominative': 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_'),
|
39
|
+
'accusative': 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_')
|
40
|
+
},
|
41
|
+
nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
|
42
|
+
'accusative' :
|
43
|
+
'nominative';
|
44
|
+
return months[nounCase][m.month()];
|
45
|
+
}
|
46
|
+
function weekdaysCaseReplace(m, format) {
|
47
|
+
var weekdays = {
|
48
|
+
'nominative': 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
|
49
|
+
'accusative': 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_')
|
50
|
+
},
|
51
|
+
nounCase = (/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/).test(format) ?
|
52
|
+
'accusative' :
|
53
|
+
'nominative';
|
54
|
+
return weekdays[nounCase][m.day()];
|
55
|
+
}
|
56
|
+
|
57
|
+
var be = moment.defineLocale('be', {
|
58
|
+
months : monthsCaseReplace,
|
59
|
+
monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
|
60
|
+
weekdays : weekdaysCaseReplace,
|
61
|
+
weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
|
62
|
+
weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
|
63
|
+
longDateFormat : {
|
64
|
+
LT : 'HH:mm',
|
65
|
+
LTS : 'HH:mm:ss',
|
66
|
+
L : 'DD.MM.YYYY',
|
67
|
+
LL : 'D MMMM YYYY г.',
|
68
|
+
LLL : 'D MMMM YYYY г., HH:mm',
|
69
|
+
LLLL : 'dddd, D MMMM YYYY г., HH:mm'
|
70
|
+
},
|
71
|
+
calendar : {
|
72
|
+
sameDay: '[Сёння ў] LT',
|
73
|
+
nextDay: '[Заўтра ў] LT',
|
74
|
+
lastDay: '[Учора ў] LT',
|
75
|
+
nextWeek: function () {
|
76
|
+
return '[У] dddd [ў] LT';
|
77
|
+
},
|
78
|
+
lastWeek: function () {
|
79
|
+
switch (this.day()) {
|
80
|
+
case 0:
|
81
|
+
case 3:
|
82
|
+
case 5:
|
83
|
+
case 6:
|
84
|
+
return '[У мінулую] dddd [ў] LT';
|
85
|
+
case 1:
|
86
|
+
case 2:
|
87
|
+
case 4:
|
88
|
+
return '[У мінулы] dddd [ў] LT';
|
89
|
+
}
|
90
|
+
},
|
91
|
+
sameElse: 'L'
|
92
|
+
},
|
93
|
+
relativeTime : {
|
94
|
+
future : 'праз %s',
|
95
|
+
past : '%s таму',
|
96
|
+
s : 'некалькі секунд',
|
97
|
+
m : relativeTimeWithPlural,
|
98
|
+
mm : relativeTimeWithPlural,
|
99
|
+
h : relativeTimeWithPlural,
|
100
|
+
hh : relativeTimeWithPlural,
|
101
|
+
d : 'дзень',
|
102
|
+
dd : relativeTimeWithPlural,
|
103
|
+
M : 'месяц',
|
104
|
+
MM : relativeTimeWithPlural,
|
105
|
+
y : 'год',
|
106
|
+
yy : relativeTimeWithPlural
|
107
|
+
},
|
108
|
+
meridiemParse: /ночы|раніцы|дня|вечара/,
|
109
|
+
isPM : function (input) {
|
110
|
+
return /^(дня|вечара)$/.test(input);
|
111
|
+
},
|
112
|
+
meridiem : function (hour, minute, isLower) {
|
113
|
+
if (hour < 4) {
|
114
|
+
return 'ночы';
|
115
|
+
} else if (hour < 12) {
|
116
|
+
return 'раніцы';
|
117
|
+
} else if (hour < 17) {
|
118
|
+
return 'дня';
|
119
|
+
} else {
|
120
|
+
return 'вечара';
|
121
|
+
}
|
122
|
+
},
|
123
|
+
ordinalParse: /\d{1,2}-(і|ы|га)/,
|
124
|
+
ordinal: function (number, period) {
|
125
|
+
switch (period) {
|
126
|
+
case 'M':
|
127
|
+
case 'd':
|
128
|
+
case 'DDD':
|
129
|
+
case 'w':
|
130
|
+
case 'W':
|
131
|
+
return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
|
132
|
+
case 'D':
|
133
|
+
return number + '-га';
|
134
|
+
default:
|
135
|
+
return number;
|
136
|
+
}
|
137
|
+
},
|
138
|
+
week : {
|
139
|
+
dow : 1, // Monday is the first day of the week.
|
140
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
141
|
+
}
|
142
|
+
});
|
143
|
+
|
144
|
+
return be;
|
145
|
+
|
146
|
+
}));
|