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