@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
@@ -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
  week: {
@@ -22,9 +22,9 @@
22
22
  ? 'néhány másodperc'
23
23
  : 'néhány másodperce';
24
24
  case 'ss':
25
- return num + (isFuture || withoutSuffix)
26
- ? ' másodperc'
27
- : ' másodperce';
25
+ return (
26
+ num + (isFuture || withoutSuffix ? ' másodperc' : ' másodperce')
27
+ );
28
28
  case 'm':
29
29
  return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
30
30
  case 'mm':
@@ -12,11 +12,22 @@
12
12
 
13
13
  //! moment.js locale configuration
14
14
 
15
+ var monthsParse = [],
16
+ longMonthsParse = [],
17
+ shortMonthsParse = [];
18
+
19
+ monthsParse[7] = /^agustus|^agu|^agt/i;
20
+ longMonthsParse[7] = /^agustus$/i;
21
+ shortMonthsParse[7] = /^agu$|^agt$/i;
22
+
15
23
  var id = moment.defineLocale('id', {
16
24
  months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(
17
25
  '_'
18
26
  ),
19
- monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
27
+ monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agu_Sep_Okt_Nov_Des'.split('_'),
28
+ monthsParse: monthsParse,
29
+ longMonthsParse: longMonthsParse,
30
+ shortMonthsParse: shortMonthsParse,
20
31
  weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
21
32
  weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
22
33
  weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
@@ -68,8 +68,8 @@
68
68
  (this.hours() > 1
69
69
  ? 'lle '
70
70
  : this.hours() === 0
71
- ? ' '
72
- : "ll'") +
71
+ ? ' '
72
+ : "ll'") +
73
73
  ']LT'
74
74
  );
75
75
  default:
@@ -78,8 +78,8 @@
78
78
  (this.hours() > 1
79
79
  ? 'lle '
80
80
  : this.hours() === 0
81
- ? ' '
82
- : "ll'") +
81
+ ? ' '
82
+ : "ll'") +
83
83
  ']LT'
84
84
  );
85
85
  }
