@nocobase/plugin-backup-restore 2.2.20 → 2.2.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/dist/externalVersion.js +5 -5
  2. package/dist/node_modules/@hapi/topo/package.json +1 -1
  3. package/dist/node_modules/@xhmikosr/decompress/package.json +1 -1
  4. package/dist/node_modules/archiver/package.json +1 -1
  5. package/dist/node_modules/fs-extra/package.json +1 -1
  6. package/dist/node_modules/moment/LICENSE +1 -1
  7. package/dist/node_modules/moment/dist/locale/am-et.js +62 -0
  8. package/dist/node_modules/moment/dist/locale/ar-dz.js +8 -8
  9. package/dist/node_modules/moment/dist/locale/ar-ly.js +8 -8
  10. package/dist/node_modules/moment/dist/locale/ar-ps.js +112 -0
  11. package/dist/node_modules/moment/dist/locale/ar.js +8 -8
  12. package/dist/node_modules/moment/dist/locale/be.js +2 -2
  13. package/dist/node_modules/moment/dist/locale/bs.js +14 -4
  14. package/dist/node_modules/moment/dist/locale/ca.js +7 -7
  15. package/dist/node_modules/moment/dist/locale/cs.js +5 -4
  16. package/dist/node_modules/moment/dist/locale/cv.js +2 -2
  17. package/dist/node_modules/moment/dist/locale/de-at.js +29 -1
  18. package/dist/node_modules/moment/dist/locale/de-ch.js +29 -1
  19. package/dist/node_modules/moment/dist/locale/de.js +29 -1
  20. package/dist/node_modules/moment/dist/locale/en-au.js +6 -6
  21. package/dist/node_modules/moment/dist/locale/en-ca.js +6 -6
  22. package/dist/node_modules/moment/dist/locale/en-gb.js +6 -6
  23. package/dist/node_modules/moment/dist/locale/en-ie.js +6 -6
  24. package/dist/node_modules/moment/dist/locale/en-il.js +6 -6
  25. package/dist/node_modules/moment/dist/locale/en-in.js +6 -6
  26. package/dist/node_modules/moment/dist/locale/en-nz.js +6 -6
  27. package/dist/node_modules/moment/dist/locale/en-sg.js +6 -6
  28. package/dist/node_modules/moment/dist/locale/hu.js +3 -3
  29. package/dist/node_modules/moment/dist/locale/id.js +12 -1
  30. package/dist/node_modules/moment/dist/locale/it.js +4 -4
  31. package/dist/node_modules/moment/dist/locale/ka.js +1 -1
  32. package/dist/node_modules/moment/dist/locale/ku-kmr.js +121 -0
  33. package/dist/node_modules/moment/dist/locale/lt.js +2 -2
  34. package/dist/node_modules/moment/dist/locale/me.js +2 -2
  35. package/dist/node_modules/moment/dist/locale/nb.js +4 -4
  36. package/dist/node_modules/moment/dist/locale/nl-be.js +2 -2
  37. package/dist/node_modules/moment/dist/locale/nl.js +1 -1
  38. package/dist/node_modules/moment/dist/locale/oc-lnc.js +6 -6
  39. package/dist/node_modules/moment/dist/locale/pl.js +1 -1
  40. package/dist/node_modules/moment/dist/locale/ps.js +177 -0
  41. package/dist/node_modules/moment/dist/locale/pt-br.js +14 -6
  42. package/dist/node_modules/moment/dist/locale/ru.js +2 -2
  43. package/dist/node_modules/moment/dist/locale/sv.js +7 -7
  44. package/dist/node_modules/moment/dist/locale/sw.js +56 -14
  45. package/dist/node_modules/moment/dist/locale/tet.js +6 -6
  46. package/dist/node_modules/moment/dist/locale/tlh.js +8 -8
  47. package/dist/node_modules/moment/dist/locale/tzl.js +2 -2
  48. package/dist/node_modules/moment/dist/locale/uk.js +9 -8
  49. package/dist/node_modules/moment/dist/locale/uz-latn.js +1 -1
  50. package/dist/node_modules/moment/dist/locale/uz.js +1 -1
  51. package/dist/node_modules/moment/dist/locale/x-pseudo.js +6 -6
  52. package/dist/node_modules/moment/dist/moment.js +1274 -1042
  53. package/dist/node_modules/moment/dojo.profile.js +11 -0
  54. package/dist/node_modules/moment/ender.js +1 -1
  55. package/dist/node_modules/moment/locale/am-et.js +73 -0
  56. package/dist/node_modules/moment/locale/ar-dz.js +8 -8
  57. package/dist/node_modules/moment/locale/ar-ly.js +8 -8
  58. package/dist/node_modules/moment/locale/ar-ps.js +123 -0
  59. package/dist/node_modules/moment/locale/ar.js +8 -8
  60. package/dist/node_modules/moment/locale/be.js +2 -2
  61. package/dist/node_modules/moment/locale/bm.js +2 -0
  62. package/dist/node_modules/moment/locale/bs.js +14 -4
  63. package/dist/node_modules/moment/locale/ca.js +7 -7
  64. package/dist/node_modules/moment/locale/cs.js +5 -4
  65. package/dist/node_modules/moment/locale/cv.js +2 -2
  66. package/dist/node_modules/moment/locale/de-at.js +29 -1
  67. package/dist/node_modules/moment/locale/de-ch.js +29 -1
  68. package/dist/node_modules/moment/locale/de.js +29 -1
  69. package/dist/node_modules/moment/locale/en-au.js +6 -6
  70. package/dist/node_modules/moment/locale/en-ca.js +6 -6
  71. package/dist/node_modules/moment/locale/en-gb.js +6 -6
  72. package/dist/node_modules/moment/locale/en-ie.js +6 -6
  73. package/dist/node_modules/moment/locale/en-il.js +6 -6
  74. package/dist/node_modules/moment/locale/en-in.js +6 -6
  75. package/dist/node_modules/moment/locale/en-nz.js +6 -6
  76. package/dist/node_modules/moment/locale/en-sg.js +6 -6
  77. package/dist/node_modules/moment/locale/hu.js +3 -3
  78. package/dist/node_modules/moment/locale/id.js +12 -1
  79. package/dist/node_modules/moment/locale/it.js +4 -4
  80. package/dist/node_modules/moment/locale/ka.js +1 -1
  81. package/dist/node_modules/moment/locale/ku-kmr.js +125 -0
  82. package/dist/node_modules/moment/locale/lt.js +2 -2
  83. package/dist/node_modules/moment/locale/me.js +2 -2
  84. package/dist/node_modules/moment/locale/mk.js +0 -1
  85. package/dist/node_modules/moment/locale/nb.js +4 -4
  86. package/dist/node_modules/moment/locale/nl-be.js +2 -2
  87. package/dist/node_modules/moment/locale/nl.js +1 -1
  88. package/dist/node_modules/moment/locale/oc-lnc.js +6 -6
  89. package/dist/node_modules/moment/locale/pl.js +1 -1
  90. package/dist/node_modules/moment/locale/ps.js +188 -0
  91. package/dist/node_modules/moment/locale/pt-br.js +14 -6
  92. package/dist/node_modules/moment/locale/ru.js +2 -2
  93. package/dist/node_modules/moment/locale/sv.js +7 -7
  94. package/dist/node_modules/moment/locale/sw.js +56 -14
  95. package/dist/node_modules/moment/locale/tet.js +6 -6
  96. package/dist/node_modules/moment/locale/tlh.js +8 -8
  97. package/dist/node_modules/moment/locale/tzl.js +2 -2
  98. package/dist/node_modules/moment/locale/uk.js +9 -8
  99. package/dist/node_modules/moment/locale/uz-latn.js +1 -1
  100. package/dist/node_modules/moment/locale/uz.js +1 -1
  101. package/dist/node_modules/moment/locale/x-pseudo.js +6 -6
  102. package/dist/node_modules/moment/min/locales.js +1380 -771
  103. package/dist/node_modules/moment/min/locales.min.js +211 -1
  104. package/dist/node_modules/moment/min/moment-with-locales.js +2705 -1858
  105. package/dist/node_modules/moment/min/moment-with-locales.min.js +216 -1
  106. package/dist/node_modules/moment/min/moment.min.js +8 -1
  107. package/dist/node_modules/moment/moment.d.ts +2 -0
  108. package/dist/node_modules/moment/moment.js +3 -3
  109. package/dist/node_modules/moment/package.json +1 -1
  110. package/dist/node_modules/moment/src/lib/create/check-overflow.js +15 -15
  111. package/dist/node_modules/moment/src/lib/create/from-array.js +77 -10
  112. package/dist/node_modules/moment/src/lib/create/from-string-and-array.js +2 -0
  113. package/dist/node_modules/moment/src/lib/create/parsing-flags.js +1 -0
  114. package/dist/node_modules/moment/src/lib/create/valid.js +25 -24
  115. package/dist/node_modules/moment/src/lib/duration/as.js +3 -15
  116. package/dist/node_modules/moment/src/lib/duration/bubble.js +4 -6
  117. package/dist/node_modules/moment/src/lib/duration/humanize.js +14 -3
  118. package/dist/node_modules/moment/src/lib/format/format.js +7 -4
  119. package/dist/node_modules/moment/src/lib/locale/en.js +6 -6
  120. package/dist/node_modules/moment/src/lib/locale/formats.js +19 -3
  121. package/dist/node_modules/moment/src/lib/locale/locales.js +33 -13
  122. package/dist/node_modules/moment/src/lib/locale/relative.js +25 -2
  123. package/dist/node_modules/moment/src/lib/locale/set.js +4 -0
  124. package/dist/node_modules/moment/src/lib/moment/calendar.js +10 -10
  125. package/dist/node_modules/moment/src/lib/moment/get-set.js +66 -22
  126. package/dist/node_modules/moment/src/lib/moment/min-max.js +15 -3
  127. package/dist/node_modules/moment/src/lib/parse/regex.js +4 -0
  128. package/dist/node_modules/moment/src/lib/units/aliases.js +50 -6
  129. package/dist/node_modules/moment/src/lib/units/day-of-month.js +7 -11
  130. package/dist/node_modules/moment/src/lib/units/day-of-week.js +52 -21
  131. package/dist/node_modules/moment/src/lib/units/day-of-year.js +0 -9
  132. package/dist/node_modules/moment/src/lib/units/era.js +13 -7
  133. package/dist/node_modules/moment/src/lib/units/hour.js +5 -12
  134. package/dist/node_modules/moment/src/lib/units/millisecond.js +0 -10
  135. package/dist/node_modules/moment/src/lib/units/minute.js +7 -12
  136. package/dist/node_modules/moment/src/lib/units/month.js +38 -28
  137. package/dist/node_modules/moment/src/lib/units/offset.js +13 -1
  138. package/dist/node_modules/moment/src/lib/units/priorities.js +18 -5
  139. package/dist/node_modules/moment/src/lib/units/quarter.js +0 -10
  140. package/dist/node_modules/moment/src/lib/units/second.js +7 -12
  141. package/dist/node_modules/moment/src/lib/units/week-calendar-utils.js +22 -8
  142. package/dist/node_modules/moment/src/lib/units/week-year.js +1 -11
  143. package/dist/node_modules/moment/src/lib/units/week.js +8 -15
  144. package/dist/node_modules/moment/src/lib/units/year.js +0 -10
  145. package/dist/node_modules/moment/src/lib/utils/deprecate.js +1 -1
  146. package/dist/node_modules/moment/src/locale/am-et.js +62 -0
  147. package/dist/node_modules/moment/src/locale/ar-dz.js +8 -8
  148. package/dist/node_modules/moment/src/locale/ar-ly.js +8 -8
  149. package/dist/node_modules/moment/src/locale/ar-ps.js +112 -0
  150. package/dist/node_modules/moment/src/locale/ar.js +8 -8
  151. package/dist/node_modules/moment/src/locale/be.js +2 -2
  152. package/dist/node_modules/moment/src/locale/bs.js +14 -4
  153. package/dist/node_modules/moment/src/locale/ca.js +7 -7
  154. package/dist/node_modules/moment/src/locale/cs.js +5 -4
  155. package/dist/node_modules/moment/src/locale/cv.js +2 -2
  156. package/dist/node_modules/moment/src/locale/de-at.js +29 -1
  157. package/dist/node_modules/moment/src/locale/de-ch.js +29 -1
  158. package/dist/node_modules/moment/src/locale/de.js +29 -1
  159. package/dist/node_modules/moment/src/locale/en-au.js +6 -6
  160. package/dist/node_modules/moment/src/locale/en-ca.js +6 -6
  161. package/dist/node_modules/moment/src/locale/en-gb.js +6 -6
  162. package/dist/node_modules/moment/src/locale/en-ie.js +6 -6
  163. package/dist/node_modules/moment/src/locale/en-il.js +6 -6
  164. package/dist/node_modules/moment/src/locale/en-in.js +6 -6
  165. package/dist/node_modules/moment/src/locale/en-nz.js +6 -6
  166. package/dist/node_modules/moment/src/locale/en-sg.js +6 -6
  167. package/dist/node_modules/moment/src/locale/hu.js +3 -3
  168. package/dist/node_modules/moment/src/locale/id.js +12 -1
  169. package/dist/node_modules/moment/src/locale/it.js +4 -4
  170. package/dist/node_modules/moment/src/locale/ka.js +1 -1
  171. package/dist/node_modules/moment/src/locale/ku-kmr.js +121 -0
  172. package/dist/node_modules/moment/src/locale/lt.js +2 -2
  173. package/dist/node_modules/moment/src/locale/me.js +2 -2
  174. package/dist/node_modules/moment/src/locale/nb.js +4 -4
  175. package/dist/node_modules/moment/src/locale/nl-be.js +2 -2
  176. package/dist/node_modules/moment/src/locale/nl.js +1 -1
  177. package/dist/node_modules/moment/src/locale/oc-lnc.js +6 -6
  178. package/dist/node_modules/moment/src/locale/pl.js +1 -1
  179. package/dist/node_modules/moment/src/locale/ps.js +177 -0
  180. package/dist/node_modules/moment/src/locale/pt-br.js +14 -6
  181. package/dist/node_modules/moment/src/locale/ru.js +2 -2
  182. package/dist/node_modules/moment/src/locale/sv.js +7 -7
  183. package/dist/node_modules/moment/src/locale/sw.js +56 -14
  184. package/dist/node_modules/moment/src/locale/tet.js +6 -6
  185. package/dist/node_modules/moment/src/locale/tlh.js +8 -8
  186. package/dist/node_modules/moment/src/locale/tzl.js +2 -2
  187. package/dist/node_modules/moment/src/locale/uk.js +9 -8
  188. package/dist/node_modules/moment/src/locale/uz-latn.js +1 -1
  189. package/dist/node_modules/moment/src/locale/uz.js +1 -1
  190. package/dist/node_modules/moment/src/locale/x-pseudo.js +6 -6
  191. package/dist/node_modules/moment/src/moment.js +2 -2
  192. package/dist/node_modules/moment/ts3.1-typings/moment.d.ts +258 -78
  193. package/dist/node_modules/semver/package.json +1 -1
  194. package/package.json +2 -2
  195. package/dist/node_modules/moment/package.js +0 -11
