momentjs-rails 2.29.1 → 2.29.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1g/1giZXIzjQTIHLJ30if0Cxp6LHLNLyLvCt66HPyr7S9Q.cache +0 -0
  5. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/4l/4laR_NL9p0jWaBh-kVGkzBwhRp0MzmdAkBI_mccpvxQ.cache +2 -0
  6. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5A/5ACbsliWc2erDYoI0QUGjRXJIXW_JRiuIjLhVhIZc88.cache +0 -0
  7. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5h/5h-ruujSKgsZz79GwDnzkAalkJoWGzpepGc2xuQDVsA.cache +1 -0
  8. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5q/5qkRnQf0206eJO9YiwkpxUs7yZ4f50rNMuCFJaryc0c.cache +2 -0
  9. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8Z/8ZS9j7aGFdwDIFga-3KoPCkVogPmZ-NekN5uBOSE5QU.cache +3 -0
  10. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8e/8eQxu2zgyp7bsTrrVsa4QKmGNNNJ5YVMc2HsybmUamg.cache +1 -0
  11. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ai/AiuMstvaIxiBhMWFk2cj5HVrvdG-c98_PaheKtkPYj0.cache +1 -0
  12. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/IN/INM03spFgth_-zzNy3cfUv3ATbaBRjFWWj1kGQYmcTA.cache +1 -0
  13. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/MY/MYzGrw0IXUX2kX7p7ewfG8d7UsRV5X17R5hdQq8CTZI.cache +3 -0
  14. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Yw/YwG9q2kyDHA7PseIrAE66Qe2IFNrhUtDbdgulyvgEfI.cache +0 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/fw/fwDh4S50V5wK-MsABSBJ2ghx6XKATSRASedKP69FwnA.cache +0 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/lw/lwVIcNwb-0tSyXePavJPzb_NJwTR5_Y-qNk_rkqyfLY.cache +1 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wq/wqYc1aiYr9phcM5WCWD3P8qxwERbfkuO8u-ZrsLaiPI.cache +1 -0
  18. data/vendor/assets/javascripts/moment/af.js +77 -66
  19. data/vendor/assets/javascripts/moment/ar-dz.js +156 -145
  20. data/vendor/assets/javascripts/moment/ar-kw.js +60 -49
  21. data/vendor/assets/javascripts/moment/ar-ly.js +175 -164
  22. data/vendor/assets/javascripts/moment/ar-ma.js +60 -49
  23. data/vendor/assets/javascripts/moment/ar-sa.js +109 -98
  24. data/vendor/assets/javascripts/moment/ar-tn.js +60 -49
  25. data/vendor/assets/javascripts/moment/ar.js +191 -180
  26. data/vendor/assets/javascripts/moment/az.js +106 -95
  27. data/vendor/assets/javascripts/moment/be.js +138 -127
  28. data/vendor/assets/javascripts/moment/bg.js +91 -80
  29. data/vendor/assets/javascripts/moment/bm.js +57 -47
  30. data/vendor/assets/javascripts/moment/bn-bd.js +131 -120
  31. data/vendor/assets/javascripts/moment/bn.js +123 -112
  32. data/vendor/assets/javascripts/moment/bo.js +127 -116
  33. data/vendor/assets/javascripts/moment/br.js +162 -151
  34. data/vendor/assets/javascripts/moment/bs.js +150 -139
  35. data/vendor/assets/javascripts/moment/ca.js +94 -83
  36. data/vendor/assets/javascripts/moment/cs.js +172 -161
  37. data/vendor/assets/javascripts/moment/cv.js +67 -56
  38. data/vendor/assets/javascripts/moment/cy.js +101 -90
  39. data/vendor/assets/javascripts/moment/da.js +59 -48
  40. data/vendor/assets/javascripts/moment/de-at.js +81 -70
  41. data/vendor/assets/javascripts/moment/de-ch.js +80 -71
  42. data/vendor/assets/javascripts/moment/de.js +81 -70
  43. data/vendor/assets/javascripts/moment/dv.js +95 -84
  44. data/vendor/assets/javascripts/moment/el.js +107 -96
  45. data/vendor/assets/javascripts/moment/en-au.js +74 -63
  46. data/vendor/assets/javascripts/moment/en-ca.js +70 -59
  47. data/vendor/assets/javascripts/moment/en-gb.js +74 -63
  48. data/vendor/assets/javascripts/moment/en-ie.js +74 -63
  49. data/vendor/assets/javascripts/moment/en-il.js +70 -59
  50. data/vendor/assets/javascripts/moment/en-in.js +74 -63
  51. data/vendor/assets/javascripts/moment/en-nz.js +74 -63
  52. data/vendor/assets/javascripts/moment/en-sg.js +74 -63
  53. data/vendor/assets/javascripts/moment/eo.js +71 -60
  54. data/vendor/assets/javascripts/moment/es-do.js +105 -94
  55. data/vendor/assets/javascripts/moment/es-mx.js +106 -95
  56. data/vendor/assets/javascripts/moment/es-us.js +105 -94
  57. data/vendor/assets/javascripts/moment/es.js +106 -95
  58. data/vendor/assets/javascripts/moment/et.js +81 -70
  59. data/vendor/assets/javascripts/moment/eu.js +69 -58
  60. data/vendor/assets/javascripts/moment/fa.js +115 -104
  61. data/vendor/assets/javascripts/moment/fi.js +125 -114
  62. data/vendor/assets/javascripts/moment/fil.js +63 -52
  63. data/vendor/assets/javascripts/moment/fo.js +61 -50
  64. data/vendor/assets/javascripts/moment/fr-ca.js +74 -63
  65. data/vendor/assets/javascripts/moment/fr-ch.js +78 -67
  66. data/vendor/assets/javascripts/moment/fr.js +107 -96
  67. data/vendor/assets/javascripts/moment/fy.js +81 -70
  68. data/vendor/assets/javascripts/moment/ga.js +100 -89
  69. data/vendor/assets/javascripts/moment/gd.js +100 -89
  70. data/vendor/assets/javascripts/moment/gl.js +76 -65
  71. data/vendor/assets/javascripts/moment/gom-deva.js +127 -116
  72. data/vendor/assets/javascripts/moment/gom-latn.js +127 -116
  73. data/vendor/assets/javascripts/moment/gu.js +126 -115
  74. data/vendor/assets/javascripts/moment/he.js +93 -82
  75. data/vendor/assets/javascripts/moment/hi.js +161 -150
  76. data/vendor/assets/javascripts/moment/hr.js +152 -141
  77. data/vendor/assets/javascripts/moment/hu.js +119 -108
  78. data/vendor/assets/javascripts/moment/hy-am.js +94 -83
  79. data/vendor/assets/javascripts/moment/id.js +81 -70
  80. data/vendor/assets/javascripts/moment/is.js +137 -126
  81. data/vendor/assets/javascripts/moment/it-ch.js +68 -57
  82. data/vendor/assets/javascripts/moment/it.js +106 -95
  83. data/vendor/assets/javascripts/moment/ja.js +146 -135
  84. data/vendor/assets/javascripts/moment/jv.js +81 -70
  85. data/vendor/assets/javascripts/moment/ka.js +92 -81
  86. data/vendor/assets/javascripts/moment/kk.js +87 -76
  87. data/vendor/assets/javascripts/moment/km.js +107 -96
  88. data/vendor/assets/javascripts/moment/kn.js +128 -117
  89. data/vendor/assets/javascripts/moment/ko.js +80 -69
  90. data/vendor/assets/javascripts/moment/ku.js +123 -112
  91. data/vendor/assets/javascripts/moment/ky.js +89 -78
  92. data/vendor/assets/javascripts/moment/lb.js +132 -121
  93. data/vendor/assets/javascripts/moment/lo.js +71 -60
  94. data/vendor/assets/javascripts/moment/lt.js +125 -114
  95. data/vendor/assets/javascripts/moment/lv.js +96 -85
  96. data/vendor/assets/javascripts/moment/me.js +120 -109
  97. data/vendor/assets/javascripts/moment/mi.js +65 -54
  98. data/vendor/assets/javascripts/moment/mk.js +90 -78
  99. data/vendor/assets/javascripts/moment/ml.js +86 -75
  100. data/vendor/assets/javascripts/moment/mn.js +100 -89
  101. data/vendor/assets/javascripts/moment/mr.js +203 -192
  102. data/vendor/assets/javascripts/moment/ms-my.js +81 -70
  103. data/vendor/assets/javascripts/moment/ms.js +81 -70
  104. data/vendor/assets/javascripts/moment/mt.js +61 -50
  105. data/vendor/assets/javascripts/moment/my.js +93 -82
  106. data/vendor/assets/javascripts/moment/nb.js +65 -54
  107. data/vendor/assets/javascripts/moment/ne.js +125 -114
  108. data/vendor/assets/javascripts/moment/nl-be.js +103 -92
  109. data/vendor/assets/javascripts/moment/nl.js +105 -94
  110. data/vendor/assets/javascripts/moment/nn.js +65 -54
  111. data/vendor/assets/javascripts/moment/oc-lnc.js +85 -74
  112. data/vendor/assets/javascripts/moment/pa-in.js +126 -115
  113. data/vendor/assets/javascripts/moment/pl.js +137 -126
  114. data/vendor/assets/javascripts/moment/pt-br.js +62 -51
  115. data/vendor/assets/javascripts/moment/pt.js +67 -56
  116. data/vendor/assets/javascripts/moment/ro.js +77 -66
  117. data/vendor/assets/javascripts/moment/ru.js +197 -186
  118. data/vendor/assets/javascripts/moment/sd.js +86 -75
  119. data/vendor/assets/javascripts/moment/se.js +63 -52
  120. data/vendor/assets/javascripts/moment/si.js +74 -63
  121. data/vendor/assets/javascripts/moment/sk.js +145 -134
  122. data/vendor/assets/javascripts/moment/sl.js +171 -160
  123. data/vendor/assets/javascripts/moment/sq.js +69 -58
  124. data/vendor/assets/javascripts/moment/sr-cyrl.js +117 -106
  125. data/vendor/assets/javascripts/moment/sr.js +119 -108
  126. data/vendor/assets/javascripts/moment/ss.js +88 -77
  127. data/vendor/assets/javascripts/moment/sv.js +74 -63
  128. data/vendor/assets/javascripts/moment/sw.js +60 -49
  129. data/vendor/assets/javascripts/moment/ta.js +134 -123
  130. data/vendor/assets/javascripts/moment/te.js +92 -81
  131. data/vendor/assets/javascripts/moment/tet.js +72 -61
  132. data/vendor/assets/javascripts/moment/tg.js +119 -108
  133. data/vendor/assets/javascripts/moment/th.js +70 -59
  134. data/vendor/assets/javascripts/moment/tk.js +96 -85
  135. data/vendor/assets/javascripts/moment/tl-ph.js +63 -52
  136. data/vendor/assets/javascripts/moment/tlh.js +123 -112
  137. data/vendor/assets/javascripts/moment/tr.js +110 -99
  138. data/vendor/assets/javascripts/moment/tzl.js +93 -82
  139. data/vendor/assets/javascripts/moment/tzm-latn.js +59 -48
  140. data/vendor/assets/javascripts/moment/tzm.js +59 -48
  141. data/vendor/assets/javascripts/moment/ug-cn.js +115 -104
  142. data/vendor/assets/javascripts/moment/uk.js +158 -147
  143. data/vendor/assets/javascripts/moment/ur.js +86 -75
  144. data/vendor/assets/javascripts/moment/uz-latn.js +59 -48
  145. data/vendor/assets/javascripts/moment/uz.js +57 -46
  146. data/vendor/assets/javascripts/moment/vi.js +84 -73
  147. data/vendor/assets/javascripts/moment/x-pseudo.js +77 -66
  148. data/vendor/assets/javascripts/moment/yo.js +59 -48
  149. data/vendor/assets/javascripts/moment/zh-cn.js +118 -107
  150. data/vendor/assets/javascripts/moment/zh-hk.js +104 -93
  151. data/vendor/assets/javascripts/moment/zh-mo.js +104 -93
  152. data/vendor/assets/javascripts/moment/zh-tw.js +104 -93
  153. data/vendor/assets/javascripts/moment.js +4961 -4953
  154. metadata +30 -2
