momentjs-rails 2.29.1 → 2.29.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +9 -0
  4. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/0t/0ty_fqRlzF-hGYQebubBsuGgCeT9YnqkULkaCu1nwMk.cache +0 -0
  5. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/{3T/3TjWGZFWBLAEGSW7kQIDJIL6_MukMwz_wLDMwgYsN1E.cache → 3D/3DLOuccQFCZCWz_kmyP6PagEyQM5ne4ONIzBwdwG-fY.cache} +0 -0
  6. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3h/3hk-k7Z5qoOh6S1dyiOjpfiwRfblMf4NpG3NVkO_4GQ.cache +1 -0
  7. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/{9C/9Cy8L_tqI8SvH-pVigMqBlPTus4vnZvt3YE2y8--beE.cache → 81/81FXcACo3ySybaa-2mJ9JsZ4xXvXxgi6rAT9sildrVs.cache} +1 -1
  8. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/{JO/JO9QyaKhLUs4VF1ODPXLiqcSziQS4x3sudms-3GYjww.cache → 97/97gKfWGwqo7IhT-5nqdT3p547QEt2G9nbmU5XVAtEeE.cache} +1 -1
  9. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/GO/GOYA_gO9tZqOtwNUptOfYUG1F6q5BF1ZZI0Wr7itvYM.cache +1 -0
  10. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/NG/NGyfZ_kRU3oHnf8bEjRHJwpjyx0NF_U8V_ENdenCoIg.cache +1 -0
  11. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/{3e/3eGeoVsqjktkiAfNQ4zBuxtb0rtVWyQsKgjho5OHYnY.cache → R9/R9pPKpyMZFVnjZL7kwY21faYzV2WpIx_hPb5GrUown8.cache} +0 -0
  12. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/{Ru/RuQ9HENefRmSoZaLfw7LalsxdBHpKJMyc2c3OQ_kQr8.cache → W1/W1cCnSuixTbIt3rgc5Z-4BGC1iBfw6gqKVjuOh66lSY.cache} +0 -0
  13. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Xr/Xr9AioDZNswMqHmbREXo4J_kNVPlbysC8G37BX65-rY.cache +0 -0
  14. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/lK/lKG81FVPPHkSni295teRgLDoWVYRamY_BCSFxMiagSs.cache +1 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/q7/q7CVcZSJHIEQqdPLpSAb4YHepJZFY541_7ToMaHvbtA.cache +0 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/{Zj/Zjn9OiwGREdMXvLZA-tY289lQslnn7R3BrSwhsntMWQ.cache → wF/wFKYFOm2u1A3crk6JyBKUw2L5ybvI0Tbt2jPPZXfdWQ.cache} +0 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/yY/yY97dYnGEDUjVioT9bUJucvTt0w_ToimRXWj3YYvD10.cache +0 -0
  18. data/test/integration/navigation_test.rb +1 -1
  19. data/vendor/assets/javascripts/moment/af.js +77 -66
  20. data/vendor/assets/javascripts/moment/ar-dz.js +156 -145
  21. data/vendor/assets/javascripts/moment/ar-kw.js +61 -49
  22. data/vendor/assets/javascripts/moment/ar-ly.js +176 -165
  23. data/vendor/assets/javascripts/moment/ar-ma.js +61 -49
  24. data/vendor/assets/javascripts/moment/ar-sa.js +110 -98
  25. data/vendor/assets/javascripts/moment/ar-tn.js +61 -49
  26. data/vendor/assets/javascripts/moment/ar.js +191 -180
  27. data/vendor/assets/javascripts/moment/az.js +107 -95
  28. data/vendor/assets/javascripts/moment/be.js +141 -129
  29. data/vendor/assets/javascripts/moment/bg.js +91 -80
  30. data/vendor/assets/javascripts/moment/bm.js +57 -47
  31. data/vendor/assets/javascripts/moment/bn-bd.js +132 -120
  32. data/vendor/assets/javascripts/moment/bn.js +124 -112
  33. data/vendor/assets/javascripts/moment/bo.js +129 -116
  34. data/vendor/assets/javascripts/moment/br.js +165 -151
  35. data/vendor/assets/javascripts/moment/bs.js +151 -139
  36. data/vendor/assets/javascripts/moment/ca.js +101 -87
  37. data/vendor/assets/javascripts/moment/cs.js +181 -161
  38. data/vendor/assets/javascripts/moment/cv.js +68 -56
  39. data/vendor/assets/javascripts/moment/cy.js +102 -90
  40. data/vendor/assets/javascripts/moment/da.js +59 -48
  41. data/vendor/assets/javascripts/moment/de-at.js +81 -70
  42. data/vendor/assets/javascripts/moment/de-ch.js +80 -71
  43. data/vendor/assets/javascripts/moment/de.js +81 -70
  44. data/vendor/assets/javascripts/moment/dv.js +95 -84
  45. data/vendor/assets/javascripts/moment/el.js +109 -96
  46. data/vendor/assets/javascripts/moment/en-au.js +74 -63
  47. data/vendor/assets/javascripts/moment/en-ca.js +70 -59
  48. data/vendor/assets/javascripts/moment/en-gb.js +74 -63
  49. data/vendor/assets/javascripts/moment/en-ie.js +74 -63
  50. data/vendor/assets/javascripts/moment/en-il.js +70 -59
  51. data/vendor/assets/javascripts/moment/en-in.js +74 -63
  52. data/vendor/assets/javascripts/moment/en-nz.js +74 -63
  53. data/vendor/assets/javascripts/moment/en-sg.js +74 -63
  54. data/vendor/assets/javascripts/moment/eo.js +71 -60
  55. data/vendor/assets/javascripts/moment/es-do.js +109 -94
  56. data/vendor/assets/javascripts/moment/es-mx.js +110 -95
  57. data/vendor/assets/javascripts/moment/es-us.js +109 -94
  58. data/vendor/assets/javascripts/moment/es.js +110 -95
  59. data/vendor/assets/javascripts/moment/et.js +81 -70
  60. data/vendor/assets/javascripts/moment/eu.js +71 -58
  61. data/vendor/assets/javascripts/moment/fa.js +118 -104
  62. data/vendor/assets/javascripts/moment/fi.js +128 -114
  63. data/vendor/assets/javascripts/moment/fil.js +63 -52
  64. data/vendor/assets/javascripts/moment/fo.js +62 -50
  65. data/vendor/assets/javascripts/moment/fr-ca.js +75 -63
  66. data/vendor/assets/javascripts/moment/fr-ch.js +79 -67
  67. data/vendor/assets/javascripts/moment/fr.js +111 -96
  68. data/vendor/assets/javascripts/moment/fy.js +80 -71
  69. data/vendor/assets/javascripts/moment/ga.js +100 -89
  70. data/vendor/assets/javascripts/moment/gd.js +100 -89
  71. data/vendor/assets/javascripts/moment/gl.js +77 -65
  72. data/vendor/assets/javascripts/moment/gom-deva.js +131 -118
  73. data/vendor/assets/javascripts/moment/gom-latn.js +129 -118
  74. data/vendor/assets/javascripts/moment/gu.js +127 -115
  75. data/vendor/assets/javascripts/moment/he.js +93 -82
  76. data/vendor/assets/javascripts/moment/hi.js +167 -152
  77. data/vendor/assets/javascripts/moment/hr.js +156 -143
  78. data/vendor/assets/javascripts/moment/hu.js +119 -108
  79. data/vendor/assets/javascripts/moment/hy-am.js +98 -85
  80. data/vendor/assets/javascripts/moment/id.js +81 -70
  81. data/vendor/assets/javascripts/moment/is.js +138 -126
  82. data/vendor/assets/javascripts/moment/it-ch.js +68 -57
  83. data/vendor/assets/javascripts/moment/it.js +106 -95
  84. data/vendor/assets/javascripts/moment/ja.js +146 -135
  85. data/vendor/assets/javascripts/moment/jv.js +81 -70
  86. data/vendor/assets/javascripts/moment/ka.js +92 -81
  87. data/vendor/assets/javascripts/moment/kk.js +87 -76
  88. data/vendor/assets/javascripts/moment/km.js +108 -96
  89. data/vendor/assets/javascripts/moment/kn.js +129 -117
  90. data/vendor/assets/javascripts/moment/ko.js +80 -69
  91. data/vendor/assets/javascripts/moment/ku.js +123 -112
  92. data/vendor/assets/javascripts/moment/ky.js +89 -78
  93. data/vendor/assets/javascripts/moment/lb.js +134 -121
  94. data/vendor/assets/javascripts/moment/lo.js +72 -60
  95. data/vendor/assets/javascripts/moment/lt.js +127 -114
  96. data/vendor/assets/javascripts/moment/lv.js +97 -85
  97. data/vendor/assets/javascripts/moment/me.js +119 -109
  98. data/vendor/assets/javascripts/moment/mi.js +66 -54
  99. data/vendor/assets/javascripts/moment/mk.js +90 -78
  100. data/vendor/assets/javascripts/moment/ml.js +88 -75
  101. data/vendor/assets/javascripts/moment/mn.js +101 -89
  102. data/vendor/assets/javascripts/moment/mr.js +204 -192
  103. data/vendor/assets/javascripts/moment/ms-my.js +81 -70
  104. data/vendor/assets/javascripts/moment/ms.js +81 -70
  105. data/vendor/assets/javascripts/moment/mt.js +62 -50
  106. data/vendor/assets/javascripts/moment/my.js +93 -82
  107. data/vendor/assets/javascripts/moment/nb.js +64 -54
  108. data/vendor/assets/javascripts/moment/ne.js +126 -114
  109. data/vendor/assets/javascripts/moment/nl-be.js +103 -92
  110. data/vendor/assets/javascripts/moment/nl.js +105 -94
  111. data/vendor/assets/javascripts/moment/nn.js +64 -54
  112. data/vendor/assets/javascripts/moment/oc-lnc.js +89 -76
  113. data/vendor/assets/javascripts/moment/pa-in.js +127 -115
  114. data/vendor/assets/javascripts/moment/pl.js +138 -126
  115. data/vendor/assets/javascripts/moment/pt-br.js +63 -51
  116. data/vendor/assets/javascripts/moment/pt.js +68 -56
  117. data/vendor/assets/javascripts/moment/ro.js +78 -66
  118. data/vendor/assets/javascripts/moment/ru.js +204 -186
  119. data/vendor/assets/javascripts/moment/sd.js +86 -75
  120. data/vendor/assets/javascripts/moment/se.js +63 -52
  121. data/vendor/assets/javascripts/moment/si.js +75 -63
  122. data/vendor/assets/javascripts/moment/sk.js +146 -134
  123. data/vendor/assets/javascripts/moment/sl.js +172 -160
  124. data/vendor/assets/javascripts/moment/sq.js +69 -58
  125. data/vendor/assets/javascripts/moment/sr-cyrl.js +128 -106
  126. data/vendor/assets/javascripts/moment/sr.js +130 -108
  127. data/vendor/assets/javascripts/moment/ss.js +89 -77
  128. data/vendor/assets/javascripts/moment/sv.js +74 -63
  129. data/vendor/assets/javascripts/moment/sw.js +61 -49
  130. data/vendor/assets/javascripts/moment/ta.js +136 -123
  131. data/vendor/assets/javascripts/moment/te.js +94 -81
  132. data/vendor/assets/javascripts/moment/tet.js +72 -61
  133. data/vendor/assets/javascripts/moment/tg.js +120 -108
  134. data/vendor/assets/javascripts/moment/th.js +71 -59
  135. data/vendor/assets/javascripts/moment/tk.js +96 -85
  136. data/vendor/assets/javascripts/moment/tl-ph.js +63 -52
  137. data/vendor/assets/javascripts/moment/tlh.js +122 -112
  138. data/vendor/assets/javascripts/moment/tr.js +110 -99
  139. data/vendor/assets/javascripts/moment/tzl.js +93 -82
  140. data/vendor/assets/javascripts/moment/tzm-latn.js +60 -48
  141. data/vendor/assets/javascripts/moment/tzm.js +60 -48
  142. data/vendor/assets/javascripts/moment/ug-cn.js +116 -104
  143. data/vendor/assets/javascripts/moment/uk.js +163 -148
  144. data/vendor/assets/javascripts/moment/ur.js +86 -75
  145. data/vendor/assets/javascripts/moment/uz-latn.js +60 -48
  146. data/vendor/assets/javascripts/moment/uz.js +57 -46
  147. data/vendor/assets/javascripts/moment/vi.js +85 -73
  148. data/vendor/assets/javascripts/moment/x-pseudo.js +79 -66
  149. data/vendor/assets/javascripts/moment/yo.js +59 -48
  150. data/vendor/assets/javascripts/moment/zh-cn.js +118 -107
  151. data/vendor/assets/javascripts/moment/zh-hk.js +104 -93
  152. data/vendor/assets/javascripts/moment/zh-mo.js +104 -93
  153. data/vendor/assets/javascripts/moment/zh-tw.js +104 -93
  154. data/vendor/assets/javascripts/moment.js +5037 -5014
  155. metadata +30 -58
  156. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-H/-H77gbOgi-dwHJoevs2PsAJBV-nde7DFDWBPXqUrMkw.cache +0 -1
  157. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-y/-ypqz4WBYM3Qftk20RenhtH0iPKxdtyu6t3hVOjJLL4.cache +0 -1
  158. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1l/1l4oJ9T6GJ0pN-vGrH1QH9XT7AVF3Z9pakdHrxcsuXw.cache +0 -1
  159. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9z/9zOsSzS7x1TCGFnvxdjQdrEL2MENRZARP2fzL5JYLF0.cache +0 -1
  160. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/AP/AP7JoF1ZWY1lf5txW64EpzKJEzOIsR9Wkn_V0pl6Kzo.cache +0 -0
  161. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Bu/BuxnmLYpqxwN3qck74Nh3Adaqz5VwdArL7wCZx6TnII.cache +0 -2
  162. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Mn/MnWwrzXFar6jFGAfp8PS_cZXjeFYCA85xsTQT758958.cache +0 -0
  163. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/OM/OM7fRuvTUPQcZERsO6Tsv0fvTdZqsRZbN-mYK00TwnI.cache +0 -1
  164. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Pn/PnNlsrskw8SKHpOLkqJgEN_HjZzB2jsQZauj-dnQQ2A.cache +0 -0
  165. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Rf/RfFWq_tyttbS2wyfSc0kKvcSxUeC_m01sL3Dl6EWEqM.cache +0 -0
  166. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/T-/T-9_ffpUxh6GAYTAzM3sF5lykyt9GVpcbKZaRXxw0wA.cache +0 -2
  167. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Zm/Zmp1hSfJjOVQBTRXZ-xSs8qqIK6lmyQ4GK_uYVsDVJc.cache +0 -1
  168. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/bR/bRSmDUPNI--mMuAgRHWf1r56iydNwHRg_wniS8HqhNg.cache +0 -0
  169. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dA/dAAcqCClwz0OKgpbEd9G3OUYKW1TeNqJV49Zxh2bQ5A.cache +0 -1
  170. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dh/dhlLaVScr1-Ty5UFcg6xdU4xSWIuySWzjcC5OU2mOf4.cache +0 -0
  171. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/gt/gtu4KqwPpmom4hwtRz9x180bzJzATR6V8hyE3uHsyas.cache +0 -3
  172. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/kl/klJHIoyRhrimisvwpjAPKxae89riL_0exIgpv4u3u5Y.cache +0 -0
  173. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/m1/m16f5eEXdsOfzbCB88BS3eojIypOTYQjyyv5kkTDwxY.cache +0 -1
  174. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/mm/mmqv3-gEoPWhMrVamMnpI1csCNLKpv-qVQgHERXQNaU.cache +0 -2
  175. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/rp/rpqm2QeVJPWIySovDg4XdCnI6X5_FXCd0pZhuOnwAfk.cache +0 -1
  176. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wx/wxFkskdA6iSIVZxka368Y8wkP-3edr2nlW4VSOI6GhY.cache +0 -3
  177. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/xP/xPbdGyTHlpGRgIS0gbG9suCByeakXeTFaQ1B_h3_aUI.cache +0 -0