@@ -0,0 +1,11 @@
1
+ var profile = {
2
+ resourceTags: {
3
+ ignore: function (filename, mid) {
4
+ // only include moment/moment
5
+ return mid != 'moment/moment';
6
+ },
7
+ amd: function (filename, mid) {
8
+ return /\.js$/.test(filename);
9
+ },
10
+ },
11
+ };
@@ -1 +1 @@
1
- $.ender({ moment: require('moment') })
1
+ $.ender({ moment: require('moment') });
@@ -0,0 +1,73 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Amharic (Ethiopia) [am-et]
3
+ //! author : Tekle Ayele : https://github.com/tekleayele
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
+
12
+ //! moment.js locale configuration
13
+
14
+ var amEt = moment.defineLocale('am-et', {
15
+ months: 'ጃንዩወሪ_ፌብሩወሪ_ማርች_ኤፕሪል_ሜይ_ጁን_ጁላይ_ኦገስት_ሴፕቴምበር_ኦክቶበር_ኖቬምበር_ዲሴምበር'.split(
16
+ '_'
17
+ ),
18
+ monthsShort: 'ጃን_ፌብ_ማር_ኤፕር_ሜይ_ጁን_ጁላይ_ኦገ_ሴፕ_ኦክቶ_ኖቬ_ዲሴ'.split('_'),
19
+ weekdays: 'እሑድ_ሰኞ_ማክሰኞ_እሮብ_ሀሙስ_ዓርብ_ቅዳሜ'.split('_'),
20
+ weekdaysShort: 'እሑ_ሰኞ_ማክ_እሮ_ሀሙ_ዓር_ቅዳ'.split('_'),
21
+ weekdaysMin: 'እሁ_ሰ_ማ_እ_ሀ_ዓ_ቅ'.split('_'),
22
+ meridiemParse: /ጥዋት|ከሰዓት/,
23
+ isPM: function (input) {
24
+ return input === 'ከሰዓት';
25
+ },
26
+ meridiem: function (hours) {
27
+ return hours < 12 ? 'ጥዋት' : 'ከሰዓት';
28
+ },
29
+ longDateFormat: {
30
+ LT: 'h:mm A',
31
+ LTS: 'h:mm:ss A',
32
+ L: 'DD/MM/YYYY',
33
+ LL: 'D MMMM YYYY',
34
+ LLL: 'D MMMM YYYY h:mm A',
35
+ LLLL: 'dddd, D MMMM YYYY h:mm A',
36
+ },
37
+ calendar: {
38
+ sameDay: '[ዛሬ በ] LT',
39
+ nextDay: '[ነገ በ] LT',
40
+ nextWeek: 'dddd [በ] LT',
41
+ lastDay: '[ትናንትና በ] LT',
42
+ lastWeek: '[ያለፈው ሳምንት] dddd [በ] LT',
43
+ sameElse: 'L',
44
+ },
45
+ relativeTime: {
46
+ future: '%s ውስጥ',
47
+ past: '%s በፊት',
48
+ s: 'ጥቂት ሰከንዶች',
49
+ ss: '%d ሰከንዶች',
50
+ m: 'አንድ ደቂቃ',
51
+ mm: '%d ደቂቃዎች',
52
+ h: 'አንድ ሰአት',
53
+ hh: '%d ሰአታት',
54
+ d: 'አንድ ቀን',
55
+ dd: '%d ቀናት',
56
+ M: 'አንድ ወር',
57
+ MM: '%d ወራት',
58
+ y: 'አንድ ዓመት',
59
+ yy: '%d ዓመታት',
60
+ },
61
+ dayOfMonthOrdinalParse: /\d{1,2}(ኛ)/,
62
+ ordinal: function (number) {
63
+ return number + 'ኛ';
64
+ },
65
+ week: {
66
+ dow: 0, // Sunday is the first day of the week.
67
+ doy: 6, // The week that contains Jan 1st is the first week of the year.
68
+ },
69
+ });
70
+
71
+ return amEt;
72
+
73
+ })));
@@ -19,14 +19,14 @@
19
19
  return n === 0