@@ -31,7 +31,7 @@
31
31
  longDateFormat: {
32
32
  LT: 'HH:mm',
33
33
  LTS: 'HH:mm:ss',
34
- L: 'DD/MM/YYYY',
34
+ L: 'DD.MM.YYYY',
35
35
  LL: 'D MMMM YYYY',
36
36
  LLL: 'D MMMM YYYY HH:mm',
37
37
  LLLL: 'dddd, D MMMM YYYY HH:mm',
@@ -0,0 +1,125 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Northern Kurdish [ku-kmr]
3
+ //! authors : Mazlum Özdogan : https://github.com/mergehez
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
+ function processRelativeTime(num, withoutSuffix, key, isFuture) {
15
+ var format = {
16
+ s: ['çend sanîye', 'çend sanîyeyan'],
17
+ ss: [num + ' sanîye', num + ' sanîyeyan'],
18
+ m: ['deqîqeyek', 'deqîqeyekê'],
19
+ mm: [num + ' deqîqe', num + ' deqîqeyan'],
20
+ h: ['saetek', 'saetekê'],
21
+ hh: [num + ' saet', num + ' saetan'],
22
+ d: ['rojek', 'rojekê'],
23
+ dd: [num + ' roj', num + ' rojan'],
24
+ w: ['hefteyek', 'hefteyekê'],
25
+ ww: [num + ' hefte', num + ' hefteyan'],
26
+ M: ['mehek', 'mehekê'],
27
+ MM: [num + ' meh', num + ' mehan'],
28
+ y: ['salek', 'salekê'],
29
+ yy: [num + ' sal', num + ' salan'],
30
+ };
31
+ return withoutSuffix ? format[key][0] : format[key][1];
32
+ }
33
+ // function obliqueNumSuffix(num) {
34
+ // if(num.includes(':'))
35
+ // num = parseInt(num.split(':')[0]);
36
+ // else
37
+ // num = parseInt(num);
38
+ // return num == 0 || num % 10 == 1 ? 'ê'
39
+ // : (num > 10 && num % 10 == 0 ? 'î' : 'an');
40
+ // }
41
+ function ezafeNumSuffix(num) {
42
+ num = '' + num;
43
+ var l = num.substring(num.length - 1),
44
+ ll = num.length > 1 ? num.substring(num.length - 2) : '';
45
+ if (
46
+ !(ll == 12 || ll == 13) &&
47
+ (l == '2' || l == '3' || ll == '50' || l == '70' || l == '80')
48
+ )
49
+ return 'yê';
50
+ return 'ê';
51
+ }
52
+
53
+ var kuKmr = moment.defineLocale('ku-kmr', {
54
+ // According to the spelling rules defined by the work group of Weqfa Mezopotamyayê (Mesopotamia Foundation)
55
+ // this should be: 'Kanûna Paşîn_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Çirîya Pêşîn_Çirîya Paşîn_Kanûna Pêşîn'
56
+ // But the names below are more well known and handy
57
+ months: 'Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar'.split(
58
+ '_'
59
+ ),
60
+ monthsShort: 'Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber'.split('_'),
61
+ monthsParseExact: true,
62
+ weekdays: 'Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî'.split('_'),
63
+ weekdaysShort: 'Yek_Du_Sê_Çar_Pên_În_Şem'.split('_'),
64
+ weekdaysMin: 'Ye_Du_Sê_Ça_Pê_În_Şe'.split('_'),
65
+ meridiem: function (hours, minutes, isLower) {
66
+ if (hours < 12) {
67
+ return isLower ? 'bn' : 'BN';
68
+ } else {
69
+ return isLower ? 'pn' : 'PN';
70
+ }
71
+ },
72
+ meridiemParse: /bn|BN|pn|PN/,
73
+ longDateFormat: {
74
+ LT: 'HH:mm',
75
+ LTS: 'HH:mm:ss',
76
+ L: 'DD.MM.YYYY',
77
+ LL: 'Do MMMM[a] YYYY[an]',
78
+ LLL: 'Do MMMM[a] YYYY[an] HH:mm',
79
+ LLLL: 'dddd, Do MMMM[a] YYYY[an] HH:mm',
80
+ ll: 'Do MMM[.] YYYY[an]',
81
+ lll: 'Do MMM[.] YYYY[an] HH:mm',
82
+ llll: 'ddd[.], Do MMM[.] YYYY[an] HH:mm',
83
+ },
84
+ calendar: {
85
+ sameDay: '[Îro di saet] LT [de]',
86
+ nextDay: '[Sibê di saet] LT [de]',
87
+ nextWeek: 'dddd [di saet] LT [de]',
88
+ lastDay: '[Duh di saet] LT [de]',
89
+ lastWeek: 'dddd[a borî di saet] LT [de]',
90
+ sameElse: 'L',
91
+ },
92
+ relativeTime: {
93
+ future: 'di %s de',
94
+ past: 'berî %s',
95
+ s: processRelativeTime,
96
+ ss: processRelativeTime,
97
+ m: processRelativeTime,
98
+ mm: processRelativeTime,
99
+ h: processRelativeTime,
100
+ hh: processRelativeTime,
101
+ d: processRelativeTime,
102
+ dd: processRelativeTime,
103
+ w: processRelativeTime,
104
+ ww: processRelativeTime,
105
+ M: processRelativeTime,
106
+ MM: processRelativeTime,
107
+ y: processRelativeTime,
108
+ yy: processRelativeTime,
109
+ },
110
+ dayOfMonthOrdinalParse: /\d{1,2}(?:yê|ê|\.)/,
111
+ ordinal: function (num, period) {
112
+ var p = period.toLowerCase();
113
+ if (p.includes('w') || p.includes('m')) return num + '.';
114
+
115
+ return num + ezafeNumSuffix(num);
116
+ },
117
+ week: {
118
+ dow: 1, // Monday is the first day of the week.
119
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
120
+ },
121
+ });
122
+
123
+ return kuKmr;
124
+
125
+ })));
@@ -35,8 +35,8 @@
35
35
  return withoutSuffix
36
36
  ? forms(key)[0]
37
37
  : isFuture
38
- ? forms(key)[1]
39
- : forms(key)[2];
38
+ ? forms(key)[1]
39
+ : forms(key)[2];
40
40
  }
