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
@@ -4,140 +4,186 @@
4
4
  //! author : Ahmed Elkhatib
5
5
  //! author : forabi https://github.com/forabi
6
6
 
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';
13
-
7
+ import moment from '../moment';
14
8
 
15
9
  var symbolMap = {
16
- '1': '١',
17
- '2': '٢',
18
- '3': '٣',
19
- '4': '٤',
20
- '5': '٥',
21
- '6': '٦',
22
- '7': '٧',
23
- '8': '٨',
24
- '9': '٩',
25
- '0': '٠'
26
- };
27
- var numberMap = {
28
- '١': '1',
29
- '٢': '2',
30
- '٣': '3',
31
- '٤': '4',
32
- '٥': '5',
33
- '٦': '6',
34
- '٧': '7',
35
- '٨': '8',
36
- '٩': '9',
37
- '٠': '0'
38
- };
39
- var pluralForm = function (n) {
40
- return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
41
- };
42
- var plurals = {
43
- s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
44
- m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
45
- h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
46
- d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
47
- M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
48
- y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
49
- };
50
- var pluralize = function (u) {
51
- return function (number, withoutSuffix, string, isFuture) {
52
- var f = pluralForm(number),
53
- str = plurals[u][pluralForm(number)];
54
- if (f === 2) {
55
- str = str[withoutSuffix ? 0 : 1];
56
- }
57
- return str.replace(/%d/i, number);
58
- };
59
- };
60
- var months = [
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
- var ar = moment.defineLocale('ar', {
76
- months : months,
77
- monthsShort : months,
78
- weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
79
- weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
80
- weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
81
- weekdaysParseExact : true,
82
- longDateFormat : {
83
- LT : 'HH:mm',
84
- LTS : 'HH:mm:ss',
85
- L : 'D/\u200FM/\u200FYYYY',
86
- LL : 'D MMMM YYYY',
87
- LLL : 'D MMMM YYYY HH:mm',
88
- LLLL : 'dddd D MMMM YYYY HH:mm'
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 : function (input) {
137
+ isPM: function (input) {
92
138
  return 'م' === input;
93
139
  },
94
- meridiem : function (hour, minute, isLower) {
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 : 'بعد %s',
111
- past : 'منذ %s',
112
- s : pluralize('s'),
113
- ss : pluralize('s'),
114
- m : pluralize('m'),
115
- mm : pluralize('m'),
116
- h : pluralize('h'),
117
- hh : pluralize('h'),
118
- d : pluralize('d'),
119
- dd : pluralize('d'),
120
- M : pluralize('M'),
121
- MM : pluralize('M'),
122
- y : pluralize('y'),
123
- yy : pluralize('y')
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.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
127
- return numberMap[match];
128
- }).replace(/،/g, ',');
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.replace(/\d/g, function (match) {
132
- return symbolMap[match];
133
- }).replace(/,/g, '،');
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
- ;(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 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
- var az = moment.defineLocale('az', {
35
- months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
36
- monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
37
- weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
38
- weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
39
- weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
40
- weekdaysParseExact : true,
41
- longDateFormat : {
42
- LT : 'HH:mm',
43
- LTS : 'HH:mm:ss',
44
- L : 'DD.MM.YYYY',
45
- LL : 'D MMMM YYYY',
46
- LLL : 'D MMMM YYYY HH:mm',
47
- LLLL : 'dddd, D MMMM YYYY HH:mm'
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 : '[bugün saat] LT',
51
- nextDay : '[sabah saat] LT',
52
- nextWeek : '[gələn həftə] dddd [saat] LT',
53
- lastDay : '[dünən] LT',
54
- lastWeek : '[keçən həftə] dddd [saat] LT',
55
- sameElse : 'L'
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 : '%s sonra',
59
- past : '%s əvvəl',
60
- s : 'birneçə saniyyə',
61
- ss : '%d saniyə',
62
- m : 'bir dəqiqə',
63
- mm : '%d dəqiqə',
64
- h : 'bir saat',
65
- hh : '%d saat',
66
- d : 'bir gün',
67
- dd : '%d gün',
68
- M : 'bir ay',
69
- MM : '%d ay',
70
- y : 'bir il',
71
- yy : '%d il'
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 : function (input) {
72
+ isPM: function (input) {
75
73
  return /^(gündüz|axşam)$/.test(input);
76
74
  },
77
- meridiem : function (hour, minute, isLower) {
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 : function (number) {
90
- if (number === 0) { // special case for zero
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 : 1, // Monday is the first day of the week.
100
- doy : 7 // The week that contains Jan 1st is the first week of the year.
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
- ;(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';
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 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
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
- 'ss': withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
22
- 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
23
- 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
24
- 'dd': 'дзень_дні_дзён',
25
- 'MM': 'месяц_месяцы_месяцаў',
26
- 'yy': 'год_гады_гадоў'
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
- var be = moment.defineLocale('be', {
40
- months : {
41
- format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
42
- standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
35
+ export default moment.defineLocale('be', {
36
+ months: {
37
+ format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(
38
+ '_'
39
+ ),
40
+ standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(
41
+ '_'
42
+ ),
43
43
  },
44
- monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
45
- weekdays : {
46
- format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
47
- standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
48
- isFormat: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/
44
+ monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split(
45
+ '_'
46
+ ),
47
+ weekdays: {
48
+ format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(
49
+ '_'
50
+ ),
51
+ standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(
52
+ '_'
53
+ ),
54
+ isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/,
49
55
  },
50
- weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
51
- weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
52
- longDateFormat : {
53
- LT : 'HH:mm',
54
- LTS : 'HH:mm:ss',
55
- L : 'DD.MM.YYYY',
56
- LL : 'D MMMM YYYY г.',
57
- LLL : 'D MMMM YYYY г., HH:mm',
58
- LLLL : 'dddd, D MMMM YYYY г., HH:mm'
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 : 'праз %s',
84
- past : '%s таму',
85
- s : 'некалькі секунд',
86
- m : relativeTimeWithPlural,
87
- mm : relativeTimeWithPlural,
88
- h : relativeTimeWithPlural,
89
- hh : relativeTimeWithPlural,
90
- d : 'дзень',
91
- dd : relativeTimeWithPlural,
92
- M : 'месяц',
93
- MM : relativeTimeWithPlural,
94
- y : 'год',
95
- yy : relativeTimeWithPlural
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 : function (input) {
104
+ isPM: function (input) {
99
105
  return /^(дня|вечара)$/.test(input);
100
106
  },
101
- meridiem : function (hour, minute, isLower) {
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) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
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 : 1, // Monday is the first day of the week.
129
- doy : 7 // The week that contains Jan 1st is the first week of the year.
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
- })));