20
20
  ? 0
21
21
  : n === 1
22
- ? 1
23
- : n === 2
24
- ? 2
25
- : n % 100 >= 3 && n % 100 <= 10
26
- ? 3
27
- : n % 100 >= 11
28
- ? 4
29
- : 5;
22
+ ? 1
23
+ : n === 2
24
+ ? 2
25
+ : n % 100 >= 3 && n % 100 <= 10
26
+ ? 3
27
+ : n % 100 >= 11
28
+ ? 4
29
+ : 5;
30
30
  },
31
31
  plurals = {
32
32
  s: [
@@ -27,14 +27,14 @@
27
27
  return n === 0
28
28
  ? 0
29
29
  : n === 1
30
- ? 1
31
- : n === 2
32
- ? 2
33
- : n % 100 >= 3 && n % 100 <= 10
34
- ? 3
35
- : n % 100 >= 11
36
- ? 4
37
- : 5;
30
+ ? 1
31
+ : n === 2
32
+ ? 2
33
+ : n % 100 >= 3 && n % 100 <= 10
34
+ ? 3
35
+ : n % 100 >= 11
36
+ ? 4
37
+ : 5;
38
38
  },
39
39
  plurals = {
40
40
  s: [
@@ -0,0 +1,123 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Arabic (Palestine) [ar-ps]
3
+ //! author : Majd Al-Shihabi : https://github.com/majdal
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
+
12
+ //! moment.js locale configuration
13
+
14
+ var symbolMap = {
15
+ 1: '١',
16
+ 2: '٢',
17
+ 3: '٣',
18
+ 4: '٤',
19
+ 5: '٥',
20
+ 6: '٦',
21
+ 7: '٧',
22
+ 8: '٨',
23
+ 9: '٩',
24
+ 0: '٠',
25
+ },
26
+ numberMap = {
27
+ '١': '1',
28
+ '٢': '2',
29
+ '٣': '3',
30
+ '٤': '4',
31
+ '٥': '5',
32
+ '٦': '6',
33
+ '٧': '7',
34
+ '٨': '8',
35
+ '٩': '9',
36
+ '٠': '0',
37
+ };
38
+
39
+ var arPs = moment.defineLocale('ar-ps', {
40
+ months: 'كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل'.split(
41
+ '_'
42
+ ),
43
+ monthsShort:
44
+ 'ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١'.split('_'),
45
+ weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
46
+ weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
47
+ weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
48
+ weekdaysParseExact: true,
49
+ longDateFormat: {
50
+ LT: 'HH:mm',
51
+ LTS: 'HH:mm:ss',
52
+ L: 'DD/MM/YYYY',
53
+ LL: 'D MMMM YYYY',
54
+ LLL: 'D MMMM YYYY HH:mm',
55
+ LLLL: 'dddd D MMMM YYYY HH:mm',
56
+ },
57
+ meridiemParse: /ص|م/,
58
+ isPM: function (input) {
59
+ return 'م' === input;
60
+ },
61
+ meridiem: function (hour, minute, isLower) {
62
+ if (hour < 12) {
63
+ return 'ص';
64
+ } else {
65
+ return 'م';
66
+ }
67
+ },
68
+ calendar: {
69
+ sameDay: '[اليوم على الساعة] LT',
70
+ nextDay: '[غدا على الساعة] LT',
71
+ nextWeek: 'dddd [على الساعة] LT',
72
+ lastDay: '[أمس على الساعة] LT',
73
+ lastWeek: 'dddd [على الساعة] LT',
74
+ sameElse: 'L',
75
+ },
76
+ relativeTime: {
77
+ future: 'في %s',
78
+ past: 'منذ %s',
79
+ s: 'ثوان',
80
+ ss: '%d ثانية',
81
+ m: 'دقيقة',
82
+ mm: '%d دقائق',
83
+ h: 'ساعة',
84
+ hh: '%d ساعات',
85
+ d: 'يوم',
86
+ dd: '%d أيام',
87
+ M: 'شهر',
88
+ MM: '%d أشهر',
89
+ y: 'سنة',
90
+ yy: '%d سنوات',
91
+ },
92
+ preparse: function (string) {
93
+ return string
94
+ .replace(/[٣٤٥٦٧٨٩٠]/g, function (match) {
95
+ return numberMap[match];
96
+ })
97
+ .split('') // reversed since negative lookbehind not supported everywhere
98
+ .reverse()
99
+ .join('')
100
+ .replace(/[١٢](?![\u062a\u0643])/g, function (match) {
101
+ return numberMap[match];
102
+ })
103
+ .split('')
104
+ .reverse()
105
+ .join('')
106
+ .replace(/،/g, ',');
107
+ },
108
+ postformat: function (string) {
109
+ return string
110
+ .replace(/\d/g, function (match) {
111
+ return symbolMap[match];
112
+ })
113
+ .replace(/,/g, '،');
114
+ },
115
+ week: {
116
+ dow: 0, // Sunday is the first day of the week.
117
+ doy: 6, // The week that contains Jan 6th is the first week of the year.
118
+ },
119
+ });
120
+
121
+ return arPs;
122
+
123
+ })));
@@ -41,14 +41,14 @@
41
41
  return n === 0