41
41
  function special(number) {
42
42
  return number % 10 === 0 || (number > 10 && number < 20);
@@ -27,8 +27,8 @@
27
27
  return number === 1
28
28
  ? wordKey[0]
29
29
  : number >= 2 && number <= 4
30
- ? wordKey[1]
31
- : wordKey[2];
30
+ ? wordKey[1]
31
+ : wordKey[2];
32
32
  },
33
33
  translate: function (number, withoutSuffix, key) {
34
34
  var wordKey = translator.words[key];
@@ -11,7 +11,6 @@
11
11
  }(this, (function (moment) { 'use strict';
12
12
 
13
13
  //! moment.js locale configuration
14
-
15
14
  var mk = moment.defineLocale('mk', {
16
15
  months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split(
17
16
  '_'
@@ -47,13 +47,13 @@
47
47
  ss: '%d sekunder',
48
48
  m: 'ett minutt',
49
49
  mm: '%d minutter',
50
- h: 'en time',
50
+ h: 'én time',
51
51
  hh: '%d timer',
52
- d: 'en dag',
52
+ d: 'én dag',
53
53
  dd: '%d dager',
54
- w: 'en uke',
54
+ w: 'én uke',
55
55
  ww: '%d uker',
56
- M: 'en måned',
56
+ M: 'én måned',
57
57
  MM: '%d måneder',
58
58
  y: 'ett år',
59
59
  yy: '%d år',
@@ -19,7 +19,7 @@
19
19
  monthsParse = [
20
20
  /^jan/i,
21
21
  /^feb/i,
22
- /^maart|mrt.?$/i,
22
+ /^(maart|mrt\.?)$/i,
23
23
  /^apr/i,
24
24
  /^mei$/i,
25
25
  /^jun[i.]?$/i,
@@ -66,7 +66,7 @@
66
66
  longDateFormat: {
67
67
  LT: 'HH:mm',
68
68
  LTS: 'HH:mm:ss',
69
- L: 'DD/MM/YYYY',
69
+ L: 'D/MM/YYYY',
70
70
  LL: 'D MMMM YYYY',
71
71
  LLL: 'D MMMM YYYY HH:mm',
72
72
  LLLL: 'dddd D MMMM YYYY HH:mm',
@@ -19,7 +19,7 @@
19
19
  monthsParse = [
20
20
  /^jan/i,
21
21
  /^feb/i,
22
- /^maart|mrt.?$/i,
22
+ /^(maart|mrt\.?)$/i,
23
23
  /^apr/i,
24
24
  /^mei$/i,
25
25
  /^jun[i.]?$/i,
@@ -74,12 +74,12 @@
74
74
  number === 1
75
75
  ? 'r'
76
76
  : number === 2
77
- ? 'n'
78
- : number === 3
79
- ? 'r'
80
- : number === 4
81
- ? 't'
82
- : 'è';
77
+ ? 'n'
78
+ : number === 3
79
+ ? 'r'
80
+ : number === 4
81
+ ? 't'
82
+ : 'è';
83
83
  if (period === 'w' || period === 'W') {
84
84
  output = 'a';
85
85
  }
@@ -62,7 +62,7 @@
62
62
  months: function (momentToFormat, format) {
63
63
  if (!momentToFormat) {
64
64
  return monthsNominative;
65
- } else if (/D MMMM/.test(format)) {
65
+ } else if (/D\.? MMMM/.test(format)) {
66
66
  return monthsSubjective[momentToFormat.month()];
67
67
  } else {
68
68
  return monthsNominative[momentToFormat.month()];
@@ -0,0 +1,188 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Pashto [ps]
3
+ //! author : Hanif Hefaz : https://github.com/hanifhefaz
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
+ months = {
39
+ format: 'جنوري_فبروري_مارچ_اپریل_مۍ_جون_جولای_اګست_سېپتمبر_اکتوبر_نومبر_دسمبر'.split(
40
+ '_'
41
+ ),
42
+ standalone:
43
+ 'جنوري_فېبروري_مارچ_اپریل_مۍ_جون_جولای_اګست_سپتمبر_اکتوبر_نومبر_دسمبر'.split(
44
+ '_'
45
+ ),
46
+ isFormat: /D[oD]?(\[[^\[\]]*\]|\s|,)+MMMM?/,
47
+ },
48
+ monthsShort = {
49
+ format: 'جنوري_فبروري_مارچ_اپریل_مۍ_جون_جولای_اګست_سېپتمبر_اکتوبر_نومبر_دسمبر'.split(
50
+ '_'
51
+ ),
52
+ standalone:
53
+ 'جنوري_فبروري_مارچ_اپریل_مۍ_جون_جولای_اګست_سپتمبر_اکتوبر_نومبر_دسمبر'.split(
54
+ '_'
55
+ ),
56
+ },
57
+ monthsParse = [
58
+ /^جنوري$/i,
59
+ /^(فبروري|فېبروري)$/i,
60
+ /^مارچ$/i,
61
+ /^اپریل$/i,
62
+ /^مۍ$/i,
63
+ /^جون$/i,
64
+ /^جولای$/i,
65
+ /^اګست$/i,
66
+ /^(سپتمبر|سېپتمبر)$/i,
67
+ /^اکتوبر$/i,
68
+ /^نومبر$/i,
69
+ /^دسمبر$/i,
70
+ ],
71
+ monthsRegex =
72
+ /^(جنوري|فبروري|فېبروري|مارچ|اپریل|مۍ|جون|جولای|اګست|سپتمبر|سېپتمبر|اکتوبر|نومبر|دسمبر)/i;
73
+
74
+ function relativeTime(number, withoutSuffix, key, isFuture) {
75
+ var format =
76
+ isFuture && !withoutSuffix
77
+ ? {
78
+ s: 'څو ثانيو',
79
+ ss: '%d ثانيو',
80
+ m: 'يوه دقيقه',
81
+ mm: '%d دقيقو',
82
+ h: 'يو ساعت',
83
+ hh: '%d ساعتو',
84
+ d: 'يوه ورځ',
85
+ dd: '%d ورځو',
86
+ M: 'يوه مياشت',
87
+ MM: '%d مياشتو',
88
+ y: 'يو کال',
89
+ yy: '%d کالونو',
90
+ }
91
+ : {
92
+ s: 'څو ثانيې',
93
+ ss: '%d ثانيې',
94
+ m: 'يوه دقيقه',
95
+ mm: '%d دقيقې',
96
+ h: 'يو ساعت',
97
+ hh: '%d ساعتونه',
98
+ d: 'يوه ورځ',
99
+ dd: '%d ورځې',
100
+ M: 'يوه مياشت',
101
+ MM: '%d مياشتې',
102
+ y: 'يو کال',
103
+ yy: '%d کاله',
104
+ };
105
+
106
+ return format[key].replace('%d', number);
107
+ }
108
+
109
+ var ps = moment.defineLocale('ps', {
110
+ months: months,
111
+ monthsShort: monthsShort,
112
+ monthsParse: monthsParse,
113
+ longMonthsParse: monthsParse,
114
+ shortMonthsParse: monthsParse,
115
+ monthsRegex: monthsRegex,
116
+ monthsShortRegex: monthsRegex,
117
+ monthsStrictRegex: monthsRegex,
118
+ monthsShortStrictRegex: monthsRegex,
119
+ weekdays: 'یکشنبه_دوشنبه_سه شنبه_چهارشنبه_پنج شنبه_جمعه_شنبه'.split('_'),
120
+ weekdaysShort: 'یکشنبه_دوشنبه_سه شنبه_چهارشنبه_پنج شنبه_جمعه_شنبه'.split(
121
+ '_'
122
+ ),
123
+ weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
124
+ weekdaysParseExact: true,
125
+ longDateFormat: {
126
+ LT: 'H:mm',
127
+ LTS: 'H:mm:ss',
128
+ L: 'YYYY/M/D',
129
+ LL: 'D MMMM YYYY',
130
+ LLL: 'D MMMM YYYY H:mm',
131
+ LLLL: 'dddd D, MMMM, YYYY [په] H:mm',
132
+ },
133
+ meridiemParse: /غ\.م|غ\.و\./,
134
+ isPM: function (input) {
135
+ return input === 'غ.و.';
136
+ },
137
+ meridiem: function (hour) {
138
+ return hour < 12 ? 'غ.م' : 'غ.و.';
139
+ },
140
+ calendar: {
141
+ sameDay: '[نن په] LT',
142
+ nextDay: '[سبا په] LT',
143
+ nextWeek: 'dddd [په] LT',
144
+ lastDay: '[پرون په] LT',
145
+ lastWeek: 'dddd [په] LT',
146
+ sameElse: 'L',
147
+ },
148
+ relativeTime: {
149
+ future: 'په %s کې',
150
+ past: '%s مخکې',
151
+ s: relativeTime,
152
+ ss: relativeTime,
153
+ m: relativeTime,
154
+ mm: relativeTime,
155
+ h: relativeTime,
156
+ hh: relativeTime,
157
+ d: relativeTime,
158
+ dd: relativeTime,
159
+ M: relativeTime,
160
+ MM: relativeTime,
161
+ y: relativeTime,
162
+ yy: relativeTime,
163
+ },
164
+ preparse: function (string) {
165
+ return string
166
+ .replace(/[۰-۹]/g, function (match) {
167
+ return numberMap[match];
168
+ })
169
+ .replace(/،/g, ',');
170
+ },
171
+ postformat: function (string) {
172
+ return string
173
+ .replace(/\d/g, function (match) {
174
+ return symbolMap[match];
175
+ })
176
+ .replace(/,/g, '،');
177
+ },
178
+ dayOfMonthOrdinalParse: /\d{1,2}/,
179
+ ordinal: '%d',
180
+ week: {
181
+ dow: 6, // Saturday is the first day of the week.
182
+ doy: 12, // The week that contains Jan 12th is the first week of the year.
183
+ },
184
+ });
185
+
186
+ return ps;
187
+
188
+ })));
@@ -32,14 +32,22 @@
32
32
  LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',
33
33
  },
34
34
  calendar: {
35
- sameDay: '[Hoje às] LT',
36
- nextDay: '[Amanhã às] LT',
37
- nextWeek: 'dddd [às] LT',
38
- lastDay: '[Ontem às] LT',
35
+ sameDay: function () {
36
+ return '[Hoje ' + (this.hours() >= 2 ? 'às' : 'à') + '] LT';
37
+ },
38
+ nextDay: function () {
39
+ return '[Amanhã ' + (this.hours() >= 2 ? 'às' : 'à') + '] LT';
40
+ },
41
+ nextWeek: function () {
42
+ return 'dddd [' + (this.hours() >= 2 ? 'às' : 'à') + '] LT';
43
+ },
44
+ lastDay: function () {
45
+ return '[Ontem ' + (this.hours() >= 2 ? 'às' : 'à') + '] LT';
46
+ },
39
47
  lastWeek: function () {
40
48
  return this.day() === 0 || this.day() === 6
41
- ? '[Último] dddd [às] LT' // Saturday + Sunday
42
- : '[Última] dddd [às] LT'; // Monday - Friday
49
+ ? '[Último] dddd [' + (this.hours() >= 2 ? 'às' : 'à') + '] LT' // Saturday + Sunday
50
+ : '[Última] dddd [' + (this.hours() >= 2 ? 'às' : 'à') + '] LT'; // Monday - Friday
43
51
  },
44
52
  sameElse: 'L',
45
53
  },
@@ -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 = {
@@ -17,7 +17,7 @@
17
17
  ),
18
18
  monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
19
19
  weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
20
- weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
20
+ weekdaysShort: 'sön_mån_tis_ons_tors_fre_lör'.split('_'),
21
21
  weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
22
22
  longDateFormat: {
23
23
  LT: 'HH:mm',
@@ -60,12 +60,12 @@
60
60
  ~~((number % 100) / 10) === 1
61
61
  ? ':e'
62
62
  : b === 1
63
- ? ':a'
64
- : b === 2
65
- ? ':a'
66
- : b === 3
67
- ? ':e'
68
- : ':e';
63
+ ? ':a'
64
+ : b === 2
65
+ ? ':a'
66
+ : b === 3
67
+ ? ':e'
68
+ : ':e';
69
69
  return number + output;
70
70
  },
71
71
  week: {