@@ -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,111 @@
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: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(
41
+ '_'
42
+ ),
43
+ weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
44
+ weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
45
+ weekdaysParseExact: true,
46
+ longDateFormat: {
47
+ LT: 'HH:mm',
48
+ LTS: 'HH:mm:ss',
49
+ L: 'DD.MM.YYYY',
50
+ LL: 'D MMMM YYYY',
51
+ LLL: 'D MMMM YYYY HH:mm',
52
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
53
+ },
54
+ calendar: {
55
+ sameDay: '[bugün saat] LT',
56
+ nextDay: '[sabah saat] LT',
57
+ nextWeek: '[gələn həftə] dddd [saat] LT',
58
+ lastDay: '[dünən] LT',
59
+ lastWeek: '[keçən həftə] dddd [saat] LT',
60
+ sameElse: 'L',
61
+ },
62
+ relativeTime: {
63
+ future: '%s sonra',
64
+ past: '%s əvvəl',
65
+ s: 'bir neçə saniyə',
66
+ ss: '%d saniyə',
67
+ m: 'bir dəqiqə',
68
+ mm: '%d dəqiqə',
69
+ h: 'bir saat',
70
+ hh: '%d saat',
71
+ d: 'bir gün',
72
+ dd: '%d gün',
73
+ M: 'bir ay',
74
+ MM: '%d ay',
75
+ y: 'bir il',
76
+ yy: '%d il',
77
+ },
78
+ meridiemParse: /gecə|səhər|gündüz|axşam/,
79
+ isPM: function (input) {
80
+ return /^(gündüz|axşam)$/.test(input);
81
+ },
82
+ meridiem: function (hour, minute, isLower) {
83
+ if (hour < 4) {
84
+ return 'gecə';
85
+ } else if (hour < 12) {
86
+ return 'səhər';
87
+ } else if (hour < 17) {
88
+ return 'gündüz';
89
+ } else {
90
+ return 'axşam';
91
+ }
92
+ },
93
+ dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
94
+ ordinal: function (number) {
95
+ if (number === 0) {
96
+ // special case for zero
97
+ return number + '-ıncı';
98
+ }
99
+ var a = number % 10,
100
+ b = (number % 100) - a,
101
+ c = number >= 100 ? 100 : null;
102
+ return number + (suffixes[a] || suffixes[b] || suffixes[c]);
103
+ },
104
+ week: {
105
+ dow: 1, // Monday is the first day of the week.
106
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
107
+ },
108
+ });
109
+
110
+ return az;
111
+
112
+ })));