42
42
  ? 0
43
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;
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
52
  },
53
53
  plurals = {
54
54
  s: [
@@ -18,8 +18,8 @@
18
18
  return num % 10 === 1 && num % 100 !== 11
19
19
  ? forms[0]
20
20
  : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
21
- ? forms[1]
22
- : forms[2];
21
+ ? forms[1]
22
+ : forms[2];
23
23
  }
24
24
  function relativeTimeWithPlural(number, withoutSuffix, key) {
25
25
  var format = {
@@ -10,6 +10,8 @@
10
10
  }(this, (function (moment) { 'use strict';
11
11
 
12
12
  //! moment.js locale configuration
13
+ // Language contact person : Abdoufata Kane : https://github.com/abdoufata
14
+
13
15
 
14
16
  var bm = moment.defineLocale('bm', {
15
17
  months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(
@@ -1,6 +1,7 @@
1
1
  //! moment.js locale configuration
2
2
  //! locale : Bosnian [bs]
3
3
  //! author : Nedim Cholich : https://github.com/frontyard
4
+ //! author : Rasid Redzic : https://github.com/rasidre
4
5
  //! based on (hr) translation by Bojan Marković
5
6
 
6
7
  ;(function (global, factory) {
@@ -12,6 +13,17 @@
12
13
 
13
14
  //! moment.js locale configuration
14
15
 
16
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
17
+ switch (key) {
18
+ case 'm':
19
+ return withoutSuffix
20
+ ? 'jedna minuta'
21
+ : isFuture
22
+ ? 'jednu minutu'
23
+ : 'jedne minute';
24
+ }
25
+ }
26
+
15
27
  function translate(number, withoutSuffix, key) {
16
28
  var result = number + ' ';
17
29
  switch (key) {
@@ -24,8 +36,6 @@
24
36
  result += 'sekundi';
25
37
  }
26
38
  return result;
27
- case 'm':
28
- return withoutSuffix ? 'jedna minuta' : 'jedne minute';
29
39
  case 'mm':
30
40
  if (number === 1) {
31
41
  result += 'minuta';
@@ -36,7 +46,7 @@
36
46
  }
37
47
  return result;
38
48
  case 'h':
39
- return withoutSuffix ? 'jedan sat' : 'jednog sata';
49
+ return withoutSuffix ? 'jedan sat' : 'jedan sat';
40
50
  case 'hh':
41
51
  if (number === 1) {
42
52
  result += 'sat';
@@ -137,7 +147,7 @@
137
147
  past: 'prije %s',
138
148
  s: 'par sekundi',
139
149
  ss: translate,
140
- m: translate,
150
+ m: processRelativeTime,
141
151
  mm: translate,
142
152
  h: translate,
143
153
  hh: translate,
@@ -17,7 +17,7 @@
17
17
  'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
18
18
  '_'
19
19
  ),
20
- format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split(
20
+ format: 'de gener_de febrer_de març_d’abril_de maig_de juny_de juliol_d’agost_de setembre_d’octubre_de novembre_de desembre'.split(
21
21
  '_'
22
22
  ),
23
23
  isFormat: /D[oD]?(\s)+MMMM/,
@@ -89,12 +89,12 @@
89
89
  number === 1
90
90
  ? 'r'
91
91
  : number === 2
92
- ? 'n'
93
- : number === 3
94
- ? 'r'
95
- : number === 4
96
- ? 't'
97
- : 'è';
92
+ ? 'n'
93
+ : number === 3
94
+ ? 'r'
95
+ : number === 4
96
+ ? 't'
97
+ : 'è';
98
98
  if (period === 'w' || period === 'W') {
99
99
  output = 'a';
100
100
  }
@@ -12,13 +12,14 @@
12
12
  //! moment.js locale configuration
13
13
 
14
14
  var months = {
15
- format: 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
16
- '_'
17
- ),
18
15
  standalone:
19
- 'ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince'.split(
16
+ 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
20
17
  '_'
21
18
  ),
19
+ format: 'ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince'.split(
20
+ '_'
21
+ ),
22
+ isFormat: /DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/,
22
23
  },
23
24
  monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
24
25
  monthsParse = [
@@ -43,8 +43,8 @@
43
43
  var affix = /сехет$/i.exec(output)
44
44
  ? 'рен'
45
45
  : /ҫул$/i.exec(output)
46
- ? 'тан'
47
- : 'ран';
46
+ ? 'тан'
47
+ : 'ран';
48
48
  return output + affix;
49
49
  },
50
50
  past: '%s каялла',
@@ -14,6 +14,23 @@
14
14
 
15
15
  //! moment.js locale configuration
16
16
 
17
+ var monthsParse = [
18
+ /^jän/i,
19
+ /^feb/i,
20
+ /^mär/i,
21
+ /^apr/i,
22
+ /^mai/i,
23
+ /^jun/i,
24
+ /^jul/i,
25
+ /^aug/i,
26
+ /^sep/i,
27
+ /^okt/i,
28
+ /^nov/i,
29
+ /^dez/i,
30
+ ],
31
+ monthsRegex =
32
+ /^(Jänner|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember|Jän\.?|Feb\.?|Mär\.?|Apr\.?|Jun\.?|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i;
33
+
17
34
  function processRelativeTime(number, withoutSuffix, key, isFuture) {
18
35
  var format = {
19
36
  m: ['eine Minute', 'einer Minute'],
@@ -35,7 +52,18 @@
35
52
  ),
36
53
  monthsShort:
37
54
  'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
38
- monthsParseExact: true,
55
+
56
+ monthsRegex: monthsRegex,
57
+ monthsShortRegex: monthsRegex,
58
+ monthsStrictRegex:
59
+ /^(Jänner|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember)/i,
60
+ monthsShortStrictRegex:
61
+ /^(Jän\.?|Feb\.?|März|Mär\.?|Apr\.?|Mai|Juni|Jun\.?|Juli|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i,
62
+
63
+ monthsParse: monthsParse,
64
+ longMonthsParse: monthsParse,
65
+ shortMonthsParse: monthsParse,
66
+
39
67
  weekdays:
40
68
  'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
41
69
  '_'
@@ -11,6 +11,23 @@
11
11
 
12
12
  //! moment.js locale configuration
13
13
 
14
+ var monthsParse = [
15
+ /^jan/i,
16
+ /^feb/i,
17
+ /^mär/i,
18
+ /^apr/i,
19
+ /^mai/i,
20
+ /^jun/i,
21
+ /^jul/i,
22
+ /^aug/i,
23
+ /^sep/i,
24
+ /^okt/i,
25
+ /^nov/i,
26
+ /^dez/i,
27
+ ],
28
+ monthsRegex =
29
+ /^(Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember|Jan\.?|Feb\.?|Mär\.?|Apr\.?|Jun\.?|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i;
30
+
14
31
  function processRelativeTime(number, withoutSuffix, key, isFuture) {
15
32
  var format = {
16
33
  m: ['eine Minute', 'einer Minute'],
@@ -32,7 +49,18 @@
32
49
  ),
33
50
  monthsShort:
34
51
  'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
35
- monthsParseExact: true,
52
+
53
+ monthsRegex: monthsRegex,
54
+ monthsShortRegex: monthsRegex,
55
+ monthsStrictRegex:
56
+ /^(Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember)/i,
57
+ monthsShortStrictRegex:
58
+ /^(Jan\.?|Feb\.?|März|Mär\.?|Apr\.?|Mai|Juni|Jun\.?|Juli|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i,
59
+
60
+ monthsParse: monthsParse,
61
+ longMonthsParse: monthsParse,
62
+ shortMonthsParse: monthsParse,
63
+
36
64
  weekdays:
37
65
  'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
38
66
  '_'
@@ -13,6 +13,23 @@
13
13
 
14
14
  //! moment.js locale configuration
15
15
 
16
+ var monthsParse = [
17
+ /^jan/i,
18
+ /^feb/i,
19
+ /^mär/i,
20
+ /^apr/i,
21
+ /^mai/i,
22
+ /^jun/i,
23
+ /^jul/i,
24
+ /^aug/i,
25
+ /^sep/i,
26
+ /^okt/i,
27
+ /^nov/i,
28
+ /^dez/i,
29
+ ],
30
+ monthsRegex =
31
+ /^(Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember|Jan\.?|Feb\.?|Mär\.?|Apr\.?|Jun\.?|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i;
32
+
16
33
  function processRelativeTime(number, withoutSuffix, key, isFuture) {
17
34
  var format = {
18
35
  m: ['eine Minute', 'einer Minute'],
@@ -34,7 +51,18 @@
34
51
  ),
35
52
  monthsShort:
36
53
  'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
37
- monthsParseExact: true,
54
+
55
+ monthsRegex: monthsRegex,
56
+ monthsShortRegex: monthsRegex,
57
+ monthsStrictRegex:
58
+ /^(Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember)/i,
59
+ monthsShortStrictRegex:
60
+ /^(Jan\.?|Feb\.?|März|Mär\.?|Apr\.?|Mai|Juni|Jun\.?|Juli|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i,
61
+
62
+ monthsParse: monthsParse,
63
+ longMonthsParse: monthsParse,
64
+ shortMonthsParse: monthsParse,
65
+
38
66
  weekdays:
39
67
  'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
40
68
  '_'
@@ -60,12 +60,12 @@
60
60
  ~~((number % 100) / 10) === 1
61
61
  ? 'th'
62
62
  : b === 1
63
- ? 'st'
64
- : b === 2
65
- ? 'nd'
66
- : b === 3
67
- ? 'rd'
68
- : 'th';
63
+ ? 'st'
64
+ : b === 2
65
+ ? 'nd'
66
+ : b === 3
67
+ ? 'rd'
68
+ : 'th';
69
69
  return number + output;
70
70
  },
71
71
  week: {
@@ -60,12 +60,12 @@
60
60
  ~~((number % 100) / 10) === 1
61
61
  ? 'th'
62
62
  : b === 1
63
- ? 'st'
64
- : b === 2
65
- ? 'nd'
66
- : b === 3
67
- ? 'rd'
68
- : 'th';
63
+ ? 'st'
64
+ : b === 2
65
+ ? 'nd'
66
+ : b === 3
67
+ ? 'rd'
68
+ : 'th';
69
69
  return number + output;
70
70
  },
71
71
  });
@@ -60,12 +60,12 @@
60
60
  ~~((number % 100) / 10) === 1
61
61
  ? 'th'
62
62
  : b === 1
63
- ? 'st'
64
- : b === 2
65
- ? 'nd'
66
- : b === 3
67
- ? 'rd'
68
- : 'th';
63
+ ? 'st'
64
+ : b === 2
65
+ ? 'nd'
66
+ : b === 3
67
+ ? 'rd'
68
+ : 'th';
69
69
  return number + output;
70
70
  },
71
71
  week: {
@@ -60,12 +60,12 @@
60
60
  ~~((number % 100) / 10) === 1
61
61
  ? 'th'
62
62
  : b === 1
63
- ? 'st'
64
- : b === 2
65
- ? 'nd'
66
- : b === 3
67
- ? 'rd'
68
- : 'th';
63
+ ? 'st'
64
+ : b === 2
65
+ ? 'nd'
66
+ : b === 3
67
+ ? 'rd'
68
+ : 'th';
69
69
  return number + output;
70
70
  },
71
71
  week: {
@@ -60,12 +60,12 @@
60
60
  ~~((number % 100) / 10) === 1
61
61
  ? 'th'
62
62
  : b === 1
63
- ? 'st'
64
- : b === 2
65
- ? 'nd'
66
- : b === 3
67
- ? 'rd'
68
- : 'th';
63
+ ? 'st'
64
+ : b === 2
65
+ ? 'nd'
66
+ : b === 3
67
+ ? 'rd'
68
+ : 'th';
69
69
  return number + output;
70
70
  },
71
71
  });