momentjs-rails 2.20.1 → 2.29.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/dummy/app/assets/config/manifest.js +1 -0
- data/test/dummy/config/environments/development.rb +2 -0
- data/test/dummy/config/environments/production.rb +1 -0
- data/test/dummy/config/environments/test.rb +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-H/-H77gbOgi-dwHJoevs2PsAJBV-nde7DFDWBPXqUrMkw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-y/-ypqz4WBYM3Qftk20RenhtH0iPKxdtyu6t3hVOjJLL4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1l/1l4oJ9T6GJ0pN-vGrH1QH9XT7AVF3Z9pakdHrxcsuXw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3T/3TjWGZFWBLAEGSW7kQIDJIL6_MukMwz_wLDMwgYsN1E.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3e/3eGeoVsqjktkiAfNQ4zBuxtb0rtVWyQsKgjho5OHYnY.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9C/9Cy8L_tqI8SvH-pVigMqBlPTus4vnZvt3YE2y8--beE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9z/9zOsSzS7x1TCGFnvxdjQdrEL2MENRZARP2fzL5JYLF0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/AP/AP7JoF1ZWY1lf5txW64EpzKJEzOIsR9Wkn_V0pl6Kzo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Bu/BuxnmLYpqxwN3qck74Nh3Adaqz5VwdArL7wCZx6TnII.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/JO/JO9QyaKhLUs4VF1ODPXLiqcSziQS4x3sudms-3GYjww.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Mn/MnWwrzXFar6jFGAfp8PS_cZXjeFYCA85xsTQT758958.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/OM/OM7fRuvTUPQcZERsO6Tsv0fvTdZqsRZbN-mYK00TwnI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Pn/PnNlsrskw8SKHpOLkqJgEN_HjZzB2jsQZauj-dnQQ2A.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Rf/RfFWq_tyttbS2wyfSc0kKvcSxUeC_m01sL3Dl6EWEqM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ru/RuQ9HENefRmSoZaLfw7LalsxdBHpKJMyc2c3OQ_kQr8.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/T-/T-9_ffpUxh6GAYTAzM3sF5lykyt9GVpcbKZaRXxw0wA.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Zj/Zjn9OiwGREdMXvLZA-tY289lQslnn7R3BrSwhsntMWQ.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Zm/Zmp1hSfJjOVQBTRXZ-xSs8qqIK6lmyQ4GK_uYVsDVJc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/bR/bRSmDUPNI--mMuAgRHWf1r56iydNwHRg_wniS8HqhNg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dA/dAAcqCClwz0OKgpbEd9G3OUYKW1TeNqJV49Zxh2bQ5A.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dh/dhlLaVScr1-Ty5UFcg6xdU4xSWIuySWzjcC5OU2mOf4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/gt/gtu4KqwPpmom4hwtRz9x180bzJzATR6V8hyE3uHsyas.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/kl/klJHIoyRhrimisvwpjAPKxae89riL_0exIgpv4u3u5Y.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/m1/m16f5eEXdsOfzbCB88BS3eojIypOTYQjyyv5kkTDwxY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/mm/mmqv3-gEoPWhMrVamMnpI1csCNLKpv-qVQgHERXQNaU.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/rp/rpqm2QeVJPWIySovDg4XdCnI6X5_FXCd0pZhuOnwAfk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wx/wxFkskdA6iSIVZxka368Y8wkP-3edr2nlW4VSOI6GhY.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/xP/xPbdGyTHlpGRgIS0gbG9suCByeakXeTFaQ1B_h3_aUI.cache +0 -0
- data/test/integration/navigation_test.rb +1 -1
- data/vendor/assets/javascripts/moment/af.js +51 -54
- data/vendor/assets/javascripts/moment/ar-dz.js +150 -54
- data/vendor/assets/javascripts/moment/ar-kw.js +40 -46
- data/vendor/assets/javascripts/moment/ar-ly.js +141 -97
- data/vendor/assets/javascripts/moment/ar-ma.js +40 -46
- data/vendor/assets/javascripts/moment/ar-sa.js +75 -77
- data/vendor/assets/javascripts/moment/ar-tn.js +15 -21
- data/vendor/assets/javascripts/moment/ar.js +158 -112
- data/vendor/assets/javascripts/moment/az.js +52 -57
- data/vendor/assets/javascripts/moment/be.js +69 -63
- data/vendor/assets/javascripts/moment/bg.js +49 -53
- data/vendor/assets/javascripts/moment/bm.js +43 -51
- data/vendor/assets/javascripts/moment/bn-bd.js +128 -0
- data/vendor/assets/javascripts/moment/bn.js +76 -78
- data/vendor/assets/javascripts/moment/bo.js +80 -78
- data/vendor/assets/javascripts/moment/br.js +115 -59
- data/vendor/assets/javascripts/moment/bs.js +48 -52
- data/vendor/assets/javascripts/moment/ca.js +76 -68
- data/vendor/assets/javascripts/moment/cs.js +80 -89
- data/vendor/assets/javascripts/moment/cv.js +45 -47
- data/vendor/assets/javascripts/moment/cy.js +41 -26
- data/vendor/assets/javascripts/moment/da.js +43 -51
- data/vendor/assets/javascripts/moment/de-at.js +53 -54
- data/vendor/assets/javascripts/moment/de-ch.js +54 -55
- data/vendor/assets/javascripts/moment/de.js +53 -54
- data/vendor/assets/javascripts/moment/dv.js +64 -75
- data/vendor/assets/javascripts/moment/el.js +63 -60
- data/vendor/assets/javascripts/moment/en-au.js +55 -55
- data/vendor/assets/javascripts/moment/en-ca.js +52 -52
- data/vendor/assets/javascripts/moment/en-gb.js +55 -55
- data/vendor/assets/javascripts/moment/en-ie.js +55 -55
- data/vendor/assets/javascripts/moment/en-il.js +64 -0
- data/vendor/assets/javascripts/moment/en-in.js +68 -0
- data/vendor/assets/javascripts/moment/en-nz.js +55 -55
- data/vendor/assets/javascripts/moment/en-sg.js +68 -0
- data/vendor/assets/javascripts/moment/eo.js +46 -52
- data/vendor/assets/javascripts/moment/es-do.js +75 -63
- data/vendor/assets/javascripts/moment/es-mx.js +106 -0
- data/vendor/assets/javascripts/moment/es-us.js +83 -61
- data/vendor/assets/javascripts/moment/es.js +83 -70
- data/vendor/assets/javascripts/moment/et.js +58 -62
- data/vendor/assets/javascripts/moment/eu.js +53 -57
- data/vendor/assets/javascripts/moment/fa.js +84 -82
- data/vendor/assets/javascripts/moment/fi.js +72 -61
- data/vendor/assets/javascripts/moment/fil.js +58 -0
- data/vendor/assets/javascripts/moment/fo.js +46 -51
- data/vendor/assets/javascripts/moment/fr-ca.js +44 -50
- data/vendor/assets/javascripts/moment/fr-ch.js +47 -53
- data/vendor/assets/javascripts/moment/fr.js +72 -52
- data/vendor/assets/javascripts/moment/fy.js +52 -51
- data/vendor/assets/javascripts/moment/ga.js +95 -0
- data/vendor/assets/javascripts/moment/gd.js +81 -63
- data/vendor/assets/javascripts/moment/gl.js +54 -58
- data/vendor/assets/javascripts/moment/gom-deva.js +124 -0
- data/vendor/assets/javascripts/moment/gom-latn.js +70 -70
- data/vendor/assets/javascripts/moment/gu.js +30 -34
- data/vendor/assets/javascripts/moment/he.js +48 -54
- data/vendor/assets/javascripts/moment/hi.js +115 -76
- data/vendor/assets/javascripts/moment/hr.js +54 -55
- data/vendor/assets/javascripts/moment/hu.js +63 -56
- data/vendor/assets/javascripts/moment/hy-am.js +44 -48
- data/vendor/assets/javascripts/moment/id.js +44 -52
- data/vendor/assets/javascripts/moment/is.js +61 -55
- data/vendor/assets/javascripts/moment/it-ch.js +64 -0
- data/vendor/assets/javascripts/moment/it.js +89 -54
- data/vendor/assets/javascripts/moment/ja.js +122 -55
- data/vendor/assets/javascripts/moment/jv.js +44 -52
- data/vendor/assets/javascripts/moment/ka.js +68 -66
- data/vendor/assets/javascripts/moment/kk.js +46 -52
- data/vendor/assets/javascripts/moment/km.js +64 -21
- data/vendor/assets/javascripts/moment/kn.js +72 -76
- data/vendor/assets/javascripts/moment/ko.js +48 -56
- data/vendor/assets/javascripts/moment/ku.js +118 -0
- data/vendor/assets/javascripts/moment/ky.js +48 -53
- data/vendor/assets/javascripts/moment/lb.js +39 -42
- data/vendor/assets/javascripts/moment/lo.js +44 -50
- data/vendor/assets/javascripts/moment/lt.js +79 -75
- data/vendor/assets/javascripts/moment/lv.js +57 -63
- data/vendor/assets/javascripts/moment/me.js +53 -48
- data/vendor/assets/javascripts/moment/mi.js +15 -21
- data/vendor/assets/javascripts/moment/mk.js +46 -52
- data/vendor/assets/javascripts/moment/ml.js +51 -53
- data/vendor/assets/javascripts/moment/mn.js +99 -0
- data/vendor/assets/javascripts/moment/mr.js +140 -100
- data/vendor/assets/javascripts/moment/ms-my.js +43 -51
- data/vendor/assets/javascripts/moment/ms.js +43 -51
- data/vendor/assets/javascripts/moment/mt.js +45 -51
- data/vendor/assets/javascripts/moment/my.js +37 -43
- data/vendor/assets/javascripts/moment/nb.js +45 -48
- data/vendor/assets/javascripts/moment/ne.js +73 -77
- data/vendor/assets/javascripts/moment/nl-be.js +70 -57
- data/vendor/assets/javascripts/moment/nl.js +72 -57
- data/vendor/assets/javascripts/moment/nn.js +46 -47
- data/vendor/assets/javascripts/moment/oc-lnc.js +83 -0
- data/vendor/assets/javascripts/moment/pa-in.js +72 -76
- data/vendor/assets/javascripts/moment/pl.js +67 -55
- data/vendor/assets/javascripts/moment/pt-br.js +41 -46
- data/vendor/assets/javascripts/moment/pt.js +46 -50
- data/vendor/assets/javascripts/moment/ro.js +49 -51
- data/vendor/assets/javascripts/moment/ru.js +104 -83
- data/vendor/assets/javascripts/moment/sd.js +56 -74
- data/vendor/assets/javascripts/moment/se.js +41 -46
- data/vendor/assets/javascripts/moment/si.js +48 -52
- data/vendor/assets/javascripts/moment/sk.js +52 -66
- data/vendor/assets/javascripts/moment/sl.js +50 -54
- data/vendor/assets/javascripts/moment/sq.js +47 -53
- data/vendor/assets/javascripts/moment/sr-cyrl.js +53 -49
- data/vendor/assets/javascripts/moment/sr.js +56 -50
- data/vendor/assets/javascripts/moment/ss.js +48 -55
- data/vendor/assets/javascripts/moment/sv.js +51 -53
- data/vendor/assets/javascripts/moment/sw.js +45 -51
- data/vendor/assets/javascripts/moment/ta.js +75 -77
- data/vendor/assets/javascripts/moment/te.js +51 -55
- data/vendor/assets/javascripts/moment/tet.js +49 -50
- data/vendor/assets/javascripts/moment/tg.js +116 -0
- data/vendor/assets/javascripts/moment/th.js +45 -49
- data/vendor/assets/javascripts/moment/tk.js +91 -0
- data/vendor/assets/javascripts/moment/tl-ph.js +40 -46
- data/vendor/assets/javascripts/moment/tlh.js +69 -67
- data/vendor/assets/javascripts/moment/tr.js +91 -76
- data/vendor/assets/javascripts/moment/tzl.js +65 -69
- data/vendor/assets/javascripts/moment/tzm-latn.js +39 -45
- data/vendor/assets/javascripts/moment/tzm.js +38 -44
- data/vendor/assets/javascripts/moment/ug-cn.js +110 -0
- data/vendor/assets/javascripts/moment/uk.js +78 -68
- data/vendor/assets/javascripts/moment/ur.js +56 -74
- data/vendor/assets/javascripts/moment/uz-latn.js +44 -50
- data/vendor/assets/javascripts/moment/uz.js +42 -50
- data/vendor/assets/javascripts/moment/vi.js +54 -55
- data/vendor/assets/javascripts/moment/x-pseudo.js +58 -56
- data/vendor/assets/javascripts/moment/yo.js +44 -52
- data/vendor/assets/javascripts/moment/zh-cn.js +66 -58
- data/vendor/assets/javascripts/moment/zh-hk.js +58 -63
- data/vendor/assets/javascripts/moment/zh-mo.js +100 -0
- data/vendor/assets/javascripts/moment/zh-tw.js +55 -61
- data/vendor/assets/javascripts/moment.js +2673 -1546
- metadata +92 -31
- data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
- data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
- data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
- data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
- data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
- data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
@@ -2,126 +2,170 @@
|
|
2
2
|
//! locale : Arabic (Lybia) [ar-ly]
|
3
3
|
//! author : Ali Hmer: https://github.com/kikoanis
|
4
4
|
|
5
|
-
|
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
|
-
|
5
|
+
import moment from '../moment';
|
12
6
|
|
13
7
|
var symbolMap = {
|
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
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
8
|
+
1: '1',
|
9
|
+
2: '2',
|
10
|
+
3: '3',
|
11
|
+
4: '4',
|
12
|
+
5: '5',
|
13
|
+
6: '6',
|
14
|
+
7: '7',
|
15
|
+
8: '8',
|
16
|
+
9: '9',
|
17
|
+
0: '0',
|
18
|
+
},
|
19
|
+
pluralForm = function (n) {
|
20
|
+
return n === 0
|
21
|
+
? 0
|
22
|
+
: n === 1
|
23
|
+
? 1
|
24
|
+
: n === 2
|
25
|
+
? 2
|
26
|
+
: n % 100 >= 3 && n % 100 <= 10
|
27
|
+
? 3
|
28
|
+
: n % 100 >= 11
|
29
|
+
? 4
|
30
|
+
: 5;
|
31
|
+
},
|
32
|
+
plurals = {
|
33
|
+
s: [
|
34
|
+
'أقل من ثانية',
|
35
|
+
'ثانية واحدة',
|
36
|
+
['ثانيتان', 'ثانيتين'],
|
37
|
+
'%d ثوان',
|
38
|
+
'%d ثانية',
|
39
|
+
'%d ثانية',
|
40
|
+
],
|
41
|
+
m: [
|
42
|
+
'أقل من دقيقة',
|
43
|
+
'دقيقة واحدة',
|
44
|
+
['دقيقتان', 'دقيقتين'],
|
45
|
+
'%d دقائق',
|
46
|
+
'%d دقيقة',
|
47
|
+
'%d دقيقة',
|
48
|
+
],
|
49
|
+
h: [
|
50
|
+
'أقل من ساعة',
|
51
|
+
'ساعة واحدة',
|
52
|
+
['ساعتان', 'ساعتين'],
|
53
|
+
'%d ساعات',
|
54
|
+
'%d ساعة',
|
55
|
+
'%d ساعة',
|
56
|
+
],
|
57
|
+
d: [
|
58
|
+
'أقل من يوم',
|
59
|
+
'يوم واحد',
|
60
|
+
['يومان', 'يومين'],
|
61
|
+
'%d أيام',
|
62
|
+
'%d يومًا',
|
63
|
+
'%d يوم',
|
64
|
+
],
|
65
|
+
M: [
|
66
|
+
'أقل من شهر',
|
67
|
+
'شهر واحد',
|
68
|
+
['شهران', 'شهرين'],
|
69
|
+
'%d أشهر',
|
70
|
+
'%d شهرا',
|
71
|
+
'%d شهر',
|
72
|
+
],
|
73
|
+
y: [
|
74
|
+
'أقل من عام',
|
75
|
+
'عام واحد',
|
76
|
+
['عامان', 'عامين'],
|
77
|
+
'%d أعوام',
|
78
|
+
'%d عامًا',
|
79
|
+
'%d عام',
|
80
|
+
],
|
81
|
+
},
|
82
|
+
pluralize = function (u) {
|
83
|
+
return function (number, withoutSuffix, string, isFuture) {
|
84
|
+
var f = pluralForm(number),
|
85
|
+
str = plurals[u][pluralForm(number)];
|
86
|
+
if (f === 2) {
|
87
|
+
str = str[withoutSuffix ? 0 : 1];
|
88
|
+
}
|
89
|
+
return str.replace(/%d/i, number);
|
90
|
+
};
|
91
|
+
},
|
92
|
+
months = [
|
93
|
+
'يناير',
|
94
|
+
'فبراير',
|
95
|
+
'مارس',
|
96
|
+
'أبريل',
|
97
|
+
'مايو',
|
98
|
+
'يونيو',
|
99
|
+
'يوليو',
|
100
|
+
'أغسطس',
|
101
|
+
'سبتمبر',
|
102
|
+
'أكتوبر',
|
103
|
+
'نوفمبر',
|
104
|
+
'ديسمبر',
|
105
|
+
];
|
60
106
|
|
61
|
-
|
62
|
-
months
|
63
|
-
monthsShort
|
64
|
-
weekdays
|
65
|
-
weekdaysShort
|
66
|
-
weekdaysMin
|
67
|
-
weekdaysParseExact
|
68
|
-
longDateFormat
|
69
|
-
LT
|
70
|
-
LTS
|
71
|
-
L
|
72
|
-
LL
|
73
|
-
LLL
|
74
|
-
LLLL
|
107
|
+
export default moment.defineLocale('ar-ly', {
|
108
|
+
months: months,
|
109
|
+
monthsShort: months,
|
110
|
+
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
111
|
+
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
112
|
+
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
113
|
+
weekdaysParseExact: true,
|
114
|
+
longDateFormat: {
|
115
|
+
LT: 'HH:mm',
|
116
|
+
LTS: 'HH:mm:ss',
|
117
|
+
L: 'D/\u200FM/\u200FYYYY',
|
118
|
+
LL: 'D MMMM YYYY',
|
119
|
+
LLL: 'D MMMM YYYY HH:mm',
|
120
|
+
LLLL: 'dddd D MMMM YYYY HH:mm',
|
75
121
|
},
|
76
122
|
meridiemParse: /ص|م/,
|
77
|
-
isPM
|
123
|
+
isPM: function (input) {
|
78
124
|
return 'م' === input;
|
79
125
|
},
|
80
|
-
meridiem
|
126
|
+
meridiem: function (hour, minute, isLower) {
|
81
127
|
if (hour < 12) {
|
82
128
|
return 'ص';
|
83
129
|
} else {
|
84
130
|
return 'م';
|
85
131
|
}
|
86
132
|
},
|
87
|
-
calendar
|
133
|
+
calendar: {
|
88
134
|
sameDay: '[اليوم عند الساعة] LT',
|
89
135
|
nextDay: '[غدًا عند الساعة] LT',
|
90
136
|
nextWeek: 'dddd [عند الساعة] LT',
|
91
137
|
lastDay: '[أمس عند الساعة] LT',
|
92
138
|
lastWeek: 'dddd [عند الساعة] LT',
|
93
|
-
sameElse: 'L'
|
139
|
+
sameElse: 'L',
|
94
140
|
},
|
95
|
-
relativeTime
|
96
|
-
future
|
97
|
-
past
|
98
|
-
s
|
99
|
-
ss
|
100
|
-
m
|
101
|
-
mm
|
102
|
-
h
|
103
|
-
hh
|
104
|
-
d
|
105
|
-
dd
|
106
|
-
M
|
107
|
-
MM
|
108
|
-
y
|
109
|
-
yy
|
141
|
+
relativeTime: {
|
142
|
+
future: 'بعد %s',
|
143
|
+
past: 'منذ %s',
|
144
|
+
s: pluralize('s'),
|
145
|
+
ss: pluralize('s'),
|
146
|
+
m: pluralize('m'),
|
147
|
+
mm: pluralize('m'),
|
148
|
+
h: pluralize('h'),
|
149
|
+
hh: pluralize('h'),
|
150
|
+
d: pluralize('d'),
|
151
|
+
dd: pluralize('d'),
|
152
|
+
M: pluralize('M'),
|
153
|
+
MM: pluralize('M'),
|
154
|
+
y: pluralize('y'),
|
155
|
+
yy: pluralize('y'),
|
110
156
|
},
|
111
157
|
preparse: function (string) {
|
112
158
|
return string.replace(/،/g, ',');
|
113
159
|
},
|
114
160
|
postformat: function (string) {
|
115
|
-
return string
|
116
|
-
|
117
|
-
|
161
|
+
return string
|
162
|
+
.replace(/\d/g, function (match) {
|
163
|
+
return symbolMap[match];
|
164
|
+
})
|
165
|
+
.replace(/,/g, '،');
|
166
|
+
},
|
167
|
+
week: {
|
168
|
+
dow: 6, // Saturday is the first day of the week.
|
169
|
+
doy: 12, // The week that contains Jan 12th is the first week of the year.
|
118
170
|
},
|
119
|
-
week : {
|
120
|
-
dow : 6, // Saturday is the first day of the week.
|
121
|
-
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
122
|
-
}
|
123
171
|
});
|
124
|
-
|
125
|
-
return arLy;
|
126
|
-
|
127
|
-
})));
|
@@ -3,59 +3,53 @@
|
|
3
3
|
//! author : ElFadili Yassine : https://github.com/ElFadiliY
|
4
4
|
//! author : Abdel Said : https://github.com/abdelsaid
|
5
5
|
|
6
|
-
|
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';
|
6
|
+
import moment from '../moment';
|
12
7
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
8
|
+
export default moment.defineLocale('ar-ma', {
|
9
|
+
months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
|
10
|
+
'_'
|
11
|
+
),
|
12
|
+
monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
|
13
|
+
'_'
|
14
|
+
),
|
15
|
+
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
16
|
+
weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
|
17
|
+
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
18
|
+
weekdaysParseExact: true,
|
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',
|
28
26
|
},
|
29
|
-
calendar
|
27
|
+
calendar: {
|
30
28
|
sameDay: '[اليوم على الساعة] LT',
|
31
29
|
nextDay: '[غدا على الساعة] LT',
|
32
30
|
nextWeek: 'dddd [على الساعة] LT',
|
33
31
|
lastDay: '[أمس على الساعة] LT',
|
34
32
|
lastWeek: 'dddd [على الساعة] LT',
|
35
|
-
sameElse: 'L'
|
33
|
+
sameElse: 'L',
|
34
|
+
},
|
35
|
+
relativeTime: {
|
36
|
+
future: 'في %s',
|
37
|
+
past: 'منذ %s',
|
38
|
+
s: 'ثوان',
|
39
|
+
ss: '%d ثانية',
|
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 سنوات',
|
36
50
|
},
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
s : 'ثوان',
|
41
|
-
ss : '%d ثانية',
|
42
|
-
m : 'دقيقة',
|
43
|
-
mm : '%d دقائق',
|
44
|
-
h : 'ساعة',
|
45
|
-
hh : '%d ساعات',
|
46
|
-
d : 'يوم',
|
47
|
-
dd : '%d أيام',
|
48
|
-
M : 'شهر',
|
49
|
-
MM : '%d أشهر',
|
50
|
-
y : 'سنة',
|
51
|
-
yy : '%d سنوات'
|
51
|
+
week: {
|
52
|
+
dow: 1, // Monday is the first day of the week.
|
53
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
52
54
|
},
|
53
|
-
week : {
|
54
|
-
dow : 6, // Saturday is the first day of the week.
|
55
|
-
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
56
|
-
}
|
57
55
|
});
|
58
|
-
|
59
|
-
return arMa;
|
60
|
-
|
61
|
-
})));
|
@@ -2,105 +2,103 @@
|
|
2
2
|
//! locale : Arabic (Saudi Arabia) [ar-sa]
|
3
3
|
//! author : Suhail Alkowaileet : https://github.com/xsoh
|
4
4
|
|
5
|
-
|
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
|
-
|
5
|
+
import moment from '../moment';
|
12
6
|
|
13
7
|
var symbolMap = {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
}
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
};
|
8
|
+
1: '١',
|
9
|
+
2: '٢',
|
10
|
+
3: '٣',
|
11
|
+
4: '٤',
|
12
|
+
5: '٥',
|
13
|
+
6: '٦',
|
14
|
+
7: '٧',
|
15
|
+
8: '٨',
|
16
|
+
9: '٩',
|
17
|
+
0: '٠',
|
18
|
+
},
|
19
|
+
numberMap = {
|
20
|
+
'١': '1',
|
21
|
+
'٢': '2',
|
22
|
+
'٣': '3',
|
23
|
+
'٤': '4',
|
24
|
+
'٥': '5',
|
25
|
+
'٦': '6',
|
26
|
+
'٧': '7',
|
27
|
+
'٨': '8',
|
28
|
+
'٩': '9',
|
29
|
+
'٠': '0',
|
30
|
+
};
|
37
31
|
|
38
|
-
|
39
|
-
months
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
32
|
+
export default moment.defineLocale('ar-sa', {
|
33
|
+
months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
|
34
|
+
'_'
|
35
|
+
),
|
36
|
+
monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
|
37
|
+
'_'
|
38
|
+
),
|
39
|
+
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
40
|
+
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
41
|
+
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
42
|
+
weekdaysParseExact: true,
|
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',
|
52
50
|
},
|
53
51
|
meridiemParse: /ص|م/,
|
54
|
-
isPM
|
52
|
+
isPM: function (input) {
|
55
53
|
return 'م' === input;
|
56
54
|
},
|
57
|
-
meridiem
|
55
|
+
meridiem: function (hour, minute, isLower) {
|
58
56
|
if (hour < 12) {
|
59
57
|
return 'ص';
|
60
58
|
} else {
|
61
59
|
return 'م';
|
62
60
|
}
|
63
61
|
},
|
64
|
-
calendar
|
62
|
+
calendar: {
|
65
63
|
sameDay: '[اليوم على الساعة] LT',
|
66
64
|
nextDay: '[غدا على الساعة] LT',
|
67
65
|
nextWeek: 'dddd [على الساعة] LT',
|
68
66
|
lastDay: '[أمس على الساعة] LT',
|
69
67
|
lastWeek: 'dddd [على الساعة] LT',
|
70
|
-
sameElse: 'L'
|
68
|
+
sameElse: 'L',
|
71
69
|
},
|
72
|
-
relativeTime
|
73
|
-
future
|
74
|
-
past
|
75
|
-
s
|
76
|
-
ss
|
77
|
-
m
|
78
|
-
mm
|
79
|
-
h
|
80
|
-
hh
|
81
|
-
d
|
82
|
-
dd
|
83
|
-
M
|
84
|
-
MM
|
85
|
-
y
|
86
|
-
yy
|
70
|
+
relativeTime: {
|
71
|
+
future: 'في %s',
|
72
|
+
past: 'منذ %s',
|
73
|
+
s: 'ثوان',
|
74
|
+
ss: '%d ثانية',
|
75
|
+
m: 'دقيقة',
|
76
|
+
mm: '%d دقائق',
|
77
|
+
h: 'ساعة',
|
78
|
+
hh: '%d ساعات',
|
79
|
+
d: 'يوم',
|
80
|
+
dd: '%d أيام',
|
81
|
+
M: 'شهر',
|
82
|
+
MM: '%d أشهر',
|
83
|
+
y: 'سنة',
|
84
|
+
yy: '%d سنوات',
|
87
85
|
},
|
88
86
|
preparse: function (string) {
|
89
|
-
return string
|
90
|
-
|
91
|
-
|
87
|
+
return string
|
88
|
+
.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
|
89
|
+
return numberMap[match];
|
90
|
+
})
|
91
|
+
.replace(/،/g, ',');
|
92
92
|
},
|
93
93
|
postformat: function (string) {
|
94
|
-
return string
|
95
|
-
|
96
|
-
|
94
|
+
return string
|
95
|
+
.replace(/\d/g, function (match) {
|
96
|
+
return symbolMap[match];
|
97
|
+
})
|
98
|
+
.replace(/,/g, '،');
|
99
|
+
},
|
100
|
+
week: {
|
101
|
+
dow: 0, // Sunday is the first day of the week.
|
102
|
+
doy: 6, // The week that contains Jan 6th is the first week of the year.
|
97
103
|
},
|
98
|
-
week : {
|
99
|
-
dow : 0, // Sunday is the first day of the week.
|
100
|
-
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
101
|
-
}
|
102
104
|
});
|
103
|
-
|
104
|
-
return arSa;
|
105
|
-
|
106
|
-
})));
|
@@ -2,28 +2,26 @@
|
|
2
2
|
//! locale : Arabic (Tunisia) [ar-tn]
|
3
3
|
//! author : Nader Toukabri : https://github.com/naderio
|
4
4
|
|
5
|
-
|
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';
|
5
|
+
import moment from '../moment';
|
11
6
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
7
|
+
export default moment.defineLocale('ar-tn', {
|
8
|
+
months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
|
9
|
+
'_'
|
10
|
+
),
|
11
|
+
monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
|
12
|
+
'_'
|
13
|
+
),
|
16
14
|
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
17
15
|
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
18
16
|
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
19
|
-
weekdaysParseExact
|
17
|
+
weekdaysParseExact: true,
|
20
18
|
longDateFormat: {
|
21
19
|
LT: 'HH:mm',
|
22
20
|
LTS: 'HH:mm:ss',
|
23
21
|
L: 'DD/MM/YYYY',
|
24
22
|
LL: 'D MMMM YYYY',
|
25
23
|
LLL: 'D MMMM YYYY HH:mm',
|
26
|
-
LLLL: 'dddd D MMMM YYYY HH:mm'
|
24
|
+
LLLL: 'dddd D MMMM YYYY HH:mm',
|
27
25
|
},
|
28
26
|
calendar: {
|
29
27
|
sameDay: '[اليوم على الساعة] LT',
|
@@ -31,13 +29,13 @@ var arTn = moment.defineLocale('ar-tn', {
|
|
31
29
|
nextWeek: 'dddd [على الساعة] LT',
|
32
30
|
lastDay: '[أمس على الساعة] LT',
|
33
31
|
lastWeek: 'dddd [على الساعة] LT',
|
34
|
-
sameElse: 'L'
|
32
|
+
sameElse: 'L',
|
35
33
|
},
|
36
34
|
relativeTime: {
|
37
35
|
future: 'في %s',
|
38
36
|
past: 'منذ %s',
|
39
37
|
s: 'ثوان',
|
40
|
-
ss
|
38
|
+
ss: '%d ثانية',
|
41
39
|
m: 'دقيقة',
|
42
40
|
mm: '%d دقائق',
|
43
41
|
h: 'ساعة',
|
@@ -47,14 +45,10 @@ var arTn = moment.defineLocale('ar-tn', {
|
|
47
45
|
M: 'شهر',
|
48
46
|
MM: '%d أشهر',
|
49
47
|
y: 'سنة',
|
50
|
-
yy: '%d سنوات'
|
48
|
+
yy: '%d سنوات',
|
51
49
|
},
|
52
50
|
week: {
|
53
51
|
dow: 1, // Monday is the first day of the week.
|
54
|
-
doy: 4 // The week that contains Jan 4th is the first week of the year.
|
55
|
-
}
|
52
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
53
|
+
},
|
56
54
|
});
|
57
|
-
|
58
|
-
return arTn;
|
59
|
-
|
60
|
-
})));
|