@@ -4,186 +4,197 @@
4
4
  //! author : Ahmed Elkhatib
5
5
  //! author : forabi https://github.com/forabi
6
6
 
7
- import moment from '../moment';
7
+ ;(function (global, factory) {
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';
8
13
 
9
- var symbolMap = {
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];
14
+ //! moment.js locale configuration
15
+
16
+ var symbolMap = {
17
+ 1: '١',
18
+ 2: '٢',
19
+ 3: '٣',
20
+ 4: '٤',
21
+ 5: '٥',
22
+ 6: '٦',
23
+ 7: '٧',
24
+ 8: '٨',
25
+ 9: '٩',
26
+ 0: '٠',
27
+ },
28
+ numberMap = {
29
+ '١': '1',
30
+ '٢': '2',
31
+ '٣': '3',
32
+ '٤': '4',
33
+ '٥': '5',
34
+ '٦': '6',
35
+ '٧': '7',
36
+ '٨': '8',
37
+ '٩': '9',
38
+ '٠': '0',
39
+ },
40
+ pluralForm = function (n) {
41
+ return n === 0
42
+ ? 0
43
+ : n === 1
44
+ ? 1
45
+ : n === 2
46
+ ? 2
47
+ : n % 100 >= 3 && n % 100 <= 10
48
+ ? 3
49
+ : n % 100 >= 11
50
+ ? 4
51
+ : 5;
52
+ },
53
+ plurals = {
54
+ s: [
55
+ 'أقل من ثانية',
56
+ 'ثانية واحدة',
57
+ ['ثانيتان', 'ثانيتين'],
58
+ '%d ثوان',
59
+ '%d ثانية',
60
+ '%d ثانية',
61
+ ],
62
+ m: [
63
+ 'أقل من دقيقة',
64
+ 'دقيقة واحدة',
65
+ ['دقيقتان', 'دقيقتين'],
66
+ '%d دقائق',
67
+ '%d دقيقة',
68
+ '%d دقيقة',
69
+ ],
70
+ h: [
71
+ 'أقل من ساعة',
72
+ 'ساعة واحدة',
73
+ ['ساعتان', 'ساعتين'],
74
+ '%d ساعات',
75
+ '%d ساعة',
76
+ '%d ساعة',
77
+ ],
78
+ d: [
79
+ 'أقل من يوم',
80
+ 'يوم واحد',
81
+ ['يومان', 'يومين'],
82
+ '%d أيام',
83
+ '%d يومًا',
84
+ '%d يوم',
85
+ ],
86
+ M: [
87
+ 'أقل من شهر',
88
+ 'شهر واحد',
89
+ ['شهران', 'شهرين'],
90
+ '%d أشهر',
91
+ '%d شهرا',
92
+ '%d شهر',
93
+ ],
94
+ y: [
95
+ 'أقل من عام',
96
+ 'عام واحد',
97
+ ['عامان', 'عامين'],
98
+ '%d أعوام',
99
+ '%d عامًا',
100
+ '%d عام',
101
+ ],
102
+ },
103
+ pluralize = function (u) {
104
+ return function (number, withoutSuffix, string, isFuture) {
105
+ var f = pluralForm(number),
106
+ str = plurals[u][pluralForm(number)];
107
+ if (f === 2) {
108
+ str = str[withoutSuffix ? 0 : 1];
109
+ }
110
+ return str.replace(/%d/i, number);
111
+ };
112
+ },
113
+ months = [
114
+ 'يناير',
115
+ 'فبراير',
116
+ 'مارس',
117
+ 'أبريل',
118
+ 'مايو',
119
+ 'يونيو',
120
+ 'يوليو',
121
+ 'أغسطس',
122
+ 'سبتمبر',
123
+ 'أكتوبر',
124
+ 'نوفمبر',
125
+ 'ديسمبر',
126
+ ];
127
+
128
+ var ar = moment.defineLocale('ar', {
129
+ months: months,
130
+ monthsShort: months,
131
+ weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
132
+ weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
133
+ weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
134
+ weekdaysParseExact: true,
135
+ longDateFormat: {
136
+ LT: 'HH:mm',
137
+ LTS: 'HH:mm:ss',
138
+ L: 'D/\u200FM/\u200FYYYY',
139
+ LL: 'D MMMM YYYY',
140
+ LLL: 'D MMMM YYYY HH:mm',
141
+ LLLL: 'dddd D MMMM YYYY HH:mm',
142
+ },
143
+ meridiemParse: /ص|م/,
144
+ isPM: function (input) {
145
+ return 'م' === input;
146
+ },
147
+ meridiem: function (hour, minute, isLower) {
148
+ if (hour < 12) {
149
+ return 'ص';
150
+ } else {
151
+ return 'م';
102
152
  }
103
- return str.replace(/%d/i, number);
104
- };
105
- },
106
- months = [
107
- 'يناير',
108
- 'فبراير',
109
- 'مارس',
110
- 'أبريل',
111
- 'مايو',
112
- 'يونيو',
113
- 'يوليو',
114
- 'أغسطس',
115
- 'سبتمبر',
116
- 'أكتوبر',
117
- 'نوفمبر',
118
- 'ديسمبر',
119
- ];
153
+ },
154
+ calendar: {
155
+ sameDay: '[اليوم عند الساعة] LT',
156
+ nextDay: '[غدًا عند الساعة] LT',
157
+ nextWeek: 'dddd [عند الساعة] LT',
158
+ lastDay: '[أمس عند الساعة] LT',
159
+ lastWeek: 'dddd [عند الساعة] LT',
160
+ sameElse: 'L',
161
+ },
162
+ relativeTime: {
163
+ future: 'بعد %s',
164
+ past: 'منذ %s',
165
+ s: pluralize('s'),
166
+ ss: pluralize('s'),
167
+ m: pluralize('m'),
168
+ mm: pluralize('m'),
169
+ h: pluralize('h'),
170
+ hh: pluralize('h'),
171
+ d: pluralize('d'),
172
+ dd: pluralize('d'),
173
+ M: pluralize('M'),
174
+ MM: pluralize('M'),
175
+ y: pluralize('y'),
176
+ yy: pluralize('y'),
177
+ },
178
+ preparse: function (string) {
179
+ return string
180
+ .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
181
+ return numberMap[match];
182
+ })
183
+ .replace(/،/g, ',');
184
+ },
185
+ postformat: function (string) {
186
+ return string
187
+ .replace(/\d/g, function (match) {
188
+ return symbolMap[match];
189
+ })
190
+ .replace(/,/g, '،');
191
+ },
192
+ week: {
193
+ dow: 6, // Saturday is the first day of the week.
194
+ doy: 12, // The week that contains Jan 12th is the first week of the year.
195
+ },
196
+ });
197
+
198
+ return ar;
120
199
 
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',
135
- },
136
- meridiemParse: /ص|م/,
137
- isPM: function (input) {
138
- return 'م' === input;
139
- },
140
- meridiem: function (hour, minute, isLower) {
141
- if (hour < 12) {
142
- return 'ص';
143
- } else {
144
- return 'م';
145
- }
146
- },
147
- calendar: {
148
- sameDay: '[اليوم عند الساعة] LT',
149
- nextDay: '[غدًا عند الساعة] LT',
150
- nextWeek: 'dddd [عند الساعة] LT',
151
- lastDay: '[أمس عند الساعة] LT',
152
- lastWeek: 'dddd [عند الساعة] LT',
153
- sameElse: 'L',
154
- },
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'),
170
- },
171
- preparse: function (string) {
172
- return string
173
- .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
174
- return numberMap[match];
175
- })
176
- .replace(/،/g, ',');
177
- },
178
- postformat: function (string) {
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.
188
- },
189
- });
200
+ })));
@@ -2,100 +2,112 @@
2
2
  //! locale : Azerbaijani [az]
