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
@@ -4,140 +4,186 @@
|
|
4
4
|
//! author : Ahmed Elkhatib
|
5
5
|
//! author : forabi https://github.com/forabi
|
6
6
|
|
7
|
-
|
8
|
-
typeof exports === 'object' && typeof module !== 'undefined'
|
9
|
-
&& typeof require === 'function' ? factory(require('../moment')) :
|
10
|
-
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
11
|
-
factory(global.moment)
|
12
|
-
}(this, (function (moment) { 'use strict';
|
13
|
-
|
7
|
+
import moment from '../moment';
|
14
8
|
|
15
9
|
var symbolMap = {
|
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
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
10
|
+
1: '١',
|
11
|
+
2: '٢',
|
12
|
+
3: '٣',
|
13
|
+
4: '٤',
|
14
|
+
5: '٥',
|
15
|
+
6: '٦',
|
16
|
+
7: '٧',
|
17
|
+
8: '٨',
|
18
|
+
9: '٩',
|
19
|
+
0: '٠',
|
20
|
+
},
|
21
|
+
numberMap = {
|
22
|
+
'١': '1',
|
23
|
+
'٢': '2',
|
24
|
+
'٣': '3',
|
25
|
+
'٤': '4',
|
26
|
+
'٥': '5',
|
27
|
+
'٦': '6',
|
28
|
+
'٧': '7',
|
29
|
+
'٨': '8',
|
30
|
+
'٩': '9',
|
31
|
+
'٠': '0',
|
32
|
+
},
|
33
|
+
pluralForm = function (n) {
|
34
|
+
return n === 0
|
35
|
+
? 0
|
36
|
+
: n === 1
|
37
|
+
? 1
|
38
|
+
: n === 2
|
39
|
+
? 2
|
40
|
+
: n % 100 >= 3 && n % 100 <= 10
|
41
|
+
? 3
|
42
|
+
: n % 100 >= 11
|
43
|
+
? 4
|
44
|
+
: 5;
|
45
|
+
},
|
46
|
+
plurals = {
|
47
|
+
s: [
|
48
|
+
'أقل من ثانية',
|
49
|
+
'ثانية واحدة',
|
50
|
+
['ثانيتان', 'ثانيتين'],
|
51
|
+
'%d ثوان',
|
52
|
+
'%d ثانية',
|
53
|
+
'%d ثانية',
|
54
|
+
],
|
55
|
+
m: [
|
56
|
+
'أقل من دقيقة',
|
57
|
+
'دقيقة واحدة',
|
58
|
+
['دقيقتان', 'دقيقتين'],
|
59
|
+
'%d دقائق',
|
60
|
+
'%d دقيقة',
|
61
|
+
'%d دقيقة',
|
62
|
+
],
|
63
|
+
h: [
|
64
|
+
'أقل من ساعة',
|
65
|
+
'ساعة واحدة',
|
66
|
+
['ساعتان', 'ساعتين'],
|
67
|
+
'%d ساعات',
|
68
|
+
'%d ساعة',
|
69
|
+
'%d ساعة',
|
70
|
+
],
|
71
|
+
d: [
|
72
|
+
'أقل من يوم',
|
73
|
+
'يوم واحد',
|
74
|
+
['يومان', 'يومين'],
|
75
|
+
'%d أيام',
|
76
|
+
'%d يومًا',
|
77
|
+
'%d يوم',
|
78
|
+
],
|
79
|
+
M: [
|
80
|
+
'أقل من شهر',
|
81
|
+
'شهر واحد',
|
82
|
+
['شهران', 'شهرين'],
|
83
|
+
'%d أشهر',
|
84
|
+
'%d شهرا',
|
85
|
+
'%d شهر',
|
86
|
+
],
|
87
|
+
y: [
|
88
|
+
'أقل من عام',
|
89
|
+
'عام واحد',
|
90
|
+
['عامان', 'عامين'],
|
91
|
+
'%d أعوام',
|
92
|
+
'%d عامًا',
|
93
|
+
'%d عام',
|
94
|
+
],
|
95
|
+
},
|
96
|
+
pluralize = function (u) {
|
97
|
+
return function (number, withoutSuffix, string, isFuture) {
|
98
|
+
var f = pluralForm(number),
|
99
|
+
str = plurals[u][pluralForm(number)];
|
100
|
+
if (f === 2) {
|
101
|
+
str = str[withoutSuffix ? 0 : 1];
|
102
|
+
}
|
103
|
+
return str.replace(/%d/i, number);
|
104
|
+
};
|
105
|
+
},
|
106
|
+
months = [
|
107
|
+
'يناير',
|
108
|
+
'فبراير',
|
109
|
+
'مارس',
|
110
|
+
'أبريل',
|
111
|
+
'مايو',
|
112
|
+
'يونيو',
|
113
|
+
'يوليو',
|
114
|
+
'أغسطس',
|
115
|
+
'سبتمبر',
|
116
|
+
'أكتوبر',
|
117
|
+
'نوفمبر',
|
118
|
+
'ديسمبر',
|
119
|
+
];
|
74
120
|
|
75
|
-
|
76
|
-
months
|
77
|
-
monthsShort
|
78
|
-
weekdays
|
79
|
-
weekdaysShort
|
80
|
-
weekdaysMin
|
81
|
-
weekdaysParseExact
|
82
|
-
longDateFormat
|
83
|
-
LT
|
84
|
-
LTS
|
85
|
-
L
|
86
|
-
LL
|
87
|
-
LLL
|
88
|
-
LLLL
|
121
|
+
export default moment.defineLocale('ar', {
|
122
|
+
months: months,
|
123
|
+
monthsShort: months,
|
124
|
+
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
125
|
+
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
126
|
+
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
127
|
+
weekdaysParseExact: true,
|
128
|
+
longDateFormat: {
|
129
|
+
LT: 'HH:mm',
|
130
|
+
LTS: 'HH:mm:ss',
|
131
|
+
L: 'D/\u200FM/\u200FYYYY',
|
132
|
+
LL: 'D MMMM YYYY',
|
133
|
+
LLL: 'D MMMM YYYY HH:mm',
|
134
|
+
LLLL: 'dddd D MMMM YYYY HH:mm',
|
89
135
|
},
|
90
136
|
meridiemParse: /ص|م/,
|
91
|
-
isPM
|
137
|
+
isPM: function (input) {
|
92
138
|
return 'م' === input;
|
93
139
|
},
|
94
|
-
meridiem
|
140
|
+
meridiem: function (hour, minute, isLower) {
|
95
141
|
if (hour < 12) {
|
96
142
|
return 'ص';
|
97
143
|
} else {
|
98
144
|
return 'م';
|
99
145
|
}
|
100
146
|
},
|
101
|
-
calendar
|
147
|
+
calendar: {
|
102
148
|
sameDay: '[اليوم عند الساعة] LT',
|
103
149
|
nextDay: '[غدًا عند الساعة] LT',
|
104
150
|
nextWeek: 'dddd [عند الساعة] LT',
|
105
151
|
lastDay: '[أمس عند الساعة] LT',
|
106
152
|
lastWeek: 'dddd [عند الساعة] LT',
|
107
|
-
sameElse: 'L'
|
153
|
+
sameElse: 'L',
|
108
154
|
},
|
109
|
-
relativeTime
|
110
|
-
future
|
111
|
-
past
|
112
|
-
s
|
113
|
-
ss
|
114
|
-
m
|
115
|
-
mm
|
116
|
-
h
|
117
|
-
hh
|
118
|
-
d
|
119
|
-
dd
|
120
|
-
M
|
121
|
-
MM
|
122
|
-
y
|
123
|
-
yy
|
155
|
+
relativeTime: {
|
156
|
+
future: 'بعد %s',
|
157
|
+
past: 'منذ %s',
|
158
|
+
s: pluralize('s'),
|
159
|
+
ss: pluralize('s'),
|
160
|
+
m: pluralize('m'),
|
161
|
+
mm: pluralize('m'),
|
162
|
+
h: pluralize('h'),
|
163
|
+
hh: pluralize('h'),
|
164
|
+
d: pluralize('d'),
|
165
|
+
dd: pluralize('d'),
|
166
|
+
M: pluralize('M'),
|
167
|
+
MM: pluralize('M'),
|
168
|
+
y: pluralize('y'),
|
169
|
+
yy: pluralize('y'),
|
124
170
|
},
|
125
171
|
preparse: function (string) {
|
126
|
-
return string
|
127
|
-
|
128
|
-
|
172
|
+
return string
|
173
|
+
.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
|
174
|
+
return numberMap[match];
|
175
|
+
})
|
176
|
+
.replace(/،/g, ',');
|
129
177
|
},
|
130
178
|
postformat: function (string) {
|
131
|
-
return string
|
132
|
-
|
133
|
-
|
179
|
+
return string
|
180
|
+
.replace(/\d/g, function (match) {
|
181
|
+
return symbolMap[match];
|
182
|
+
})
|
183
|
+
.replace(/,/g, '،');
|
184
|
+
},
|
185
|
+
week: {
|
186
|
+
dow: 6, // Saturday is the first day of the week.
|
187
|
+
doy: 12, // The week that contains Jan 12th is the first week of the year.
|
134
188
|
},
|
135
|
-
week : {
|
136
|
-
dow : 6, // Saturday is the first day of the week.
|
137
|
-
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
138
|
-
}
|
139
189
|
});
|
140
|
-
|
141
|
-
return ar;
|
142
|
-
|
143
|
-
})));
|
@@ -2,13 +2,7 @@
|
|
2
2
|
//! locale : Azerbaijani [az]
|
3
3
|
//! author : topchiyev : https://github.com/topchiyev
|
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 suffixes = {
|
14
8
|
1: '-inci',
|
@@ -28,53 +22,57 @@ var suffixes = {
|
|
28
22
|
10: '-uncu',
|
29
23
|
30: '-uncu',
|
30
24
|
60: '-ıncı',
|
31
|
-
90: '-ıncı'
|
25
|
+
90: '-ıncı',
|
32
26
|
};
|
33
27
|
|
34
|
-
|
35
|
-
months
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
28
|
+
export default moment.defineLocale('az', {
|
29
|
+
months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(
|
30
|
+
'_'
|
31
|
+
),
|
32
|
+
monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
|
33
|
+
weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(
|
34
|
+
'_'
|
35
|
+
),
|
36
|
+
weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
|
37
|
+
weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
|
38
|
+
weekdaysParseExact: true,
|
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',
|
48
46
|
},
|
49
|
-
calendar
|
50
|
-
sameDay
|
51
|
-
nextDay
|
52
|
-
nextWeek
|
53
|
-
lastDay
|
54
|
-
lastWeek
|
55
|
-
sameElse
|
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',
|
56
54
|
},
|
57
|
-
relativeTime
|
58
|
-
future
|
59
|
-
past
|
60
|
-
s
|
61
|
-
ss
|
62
|
-
m
|
63
|
-
mm
|
64
|
-
h
|
65
|
-
hh
|
66
|
-
d
|
67
|
-
dd
|
68
|
-
M
|
69
|
-
MM
|
70
|
-
y
|
71
|
-
yy
|
55
|
+
relativeTime: {
|
56
|
+
future: '%s sonra',
|
57
|
+
past: '%s əvvəl',
|
58
|
+
s: 'bir neçə saniyə',
|
59
|
+
ss: '%d saniyə',
|
60
|
+
m: 'bir dəqiqə',
|
61
|
+
mm: '%d dəqiqə',
|
62
|
+
h: 'bir saat',
|
63
|
+
hh: '%d saat',
|
64
|
+
d: 'bir gün',
|
65
|
+
dd: '%d gün',
|
66
|
+
M: 'bir ay',
|
67
|
+
MM: '%d ay',
|
68
|
+
y: 'bir il',
|
69
|
+
yy: '%d il',
|
72
70
|
},
|
73
71
|
meridiemParse: /gecə|səhər|gündüz|axşam/,
|
74
|
-
isPM
|
72
|
+
isPM: function (input) {
|
75
73
|
return /^(gündüz|axşam)$/.test(input);
|
76
74
|
},
|
77
|
-
meridiem
|
75
|
+
meridiem: function (hour, minute, isLower) {
|
78
76
|
if (hour < 4) {
|
79
77
|
return 'gecə';
|
80
78
|
} else if (hour < 12) {
|
@@ -86,21 +84,18 @@ var az = moment.defineLocale('az', {
|
|
86
84
|
}
|
87
85
|
},
|
88
86
|
dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
|
89
|
-
ordinal
|
90
|
-
if (number === 0) {
|
87
|
+
ordinal: function (number) {
|
88
|
+
if (number === 0) {
|
89
|
+
// special case for zero
|
91
90
|
return number + '-ıncı';
|
92
91
|
}
|
93
92
|
var a = number % 10,
|
94
|
-
b = number % 100 - a,
|
93
|
+
b = (number % 100) - a,
|
95
94
|
c = number >= 100 ? 100 : null;
|
96
95
|
return number + (suffixes[a] || suffixes[b] || suffixes[c]);
|
97
96
|
},
|
98
|
-
week
|
99
|
-
dow
|
100
|
-
doy
|
101
|
-
}
|
97
|
+
week: {
|
98
|
+
dow: 1, // Monday is the first day of the week.
|
99
|
+
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
100
|
+
},
|
102
101
|
});
|
103
|
-
|
104
|
-
return az;
|
105
|
-
|
106
|
-
})));
|
@@ -4,60 +4,66 @@
|
|
4
4
|
//! author: Praleska: http://praleska.pro/
|
5
5
|
//! Author : Menelion Elensúle : https://github.com/Oire
|
6
6
|
|
7
|
-
|
8
|
-
typeof exports === 'object' && typeof module !== 'undefined'
|
9
|
-
&& typeof require === 'function' ? factory(require('../moment')) :
|
10
|
-
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
11
|
-
factory(global.moment)
|
12
|
-
}(this, (function (moment) { 'use strict';
|
13
|
-
|
7
|
+
import moment from '../moment';
|
14
8
|
|
15
9
|
function plural(word, num) {
|
16
10
|
var forms = word.split('_');
|
17
|
-
return num % 10 === 1 && num % 100 !== 11
|
11
|
+
return num % 10 === 1 && num % 100 !== 11
|
12
|
+
? forms[0]
|
13
|
+
: num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
|
14
|
+
? forms[1]
|
15
|
+
: forms[2];
|
18
16
|
}
|
19
17
|
function relativeTimeWithPlural(number, withoutSuffix, key) {
|
20
18
|
var format = {
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
19
|
+
ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
|
20
|
+
mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
|
21
|
+
hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
|
22
|
+
dd: 'дзень_дні_дзён',
|
23
|
+
MM: 'месяц_месяцы_месяцаў',
|
24
|
+
yy: 'год_гады_гадоў',
|
27
25
|
};
|
28
26
|
if (key === 'm') {
|
29
27
|
return withoutSuffix ? 'хвіліна' : 'хвіліну';
|
30
|
-
}
|
31
|
-
else if (key === 'h') {
|
28
|
+
} else if (key === 'h') {
|
32
29
|
return withoutSuffix ? 'гадзіна' : 'гадзіну';
|
33
|
-
}
|
34
|
-
else {
|
30
|
+
} else {
|
35
31
|
return number + ' ' + plural(format[key], +number);
|
36
32
|
}
|
37
33
|
}
|
38
34
|
|
39
|
-
|
40
|
-
months
|
41
|
-
format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(
|
42
|
-
|
35
|
+
export default moment.defineLocale('be', {
|
36
|
+
months: {
|
37
|
+
format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(
|
38
|
+
'_'
|
39
|
+
),
|
40
|
+
standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(
|
41
|
+
'_'
|
42
|
+
),
|
43
43
|
},
|
44
|
-
monthsShort
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
44
|
+
monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split(
|
45
|
+
'_'
|
46
|
+
),
|
47
|
+
weekdays: {
|
48
|
+
format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(
|
49
|
+
'_'
|
50
|
+
),
|
51
|
+
standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(
|
52
|
+
'_'
|
53
|
+
),
|
54
|
+
isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/,
|
49
55
|
},
|
50
|
-
weekdaysShort
|
51
|
-
weekdaysMin
|
52
|
-
longDateFormat
|
53
|
-
LT
|
54
|
-
LTS
|
55
|
-
L
|
56
|
-
LL
|
57
|
-
LLL
|
58
|
-
LLLL
|
56
|
+
weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
|
57
|
+
weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
|
58
|
+
longDateFormat: {
|
59
|
+
LT: 'HH:mm',
|
60
|
+
LTS: 'HH:mm:ss',
|
61
|
+
L: 'DD.MM.YYYY',
|
62
|
+
LL: 'D MMMM YYYY г.',
|
63
|
+
LLL: 'D MMMM YYYY г., HH:mm',
|
64
|
+
LLLL: 'dddd, D MMMM YYYY г., HH:mm',
|
59
65
|
},
|
60
|
-
calendar
|
66
|
+
calendar: {
|
61
67
|
sameDay: '[Сёння ў] LT',
|
62
68
|
nextDay: '[Заўтра ў] LT',
|
63
69
|
lastDay: '[Учора ў] LT',
|
@@ -77,28 +83,28 @@ var be = moment.defineLocale('be', {
|
|
77
83
|
return '[У мінулы] dddd [ў] LT';
|
78
84
|
}
|
79
85
|
},
|
80
|
-
sameElse: 'L'
|
86
|
+
sameElse: 'L',
|
81
87
|
},
|
82
|
-
relativeTime
|
83
|
-
future
|
84
|
-
past
|
85
|
-
s
|
86
|
-
m
|
87
|
-
mm
|
88
|
-
h
|
89
|
-
hh
|
90
|
-
d
|
91
|
-
dd
|
92
|
-
M
|
93
|
-
MM
|
94
|
-
y
|
95
|
-
yy
|
88
|
+
relativeTime: {
|
89
|
+
future: 'праз %s',
|
90
|
+
past: '%s таму',
|
91
|
+
s: 'некалькі секунд',
|
92
|
+
m: relativeTimeWithPlural,
|
93
|
+
mm: relativeTimeWithPlural,
|
94
|
+
h: relativeTimeWithPlural,
|
95
|
+
hh: relativeTimeWithPlural,
|
96
|
+
d: 'дзень',
|
97
|
+
dd: relativeTimeWithPlural,
|
98
|
+
M: 'месяц',
|
99
|
+
MM: relativeTimeWithPlural,
|
100
|
+
y: 'год',
|
101
|
+
yy: relativeTimeWithPlural,
|
96
102
|
},
|
97
103
|
meridiemParse: /ночы|раніцы|дня|вечара/,
|
98
|
-
isPM
|
104
|
+
isPM: function (input) {
|
99
105
|
return /^(дня|вечара)$/.test(input);
|
100
106
|
},
|
101
|
-
meridiem
|
107
|
+
meridiem: function (hour, minute, isLower) {
|
102
108
|
if (hour < 4) {
|
103
109
|
return 'ночы';
|
104
110
|
} else if (hour < 12) {
|
@@ -117,19 +123,19 @@ var be = moment.defineLocale('be', {
|
|
117
123
|
case 'DDD':
|
118
124
|
case 'w':
|
119
125
|
case 'W':
|
120
|
-
return (number % 10 === 2 || number % 10 === 3) &&
|
126
|
+
return (number % 10 === 2 || number % 10 === 3) &&
|
127
|
+
number % 100 !== 12 &&
|
128
|
+
number % 100 !== 13
|
129
|
+
? number + '-і'
|
130
|
+
: number + '-ы';
|
121
131
|
case 'D':
|
122
132
|
return number + '-га';
|
123
133
|
default:
|
124
134
|
return number;
|
125
135
|
}
|
126
136
|
},
|
127
|
-
week
|
128
|
-
dow
|
129
|
-
doy
|
130
|
-
}
|
137
|
+
week: {
|
138
|
+
dow: 1, // Monday is the first day of the week.
|
139
|
+
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
140
|
+
},
|
131
141
|
});
|
132
|
-
|
133
|
-
return be;
|
134
|
-
|
135
|
-
})));
|