momentjs-rails 2.15.1 → 2.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/news.md +3 -0
- data/test/integration/navigation_test.rb +1 -1
- data/vendor/assets/javascripts/moment.js +3653 -3586
- data/vendor/assets/javascripts/moment/af.js +59 -59
- data/vendor/assets/javascripts/moment/ar-dz.js +59 -0
- data/vendor/assets/javascripts/moment/ar-ly.js +111 -107
- data/vendor/assets/javascripts/moment/ar-ma.js +46 -46
- data/vendor/assets/javascripts/moment/ar-sa.js +90 -89
- data/vendor/assets/javascripts/moment/ar-tn.js +46 -46
- data/vendor/assets/javascripts/moment/ar.js +125 -120
- data/vendor/assets/javascripts/moment/az.js +90 -90
- data/vendor/assets/javascripts/moment/be.js +112 -112
- data/vendor/assets/javascripts/moment/bg.js +74 -74
- data/vendor/assets/javascripts/moment/bn.js +104 -104
- data/vendor/assets/javascripts/moment/bo.js +104 -104
- data/vendor/assets/javascripts/moment/br.js +89 -89
- data/vendor/assets/javascripts/moment/bs.js +125 -125
- data/vendor/assets/javascripts/moment/ca.js +63 -63
- data/vendor/assets/javascripts/moment/cs.js +154 -154
- data/vendor/assets/javascripts/moment/cv.js +49 -49
- data/vendor/assets/javascripts/moment/cy.js +65 -65
- data/vendor/assets/javascripts/moment/da.js +47 -47
- data/vendor/assets/javascripts/moment/de-at.js +62 -62
- data/vendor/assets/javascripts/moment/de.js +62 -62
- data/vendor/assets/javascripts/moment/dv.js +84 -83
- data/vendor/assets/javascripts/moment/el.js +81 -81
- data/vendor/assets/javascripts/moment/en-au.js +54 -54
- data/vendor/assets/javascripts/moment/en-ca.js +50 -50
- data/vendor/assets/javascripts/moment/en-gb.js +54 -54
- data/vendor/assets/javascripts/moment/en-ie.js +54 -54
- data/vendor/assets/javascripts/moment/en-nz.js +54 -54
- data/vendor/assets/javascripts/moment/eo.js +57 -57
- data/vendor/assets/javascripts/moment/es-do.js +63 -63
- data/vendor/assets/javascripts/moment/es.js +63 -63
- data/vendor/assets/javascripts/moment/et.js +64 -64
- data/vendor/assets/javascripts/moment/eu.js +53 -53
- data/vendor/assets/javascripts/moment/fa.js +92 -91
- data/vendor/assets/javascripts/moment/fi.js +92 -92
- data/vendor/assets/javascripts/moment/fo.js +47 -47
- data/vendor/assets/javascripts/moment/fr-ca.js +47 -47
- data/vendor/assets/javascripts/moment/fr-ch.js +51 -51
- data/vendor/assets/javascripts/moment/fr.js +51 -51
- data/vendor/assets/javascripts/moment/fy.js +58 -58
- data/vendor/assets/javascripts/moment/gd.js +58 -58
- data/vendor/assets/javascripts/moment/gl.js +61 -61
- data/vendor/assets/javascripts/moment/he.js +78 -78
- data/vendor/assets/javascripts/moment/hi.js +109 -109
- data/vendor/assets/javascripts/moment/hr.js +128 -128
- data/vendor/assets/javascripts/moment/hu.js +92 -92
- data/vendor/assets/javascripts/moment/hy-am.js +79 -79
- data/vendor/assets/javascripts/moment/id.js +68 -68
- data/vendor/assets/javascripts/moment/is.js +106 -106
- data/vendor/assets/javascripts/moment/it.js +54 -54
- data/vendor/assets/javascripts/moment/ja.js +62 -62
- data/vendor/assets/javascripts/moment/jv.js +69 -69
- data/vendor/assets/javascripts/moment/ka.js +71 -71
- data/vendor/assets/javascripts/moment/kk.js +73 -73
- data/vendor/assets/javascripts/moment/km.js +45 -45
- data/vendor/assets/javascripts/moment/ko.js +51 -51
- data/vendor/assets/javascripts/moment/ky.js +73 -73
- data/vendor/assets/javascripts/moment/lb.js +114 -114
- data/vendor/assets/javascripts/moment/lo.js +56 -56
- data/vendor/assets/javascripts/moment/lt.js +100 -100
- data/vendor/assets/javascripts/moment/lv.js +81 -81
- data/vendor/assets/javascripts/moment/me.js +93 -93
- data/vendor/assets/javascripts/moment/mi.js +51 -51
- data/vendor/assets/javascripts/moment/mk.js +74 -74
- data/vendor/assets/javascripts/moment/ml.js +67 -67
- data/vendor/assets/javascripts/moment/mr.js +139 -139
- data/vendor/assets/javascripts/moment/ms-my.js +68 -68
- data/vendor/assets/javascripts/moment/ms.js +68 -68
- data/vendor/assets/javascripts/moment/my.js +79 -78
- data/vendor/assets/javascripts/moment/nb.js +49 -49
- data/vendor/assets/javascripts/moment/ne.js +108 -108
- data/vendor/assets/javascripts/moment/nl-be.js +86 -0
- data/vendor/assets/javascripts/moment/nl.js +67 -67
- data/vendor/assets/javascripts/moment/nn.js +47 -47
- data/vendor/assets/javascripts/moment/pa-in.js +109 -109
- data/vendor/assets/javascripts/moment/pl.js +88 -88
- data/vendor/assets/javascripts/moment/pt-br.js +47 -47
- data/vendor/assets/javascripts/moment/pt.js +51 -51
- data/vendor/assets/javascripts/moment/ro.js +59 -59
- data/vendor/assets/javascripts/moment/ru.js +153 -153
- data/vendor/assets/javascripts/moment/se.js +47 -47
- data/vendor/assets/javascripts/moment/si.js +57 -57
- data/vendor/assets/javascripts/moment/sk.js +132 -132
- data/vendor/assets/javascripts/moment/sl.js +144 -144
- data/vendor/assets/javascripts/moment/sq.js +55 -55
- data/vendor/assets/javascripts/moment/sr-cyrl.js +93 -93
- data/vendor/assets/javascripts/moment/sr.js +93 -93
- data/vendor/assets/javascripts/moment/ss.js +73 -73
- data/vendor/assets/javascripts/moment/sv.js +56 -56
- data/vendor/assets/javascripts/moment/sw.js +46 -46
- data/vendor/assets/javascripts/moment/ta.js +115 -114
- data/vendor/assets/javascripts/moment/te.js +75 -75
- data/vendor/assets/javascripts/moment/tet.js +68 -0
- data/vendor/assets/javascripts/moment/th.js +53 -53
- data/vendor/assets/javascripts/moment/tl-ph.js +49 -49
- data/vendor/assets/javascripts/moment/tlh.js +100 -100
- data/vendor/assets/javascripts/moment/tr.js +74 -74
- data/vendor/assets/javascripts/moment/tzl.js +75 -75
- data/vendor/assets/javascripts/moment/tzm-latn.js +45 -45
- data/vendor/assets/javascripts/moment/tzm.js +45 -45
- data/vendor/assets/javascripts/moment/uk.js +125 -125
- data/vendor/assets/javascripts/moment/uz.js +45 -45
- data/vendor/assets/javascripts/moment/vi.js +65 -65
- data/vendor/assets/javascripts/moment/x-pseudo.js +55 -55
- data/vendor/assets/javascripts/moment/yo.js +60 -0
- data/vendor/assets/javascripts/moment/zh-cn.js +107 -107
- data/vendor/assets/javascripts/moment/zh-hk.js +89 -89
- data/vendor/assets/javascripts/moment/zh-tw.js +89 -89
- metadata +6 -2
@@ -7,67 +7,67 @@
|
|
7
7
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
8
8
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
9
9
|
factory(global.moment)
|
10
|
-
}(this, function (moment) { 'use strict';
|
10
|
+
}(this, (function (moment) { 'use strict';
|
11
11
|
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
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.
|
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_Mrt_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';
|
68
28
|
}
|
69
|
-
}
|
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
70
|
|
71
|
-
|
71
|
+
return af;
|
72
72
|
|
73
|
-
}));
|
73
|
+
})));
|
@@ -0,0 +1,59 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Arabic (Algeria) [ar-dz]
|
3
|
+
//! author : Noureddine LOUAHEDJ : https://github.com/noureddineme
|
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 arDz = moment.defineLocale('ar-dz', {
|
14
|
+
months : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
15
|
+
monthsShort : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
16
|
+
weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
17
|
+
weekdaysShort : 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
|
18
|
+
weekdaysMin : 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'),
|
19
|
+
weekdaysParseExact : true,
|
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 : 0, // Sunday is the first day of the week.
|
53
|
+
doy : 4 // The week that contains Jan 1st is the first week of the year.
|
54
|
+
}
|
55
|
+
});
|
56
|
+
|
57
|
+
return arDz;
|
58
|
+
|
59
|
+
})));
|
@@ -7,116 +7,120 @@
|
|
7
7
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
8
8
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
9
9
|
factory(global.moment)
|
10
|
-
}(this, function (moment) { 'use strict';
|
10
|
+
}(this, (function (moment) { 'use strict';
|
11
11
|
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
13
|
+
var symbolMap = {
|
14
|
+
'1': '1',
|
15
|
+
'2': '2',
|
16
|
+
'3': '3',
|
17
|
+
'4': '4',
|
18
|
+
'5': '5',
|
19
|
+
'6': '6',
|
20
|
+
'7': '7',
|
21
|
+
'8': '8',
|
22
|
+
'9': '9',
|
23
|
+
'0': '0'
|
24
|
+
};
|
25
|
+
var pluralForm = function (n) {
|
26
|
+
return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
|
27
|
+
};
|
28
|
+
var plurals = {
|
29
|
+
s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
|
30
|
+
m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
|
31
|
+
h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
|
32
|
+
d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
|
33
|
+
M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
|
34
|
+
y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
|
35
|
+
};
|
36
|
+
var pluralize = function (u) {
|
37
|
+
return function (number, withoutSuffix, string, isFuture) {
|
38
|
+
var f = pluralForm(number),
|
39
|
+
str = plurals[u][pluralForm(number)];
|
40
|
+
if (f === 2) {
|
41
|
+
str = str[withoutSuffix ? 0 : 1];
|
42
|
+
}
|
43
|
+
return str.replace(/%d/i, number);
|
44
|
+
};
|
45
|
+
};
|
46
|
+
var months = [
|
47
|
+
'يناير',
|
48
|
+
'فبراير',
|
49
|
+
'مارس',
|
50
|
+
'أبريل',
|
51
|
+
'مايو',
|
52
|
+
'يونيو',
|
53
|
+
'يوليو',
|
54
|
+
'أغسطس',
|
55
|
+
'سبتمبر',
|
56
|
+
'أكتوبر',
|
57
|
+
'نوفمبر',
|
58
|
+
'ديسمبر'
|
59
|
+
];
|
56
60
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
}
|
82
|
-
},
|
83
|
-
calendar : {
|
84
|
-
sameDay: '[اليوم عند الساعة] LT',
|
85
|
-
nextDay: '[غدًا عند الساعة] LT',
|
86
|
-
nextWeek: 'dddd [عند الساعة] LT',
|
87
|
-
lastDay: '[أمس عند الساعة] LT',
|
88
|
-
lastWeek: 'dddd [عند الساعة] LT',
|
89
|
-
sameElse: 'L'
|
90
|
-
},
|
91
|
-
relativeTime : {
|
92
|
-
future : 'بعد %s',
|
93
|
-
past : 'منذ %s',
|
94
|
-
s : pluralize('s'),
|
95
|
-
m : pluralize('m'),
|
96
|
-
mm : pluralize('m'),
|
97
|
-
h : pluralize('h'),
|
98
|
-
hh : pluralize('h'),
|
99
|
-
d : pluralize('d'),
|
100
|
-
dd : pluralize('d'),
|
101
|
-
M : pluralize('M'),
|
102
|
-
MM : pluralize('M'),
|
103
|
-
y : pluralize('y'),
|
104
|
-
yy : pluralize('y')
|
105
|
-
},
|
106
|
-
preparse: function (string) {
|
107
|
-
return string.replace(/\u200f/g, '').replace(/،/g, ',');
|
108
|
-
},
|
109
|
-
postformat: function (string) {
|
110
|
-
return string.replace(/\d/g, function (match) {
|
111
|
-
return symbolMap[match];
|
112
|
-
}).replace(/,/g, '،');
|
113
|
-
},
|
114
|
-
week : {
|
115
|
-
dow : 6, // Saturday is the first day of the week.
|
116
|
-
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
61
|
+
var arLy = moment.defineLocale('ar-ly', {
|
62
|
+
months : months,
|
63
|
+
monthsShort : months,
|
64
|
+
weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
65
|
+
weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
66
|
+
weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
67
|
+
weekdaysParseExact : true,
|
68
|
+
longDateFormat : {
|
69
|
+
LT : 'HH:mm',
|
70
|
+
LTS : 'HH:mm:ss',
|
71
|
+
L : 'D/\u200FM/\u200FYYYY',
|
72
|
+
LL : 'D MMMM YYYY',
|
73
|
+
LLL : 'D MMMM YYYY HH:mm',
|
74
|
+
LLLL : 'dddd D MMMM YYYY HH:mm'
|
75
|
+
},
|
76
|
+
meridiemParse: /ص|م/,
|
77
|
+
isPM : function (input) {
|
78
|
+
return 'م' === input;
|
79
|
+
},
|
80
|
+
meridiem : function (hour, minute, isLower) {
|
81
|
+
if (hour < 12) {
|
82
|
+
return 'ص';
|
83
|
+
} else {
|
84
|
+
return 'م';
|
117
85
|
}
|
118
|
-
}
|
86
|
+
},
|
87
|
+
calendar : {
|
88
|
+
sameDay: '[اليوم عند الساعة] LT',
|
89
|
+
nextDay: '[غدًا عند الساعة] LT',
|
90
|
+
nextWeek: 'dddd [عند الساعة] LT',
|
91
|
+
lastDay: '[أمس عند الساعة] LT',
|
92
|
+
lastWeek: 'dddd [عند الساعة] LT',
|
93
|
+
sameElse: 'L'
|
94
|
+
},
|
95
|
+
relativeTime : {
|
96
|
+
future : 'بعد %s',
|
97
|
+
past : 'منذ %s',
|
98
|
+
s : pluralize('s'),
|
99
|
+
m : pluralize('m'),
|
100
|
+
mm : pluralize('m'),
|
101
|
+
h : pluralize('h'),
|
102
|
+
hh : pluralize('h'),
|
103
|
+
d : pluralize('d'),
|
104
|
+
dd : pluralize('d'),
|
105
|
+
M : pluralize('M'),
|
106
|
+
MM : pluralize('M'),
|
107
|
+
y : pluralize('y'),
|
108
|
+
yy : pluralize('y')
|
109
|
+
},
|
110
|
+
preparse: function (string) {
|
111
|
+
return string.replace(/\u200f/g, '').replace(/،/g, ',');
|
112
|
+
},
|
113
|
+
postformat: function (string) {
|
114
|
+
return string.replace(/\d/g, function (match) {
|
115
|
+
return symbolMap[match];
|
116
|
+
}).replace(/,/g, '،');
|
117
|
+
},
|
118
|
+
week : {
|
119
|
+
dow : 6, // Saturday is the first day of the week.
|
120
|
+
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
121
|
+
}
|
122
|
+
});
|
119
123
|
|
120
|
-
|
124
|
+
return arLy;
|
121
125
|
|
122
|
-
}));
|
126
|
+
})));
|
@@ -8,53 +8,53 @@
|
|
8
8
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
9
9
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
10
10
|
factory(global.moment)
|
11
|
-
}(this, function (moment) { 'use strict';
|
11
|
+
}(this, (function (moment) { 'use strict';
|
12
12
|
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
14
|
+
var arMa = moment.defineLocale('ar-ma', {
|
15
|
+
months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
|
16
|
+
monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
|
17
|
+
weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
18
|
+
weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
|
19
|
+
weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
20
|
+
weekdaysParseExact : true,
|
21
|
+
longDateFormat : {
|
22
|
+
LT : 'HH:mm',
|
23
|
+
LTS : 'HH:mm:ss',
|
24
|
+
L : 'DD/MM/YYYY',
|
25
|
+
LL : 'D MMMM YYYY',
|
26
|
+
LLL : 'D MMMM YYYY HH:mm',
|
27
|
+
LLLL : 'dddd D MMMM YYYY HH:mm'
|
28
|
+
},
|
29
|
+
calendar : {
|
30
|
+
sameDay: '[اليوم على الساعة] LT',
|
31
|
+
nextDay: '[غدا على الساعة] LT',
|
32
|
+
nextWeek: 'dddd [على الساعة] LT',
|
33
|
+
lastDay: '[أمس على الساعة] LT',
|
34
|
+
lastWeek: 'dddd [على الساعة] LT',
|
35
|
+
sameElse: 'L'
|
36
|
+
},
|
37
|
+
relativeTime : {
|
38
|
+
future : 'في %s',
|
39
|
+
past : 'منذ %s',
|
40
|
+
s : 'ثوان',
|
41
|
+
m : 'دقيقة',
|
42
|
+
mm : '%d دقائق',
|
43
|
+
h : 'ساعة',
|
44
|
+
hh : '%d ساعات',
|
45
|
+
d : 'يوم',
|
46
|
+
dd : '%d أيام',
|
47
|
+
M : 'شهر',
|
48
|
+
MM : '%d أشهر',
|
49
|
+
y : 'سنة',
|
50
|
+
yy : '%d سنوات'
|
51
|
+
},
|
52
|
+
week : {
|
53
|
+
dow : 6, // Saturday is the first day of the week.
|
54
|
+
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
55
|
+
}
|
56
|
+
});
|
57
57
|
|
58
|
-
|
58
|
+
return arMa;
|
59
59
|
|
60
|
-
}));
|
60
|
+
})));
|