Skip to content

Commit c35b486

Browse files
add moment.js v2.11.2
1 parent c202a46 commit c35b486

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+23426
-1
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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'
7+
&& typeof require === 'function' ? 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 af = moment.defineLocale('af', {
14+
months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
15+
monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
16+
weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
17+
weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
18+
weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
19+
meridiemParse: /vm|nm/i,
20+
isPM : function (input) {
21+
return /^nm$/i.test(input);
22+
},
23+
meridiem : function (hours, minutes, isLower) {
24+
if (hours < 12) {
25+
return isLower ? 'vm' : 'VM';
26+
} else {
27+
return isLower ? 'nm' : 'NM';
28+
}
29+
},
30+
longDateFormat : {
31+
LT : 'HH:mm',
32+
LTS : 'HH:mm:ss',
33+
L : 'DD/MM/YYYY',
34+
LL : 'D MMMM YYYY',
35+
LLL : 'D MMMM YYYY HH:mm',
36+
LLLL : 'dddd, D MMMM YYYY HH:mm'
37+
},
38+
calendar : {
39+
sameDay : '[Vandag om] LT',
40+
nextDay : '[Môre om] LT',
41+
nextWeek : 'dddd [om] LT',
42+
lastDay : '[Gister om] LT',
43+
lastWeek : '[Laas] dddd [om] LT',
44+
sameElse : 'L'
45+
},
46+
relativeTime : {
47+
future : 'oor %s',
48+
past : '%s gelede',
49+
s : '\'n paar sekondes',
50+
m : '\'n minuut',
51+
mm : '%d minute',
52+
h : '\'n uur',
53+
hh : '%d ure',
54+
d : '\'n dag',
55+
dd : '%d dae',
56+
M : '\'n maand',
57+
MM : '%d maande',
58+
y : '\'n jaar',
59+
yy : '%d jaar'
60+
},
61+
ordinalParse: /\d{1,2}(ste|de)/,
62+
ordinal : function (number) {
63+
return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
64+
},
65+
week : {
66+
dow : 1, // Maandag is die eerste dag van die week.
67+
doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
68+
}
69+
});
70+
71+
return af;
72+
73+
}));
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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'
8+
&& typeof require === 'function' ? 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 ar_ma = moment.defineLocale('ar-ma', {
15+
months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
16+
monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
17+
weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
18+
weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
19+
weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
20+
longDateFormat : {
21+
LT : 'HH:mm',
22+
LTS : 'HH:mm:ss',
23+
L : 'DD/MM/YYYY',
24+
LL : 'D MMMM YYYY',
25+
LLL : 'D MMMM YYYY HH:mm',
26+
LLLL : 'dddd D MMMM YYYY HH:mm'
27+
},
28+
calendar : {
29+
sameDay: '[اليوم على الساعة] LT',
30+
nextDay: '[غدا على الساعة] LT',
31+
nextWeek: 'dddd [على الساعة] LT',
32+
lastDay: '[أمس على الساعة] LT',
33+
lastWeek: 'dddd [على الساعة] LT',
34+
sameElse: 'L'
35+
},
36+
relativeTime : {
37+
future : 'في %s',
38+
past : 'منذ %s',
39+
s : 'ثوان',
40+
m : 'دقيقة',
41+
mm : '%d دقائق',
42+
h : 'ساعة',
43+
hh : '%d ساعات',
44+
d : 'يوم',
45+
dd : '%d أيام',
46+
M : 'شهر',
47+
MM : '%d أشهر',
48+
y : 'سنة',
49+
yy : '%d سنوات'
50+
},
51+
week : {
52+
dow : 6, // Saturday is the first day of the week.
53+
doy : 12 // The week that contains Jan 1st is the first week of the year.
54+
}
55+
});
56+
57+
return ar_ma;
58+
59+
}));
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
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'
7+
&& typeof require === 'function' ? 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 symbolMap = {
14+
'1': '١',
15+
'2': '٢',
16+
'3': '٣',
17+
'4': '٤',
18+
'5': '٥',
19+
'6': '٦',
20+
'7': '٧',
21+
'8': '٨',
22+
'9': '٩',
23+
'0': '٠'
24+
}, numberMap = {
25+
'١': '1',
26+
'٢': '2',
27+
'٣': '3',
28+
'٤': '4',
29+
'٥': '5',
30+
'٦': '6',
31+
'٧': '7',
32+
'٨': '8',
33+
'٩': '9',
34+
'٠': '0'
35+
};
36+
37+
var ar_sa = moment.defineLocale('ar-sa', {
38+
months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
39+
monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
40+
weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
41+
weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
42+
weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
43+
longDateFormat : {
44+
LT : 'HH:mm',
45+
LTS : 'HH:mm:ss',
46+
L : 'DD/MM/YYYY',
47+
LL : 'D MMMM YYYY',
48+
LLL : 'D MMMM YYYY HH:mm',
49+
LLLL : 'dddd D MMMM YYYY HH:mm'
50+
},
51+
meridiemParse: /ص|م/,
52+
isPM : function (input) {
53+
return 'م' === input;
54+
},
55+
meridiem : function (hour, minute, isLower) {
56+
if (hour < 12) {
57+
return 'ص';
58+
} else {
59+
return 'م';
60+
}
61+
},
62+
calendar : {
63+
sameDay: '[اليوم على الساعة] LT',
64+
nextDay: '[غدا على الساعة] LT',
65+
nextWeek: 'dddd [على الساعة] LT',
66+
lastDay: '[أمس على الساعة] LT',
67+
lastWeek: 'dddd [على الساعة] LT',
68+
sameElse: 'L'
69+
},
70+
relativeTime : {
71+
future : 'في %s',
72+
past : 'منذ %s',
73+
s : 'ثوان',
74+
m : 'دقيقة',
75+
mm : '%d دقائق',
76+
h : 'ساعة',
77+
hh : '%d ساعات',
78+
d : 'يوم',
79+
dd : '%d أيام',
80+
M : 'شهر',
81+
MM : '%d أشهر',
82+
y : 'سنة',
83+
yy : '%d سنوات'
84+
},
85+
preparse: function (string) {
86+
return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
87+
return numberMap[match];
88+
}).replace(/،/g, ',');
89+
},
90+
postformat: function (string) {
91+
return string.replace(/\d/g, function (match) {
92+
return symbolMap[match];
93+
}).replace(/,/g, '،');
94+
},
95+
week : {
96+
dow : 6, // Saturday is the first day of the week.
97+
doy : 12 // The week that contains Jan 1st is the first week of the year.
98+
}
99+
});
100+
101+
return ar_sa;
102+
103+
}));
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
//! moment.js locale configuration
2+
//! locale : Tunisian Arabic (ar-tn)
3+
4+
;(function (global, factory) {
5+
typeof exports === 'object' && typeof module !== 'undefined'
6+
&& typeof require === 'function' ? 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 ar_tn = moment.defineLocale('ar-tn', {
13+
months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
14+
monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
15+
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
16+
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
17+
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
18+
longDateFormat: {
19+
LT: 'HH:mm',
20+
LTS: 'HH:mm:ss',
21+
L: 'DD/MM/YYYY',
22+
LL: 'D MMMM YYYY',
23+
LLL: 'D MMMM YYYY HH:mm',
24+
LLLL: 'dddd D MMMM YYYY HH:mm'
25+
},
26+
calendar: {
27+
sameDay: '[اليوم على الساعة] LT',
28+
nextDay: '[غدا على الساعة] LT',
29+
nextWeek: 'dddd [على الساعة] LT',
30+
lastDay: '[أمس على الساعة] LT',
31+
lastWeek: 'dddd [على الساعة] LT',
32+
sameElse: 'L'
33+
},
34+
relativeTime: {
35+
future: 'في %s',
36+
past: 'منذ %s',
37+
s: 'ثوان',
38+
m: 'دقيقة',
39+
mm: '%d دقائق',
40+
h: 'ساعة',
41+
hh: '%d ساعات',
42+
d: 'يوم',
43+
dd: '%d أيام',
44+
M: 'شهر',
45+
MM: '%d أشهر',
46+
y: 'سنة',
47+
yy: '%d سنوات'
48+
},
49+
week: {
50+
dow: 1, // Monday is the first day of the week.
51+
doy: 4 // The week that contains Jan 4th is the first week of the year.
52+
}
53+
});
54+
55+
return ar_tn;
56+
57+
}));

0 commit comments

Comments
 (0)