3
3
  //! author : topchiyev : https://github.com/topchiyev
4
4
 
5
- import moment from '../moment';
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';
6
11
 
7
- var suffixes = {
8
- 1: '-inci',
9
- 5: '-inci',
10
- 8: '-inci',
11
- 70: '-inci',
12
- 80: '-inci',
13
- 2: '-nci',
14
- 7: '-nci',
15
- 20: '-nci',
16
- 50: '-nci',
17
- 3: '-üncü',
18
- 4: '-üncü',
19
- 100: '-üncü',
20
- 6: '-ncı',
21
- 9: '-uncu',
22
- 10: '-uncu',
23
- 30: '-uncu',
24
- 60: '-ıncı',
25
- 90: '-ıncı',
26
- };
12
+ //! moment.js locale configuration
27
13
 
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',
46
- },
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',
54
- },
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',
70
- },
71
- meridiemParse: /gecə|səhər|gündüz|axşam/,
72
- isPM: function (input) {
73
- return /^(gündüz|axşam)$/.test(input);
74
- },
75
- meridiem: function (hour, minute, isLower) {
76
- if (hour < 4) {
77
- return 'gecə';
78
- } else if (hour < 12) {
79
- return 'səhər';
80
- } else if (hour < 17) {
81
- return 'gündüz';
82
- } else {
83
- return 'axşam';
84
- }
85
- },
86
- dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
87
- ordinal: function (number) {
88
- if (number === 0) {
89
- // special case for zero
90
- return number + '-ıncı';
91
- }
92
- var a = number % 10,
93
- b = (number % 100) - a,
94
- c = number >= 100 ? 100 : null;
95
- return number + (suffixes[a] || suffixes[b] || suffixes[c]);
96
- },
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
- },
101
- });
14
+ var suffixes = {
15
+ 1: '-inci',
16
+ 5: '-inci',
17
+ 8: '-inci',
18
+ 70: '-inci',
19
+ 80: '-inci',
20
+ 2: '-nci',
21
+ 7: '-nci',
22
+ 20: '-nci',
23
+ 50: '-nci',
24
+ 3: '-üncü',
25
+ 4: '-üncü',
26
+ 100: '-üncü',
27
+ 6: '-ncı',
28
+ 9: '-uncu',
29
+ 10: '-uncu',
30
+ 30: '-uncu',
31
+ 60: '-ıncı',
32
+ 90: '-ıncı',
33
+ };
34
+
35
+ var az = moment.defineLocale('az', {
36
+ months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(
37
+ '_'
38
+ ),
39
+ monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
40
+ weekdays:
41
+ 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(
42
+ '_'
43
+ ),
44
+ weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
45
+ weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
46
+ weekdaysParseExact: true,
47
+ longDateFormat: {
48
+ LT: 'HH:mm',
49
+ LTS: 'HH:mm:ss',
50
+ L: 'DD.MM.YYYY',
51
+ LL: 'D MMMM YYYY',
52
+ LLL: 'D MMMM YYYY HH:mm',
53
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
54
+ },
55
+ calendar: {
56
+ sameDay: '[bugün saat] LT',
57
+ nextDay: '[sabah saat] LT',
58
+ nextWeek: '[gələn həftə] dddd [saat] LT',
59
+ lastDay: '[dünən] LT',
60
+ lastWeek: '[keçən həftə] dddd [saat] LT',
61
+ sameElse: 'L',
62
+ },
63
+ relativeTime: {
64
+ future: '%s sonra',
65
+ past: '%s əvvəl',
66
+ s: 'bir neçə saniyə',
67
+ ss: '%d saniyə',
68
+ m: 'bir dəqiqə',
69
+ mm: '%d dəqiqə',
70
+ h: 'bir saat',
71
+ hh: '%d saat',
72
+ d: 'bir gün',
73
+ dd: '%d gün',
74
+ M: 'bir ay',
75
+ MM: '%d ay',
76
+ y: 'bir il',
77
+ yy: '%d il',
78
+ },
79
+ meridiemParse: /gecə|səhər|gündüz|axşam/,
80
+ isPM: function (input) {
81
+ return /^(gündüz|axşam)$/.test(input);
82
+ },
83
+ meridiem: function (hour, minute, isLower) {
84
+ if (hour < 4) {
85
+ return 'gecə';
86
+ } else if (hour < 12) {
87
+ return 'səhər';
88
+ } else if (hour < 17) {
89
+ return 'gündüz';
90
+ } else {
91
+ return 'axşam';
92
+ }
93
+ },
94
+ dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
95
+ ordinal: function (number) {
96
+ if (number === 0) {
97
+ // special case for zero
98
+ return number + '-ıncı';
99
+ }
100
+ var a = number % 10,
101
+ b = (number % 100) - a,
102
+ c = number >= 100 ? 100 : null;
103
+ return number + (suffixes[a] || suffixes[b] || suffixes[c]);
104
+ },
105
+ week: {
106
+ dow: 1, // Monday is the first day of the week.
107
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
108
+ },
109
+ });
110
+
111
+ return az;
112
+
113
+ })));