@nocobase/plugin-backup-restore 2.2.19 → 2.2.21

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
@@ -53,12 +53,12 @@ export default moment.defineLocale('en-il', {
53
53
  ~~((number % 100) / 10) === 1
54
54
  ? 'th'
55
55
  : b === 1
56
- ? 'st'
57
- : b === 2
58
- ? 'nd'
59
- : b === 3
60
- ? 'rd'
61
- : 'th';
56
+ ? 'st'
57
+ : b === 2
58
+ ? 'nd'
59
+ : b === 3
60
+ ? 'rd'
61
+ : 'th';
62
62
  return number + output;
63
63
  },
64
64
  });
@@ -53,12 +53,12 @@ export default moment.defineLocale('en-in', {
53
53
  ~~((number % 100) / 10) === 1
54
54
  ? 'th'
55
55
  : b === 1
56
- ? 'st'
57
- : b === 2
58
- ? 'nd'
59
- : b === 3
60
- ? 'rd'
61
- : 'th';
56
+ ? 'st'
57
+ : b === 2
58
+ ? 'nd'
59
+ : b === 3
60
+ ? 'rd'
61
+ : 'th';
62
62
  return number + output;
63
63
  },
64
64
  week: {
@@ -53,12 +53,12 @@ export default moment.defineLocale('en-nz', {
53
53
  ~~((number % 100) / 10) === 1
54
54
  ? 'th'
55
55
  : b === 1
56
- ? 'st'
57
- : b === 2
58
- ? 'nd'
59
- : b === 3
60
- ? 'rd'
61
- : 'th';
56
+ ? 'st'
57
+ : b === 2
58
+ ? 'nd'
59
+ : b === 3
60
+ ? 'rd'
61
+ : 'th';
62
62
  return number + output;
63
63
  },
64
64
  week: {
@@ -53,12 +53,12 @@ export default moment.defineLocale('en-sg', {
53
53
  ~~((number % 100) / 10) === 1
54
54
  ? 'th'
55
55
  : b === 1
56
- ? 'st'
57
- : b === 2
58
- ? 'nd'
59
- : b === 3
60
- ? 'rd'
61
- : 'th';
56
+ ? 'st'
57
+ : b === 2
58
+ ? 'nd'
59
+ : b === 3
60
+ ? 'rd'
61
+ : 'th';
62
62
  return number + output;
63
63
  },
64
64
  week: {
@@ -15,9 +15,9 @@ function translate(number, withoutSuffix, key, isFuture) {
15
15
  ? 'néhány másodperc'
16
16
  : 'néhány másodperce';
17
17
  case 'ss':
18
- return num + (isFuture || withoutSuffix)
19
- ? ' másodperc'
20
- : ' másodperce';
18
+ return (
19
+ num + (isFuture || withoutSuffix ? ' másodperc' : ' másodperce')
20
+ );
21
21
  case 'm':
22
22
  return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
23
23
  case 'mm':
@@ -5,11 +5,22 @@
5
5
 
6
6
  import moment from '../moment';
7
7
 
8
+ var monthsParse = [],
9
+ longMonthsParse = [],
10
+ shortMonthsParse = [];
11
+
12
+ monthsParse[7] = /^agustus|^agu|^agt/i;
13
+ longMonthsParse[7] = /^agustus$/i;
14
+ shortMonthsParse[7] = /^agu$|^agt$/i;
15
+
8
16
  export default moment.defineLocale('id', {
9
17
  months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(
10
18
  '_'
11
19
  ),
12
- monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
20
+ monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agu_Sep_Okt_Nov_Des'.split('_'),
21
+ monthsParse: monthsParse,
22
+ longMonthsParse: longMonthsParse,
23
+ shortMonthsParse: shortMonthsParse,
13
24
  weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
14
25
  weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
15
26
  weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
@@ -61,8 +61,8 @@ export default moment.defineLocale('it', {
61
61
  (this.hours() > 1
62
62
  ? 'lle '
63
63
  : this.hours() === 0
64
- ? ' '
65
- : "ll'") +
64
+ ? ' '
65
+ : "ll'") +
66
66
  ']LT'
67
67
  );
68
68
  default:
@@ -71,8 +71,8 @@ export default moment.defineLocale('it', {
71
71
  (this.hours() > 1
72
72
  ? 'lle '
73
73
  : this.hours() === 0
74
- ? ' '
75
- : "ll'") +
74
+ ? ' '
75
+ : "ll'") +
76
76
  ']LT'
77
77
  );
78
78
  }
@@ -24,7 +24,7 @@ export default moment.defineLocale('ka', {
24
24
  longDateFormat: {
25
25
  LT: 'HH:mm',
26
26
  LTS: 'HH:mm:ss',
27
- L: 'DD/MM/YYYY',
27
+ L: 'DD.MM.YYYY',
28
28
  LL: 'D MMMM YYYY',
29
29
  LLL: 'D MMMM YYYY HH:mm',
30
30
  LLLL: 'dddd, D MMMM YYYY HH:mm',
@@ -0,0 +1,121 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Northern Kurdish [ku-kmr]
3
+ //! authors : Mazlum Özdogan : https://github.com/mergehez
4
+
5
+ // All rules except for month names are according to
6
+ // the spelling rules which are defined in the book 'Rêbera Rastnivîsînê' from Komxebata Kurmancîyê.
7
+ // Komxebata Kurmancîyê is a work group that studied different uses in Kurdish language (Kurmanji/Northern Kurdish),
8
+ // chose one of alternatives as standard and publish them via their book.
9
+ // There are 18 Kurdish linguists in the group.
10
+ // The group was formed by Mesopotamia Foundation
11
+
12
+ import moment from '../moment';
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
+ export default 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
+ });
@@ -28,8 +28,8 @@ function translateSingular(number, withoutSuffix, key, isFuture) {
28
28
  return withoutSuffix
29
29
  ? forms(key)[0]
30
30
  : isFuture
31
- ? forms(key)[1]
32
- : forms(key)[2];
31
+ ? forms(key)[1]
32
+ : forms(key)[2];
33
33
  }
34
34
  function special(number) {
35
35
  return number % 10 === 0 || (number > 10 && number < 20);
@@ -20,8 +20,8 @@ var translator = {
20
20
  return number === 1
21
21
  ? wordKey[0]
22
22
  : number >= 2 && number <= 4
23
- ? wordKey[1]
24
- : wordKey[2];
23
+ ? wordKey[1]
24
+ : wordKey[2];
25
25
  },
26
26
  translate: function (number, withoutSuffix, key) {
27
27
  var wordKey = translator.words[key];
@@ -40,13 +40,13 @@ export default moment.defineLocale('nb', {
40
40
  ss: '%d sekunder',
41
41
  m: 'ett minutt',
42
42
  mm: '%d minutter',
43
- h: 'en time',
43
+ h: 'én time',
44
44
  hh: '%d timer',
45
- d: 'en dag',
45
+ d: 'én dag',
46
46
  dd: '%d dager',
47
- w: 'en uke',
47
+ w: 'én uke',
48
48
  ww: '%d uker',
49
- M: 'en måned',
49
+ M: 'én måned',
50
50
  MM: '%d måneder',
51
51
  y: 'ett år',
52
52
  yy: '%d år',
@@ -12,7 +12,7 @@ var monthsShortWithDots =
12
12
  monthsParse = [
13
13
  /^jan/i,
14
14
  /^feb/i,
15
- /^maart|mrt.?$/i,
15
+ /^(maart|mrt\.?)$/i,
16
16
  /^apr/i,
17
17
  /^mei$/i,
18
18
  /^jun[i.]?$/i,
@@ -59,7 +59,7 @@ export default moment.defineLocale('nl-be', {
59
59
  longDateFormat: {
60
60
  LT: 'HH:mm',
61
61
  LTS: 'HH:mm:ss',
62
- L: 'DD/MM/YYYY',
62
+ L: 'D/MM/YYYY',
63
63
  LL: 'D MMMM YYYY',
64
64
  LLL: 'D MMMM YYYY HH:mm',
65
65
  LLLL: 'dddd D MMMM YYYY HH:mm',
@@ -12,7 +12,7 @@ var monthsShortWithDots =
12
12
  monthsParse = [
13
13
  /^jan/i,
14
14
  /^feb/i,
15
- /^maart|mrt.?$/i,
15
+ /^(maart|mrt\.?)$/i,
16
16
  /^apr/i,
17
17
  /^mei$/i,
18
18
  /^jun[i.]?$/i,
@@ -67,12 +67,12 @@ export default moment.defineLocale('oc-lnc', {
67
67
  number === 1
68
68
  ? 'r'
69
69
  : number === 2
70
- ? 'n'
71
- : number === 3
72
- ? 'r'
73
- : number === 4
74
- ? 't'
75
- : 'è';
70
+ ? 'n'
71
+ : number === 3
72
+ ? 'r'
73
+ : number === 4
74
+ ? 't'
75
+ : 'è';
76
76
  if (period === 'w' || period === 'W') {
77
77
  output = 'a';
78
78
  }
@@ -55,7 +55,7 @@ export default moment.defineLocale('pl', {
55
55
  months: function (momentToFormat, format) {
56
56
  if (!momentToFormat) {
57
57
  return monthsNominative;
58
- } else if (/D MMMM/.test(format)) {
58
+ } else if (/D\.? MMMM/.test(format)) {
59
59
  return monthsSubjective[momentToFormat.month()];
60
60
  } else {
61
61
  return monthsNominative[momentToFormat.month()];
@@ -0,0 +1,177 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Pashto [ps]
3
+ //! author : Hanif Hefaz : https://github.com/hanifhefaz
4
+
5
+ import moment from '../moment';
6
+
7
+ var symbolMap = {
8
+ 1: '۱',
9
+ 2: '۲',
10
+ 3: '۳',
11
+ 4: '۴',
12
+ 5: '۵',
13
+ 6: '۶',
14
+ 7: '۷',
15
+ 8: '۸',
16
+ 9: '۹',
17
+ 0: '۰',
18
+ },
19
+ numberMap = {
20
+ '۱': '1',
21
+ '۲': '2',
22
+ '۳': '3',
23
+ '۴': '4',
24
+ '۵': '5',
25
+ '۶': '6',
26
+ '۷': '7',
27
+ '۸': '8',
28
+ '۹': '9',
29
+ '۰': '0',
30
+ },
31
+ months = {
32
+ format: 'جنوري_فبروري_مارچ_اپریل_مۍ_جون_جولای_اګست_سېپتمبر_اکتوبر_نومبر_دسمبر'.split(
33
+ '_'
34
+ ),
35
+ standalone:
36
+ 'جنوري_فېبروري_مارچ_اپریل_مۍ_جون_جولای_اګست_سپتمبر_اکتوبر_نومبر_دسمبر'.split(
37
+ '_'
38
+ ),
39
+ isFormat: /D[oD]?(\[[^\[\]]*\]|\s|,)+MMMM?/,
40
+ },
41
+ monthsShort = {
42
+ format: 'جنوري_فبروري_مارچ_اپریل_مۍ_جون_جولای_اګست_سېپتمبر_اکتوبر_نومبر_دسمبر'.split(
43
+ '_'
44
+ ),
45
+ standalone:
46
+ 'جنوري_فبروري_مارچ_اپریل_مۍ_جون_جولای_اګست_سپتمبر_اکتوبر_نومبر_دسمبر'.split(
47
+ '_'
48
+ ),
49
+ },
50
+ monthsParse = [
51
+ /^جنوري$/i,
52
+ /^(فبروري|فېبروري)$/i,
53
+ /^مارچ$/i,
54
+ /^اپریل$/i,
55
+ /^مۍ$/i,
56
+ /^جون$/i,
57
+ /^جولای$/i,
58
+ /^اګست$/i,
59
+ /^(سپتمبر|سېپتمبر)$/i,
60
+ /^اکتوبر$/i,
61
+ /^نومبر$/i,
62
+ /^دسمبر$/i,
63
+ ],
64
+ monthsRegex =
65
+ /^(جنوري|فبروري|فېبروري|مارچ|اپریل|مۍ|جون|جولای|اګست|سپتمبر|سېپتمبر|اکتوبر|نومبر|دسمبر)/i;
66
+
67
+ function relativeTime(number, withoutSuffix, key, isFuture) {
68
+ var format =
69
+ isFuture && !withoutSuffix
70
+ ? {
71
+ s: 'څو ثانيو',
72
+ ss: '%d ثانيو',
73
+ m: 'يوه دقيقه',
74
+ mm: '%d دقيقو',
75
+ h: 'يو ساعت',
76
+ hh: '%d ساعتو',
77
+ d: 'يوه ورځ',
78
+ dd: '%d ورځو',
79
+ M: 'يوه مياشت',
80
+ MM: '%d مياشتو',
81
+ y: 'يو کال',
82
+ yy: '%d کالونو',
83
+ }
84
+ : {
85
+ s: 'څو ثانيې',
86
+ ss: '%d ثانيې',
87
+ m: 'يوه دقيقه',
88
+ mm: '%d دقيقې',
89
+ h: 'يو ساعت',
90
+ hh: '%d ساعتونه',
91
+ d: 'يوه ورځ',
92
+ dd: '%d ورځې',
93
+ M: 'يوه مياشت',
94
+ MM: '%d مياشتې',
95
+ y: 'يو کال',
96
+ yy: '%d کاله',
97
+ };
98
+
99
+ return format[key].replace('%d', number);
100
+ }
101
+
102
+ export default moment.defineLocale('ps', {
103
+ months: months,
104
+ monthsShort: monthsShort,
105
+ monthsParse: monthsParse,
106
+ longMonthsParse: monthsParse,
107
+ shortMonthsParse: monthsParse,
108
+ monthsRegex: monthsRegex,
109
+ monthsShortRegex: monthsRegex,
110
+ monthsStrictRegex: monthsRegex,
111
+ monthsShortStrictRegex: monthsRegex,
112
+ weekdays: 'یکشنبه_دوشنبه_سه شنبه_چهارشنبه_پنج شنبه_جمعه_شنبه'.split('_'),
113
+ weekdaysShort: 'یکشنبه_دوشنبه_سه شنبه_چهارشنبه_پنج شنبه_جمعه_شنبه'.split(
114
+ '_'
115
+ ),
116
+ weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
117
+ weekdaysParseExact: true,
118
+ longDateFormat: {
119
+ LT: 'H:mm',
120
+ LTS: 'H:mm:ss',
121
+ L: 'YYYY/M/D',
122
+ LL: 'D MMMM YYYY',
123
+ LLL: 'D MMMM YYYY H:mm',
124
+ LLLL: 'dddd D, MMMM, YYYY [په] H:mm',
125
+ },
126
+ meridiemParse: /غ\.م|غ\.و\./,
127
+ isPM: function (input) {
128
+ return input === 'غ.و.';
129
+ },
130
+ meridiem: function (hour) {
131
+ return hour < 12 ? 'غ.م' : 'غ.و.';
132
+ },
133
+ calendar: {
134
+ sameDay: '[نن په] LT',
135
+ nextDay: '[سبا په] LT',
136
+ nextWeek: 'dddd [په] LT',
137
+ lastDay: '[پرون په] LT',
138
+ lastWeek: 'dddd [په] LT',
139
+ sameElse: 'L',
140
+ },
141
+ relativeTime: {
142
+ future: 'په %s کې',
143
+ past: '%s مخکې',
144
+ s: relativeTime,
145
+ ss: relativeTime,
146
+ m: relativeTime,
147
+ mm: relativeTime,
148
+ h: relativeTime,
149
+ hh: relativeTime,
150
+ d: relativeTime,
151
+ dd: relativeTime,
152
+ M: relativeTime,
153
+ MM: relativeTime,
154
+ y: relativeTime,
155
+ yy: relativeTime,
156
+ },
157
+ preparse: function (string) {
158
+ return string
159
+ .replace(/[۰-۹]/g, function (match) {
160
+ return numberMap[match];
161
+ })
162
+ .replace(/،/g, ',');
163
+ },
164
+ postformat: function (string) {
165
+ return string
166
+ .replace(/\d/g, function (match) {
167
+ return symbolMap[match];
168
+ })
169
+ .replace(/,/g, '،');
170
+ },
171
+ dayOfMonthOrdinalParse: /\d{1,2}/,
172
+ ordinal: '%d',
173
+ week: {
174
+ dow: 6, // Saturday is the first day of the week.
175
+ doy: 12, // The week that contains Jan 12th is the first week of the year.
176
+ },
177
+ });
@@ -25,14 +25,22 @@ export default moment.defineLocale('pt-br', {
25
25
  LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',
26
26
  },
27
27
  calendar: {
28
- sameDay: '[Hoje às] LT',
29
- nextDay: '[Amanhã às] LT',
30
- nextWeek: 'dddd [às] LT',
31
- lastDay: '[Ontem às] LT',
28
+ sameDay: function () {
29
+ return '[Hoje ' + (this.hours() >= 2 ? 'às' : 'à') + '] LT';
30
+ },
31
+ nextDay: function () {
32
+ return '[Amanhã ' + (this.hours() >= 2 ? 'às' : 'à') + '] LT';
33
+ },
34
+ nextWeek: function () {
35
+ return 'dddd [' + (this.hours() >= 2 ? 'às' : 'à') + '] LT';
36
+ },
37
+ lastDay: function () {
38
+ return '[Ontem ' + (this.hours() >= 2 ? 'às' : 'à') + '] LT';
39
+ },
32
40
  lastWeek: function () {
33
41
  return this.day() === 0 || this.day() === 6
34
- ? '[Último] dddd [às] LT' // Saturday + Sunday
35
- : '[Última] dddd [às] LT'; // Monday - Friday
42
+ ? '[Último] dddd [' + (this.hours() >= 2 ? 'às' : 'à') + '] LT' // Saturday + Sunday
43
+ : '[Última] dddd [' + (this.hours() >= 2 ? 'às' : 'à') + '] LT'; // Monday - Friday
36
44
  },
37
45
  sameElse: 'L',
38
46
  },
@@ -11,8 +11,8 @@ function plural(word, num) {
11
11
  return num % 10 === 1 && num % 100 !== 11
12
12
  ? forms[0]
13
13
  : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
14
- ? forms[1]
15
- : forms[2];
14
+ ? forms[1]
15
+ : forms[2];
16
16
  }
17
17
  function relativeTimeWithPlural(number, withoutSuffix, key) {
18
18
  var format = {
@@ -10,7 +10,7 @@ export default moment.defineLocale('sv', {
10
10
  ),
11
11
  monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
12
12
  weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
13
- weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
13
+ weekdaysShort: 'sön_mån_tis_ons_tors_fre_lör'.split('_'),
14
14
  weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
15
15
  longDateFormat: {
16
16
  LT: 'HH:mm',
@@ -53,12 +53,12 @@ export default moment.defineLocale('sv', {
53
53
  ~~((number % 100) / 10) === 1
54
54
  ? ':e'
55
55
  : b === 1
56
- ? ':a'
57
- : b === 2
58
- ? ':a'
59
- : b === 3
60
- ? ':e'
61
- : ':e';
56
+ ? ':a'
57
+ : b === 2
58
+ ? ':a'
59
+ : b === 3
60
+ ? ':e'
61
+ : ':e';
62
62
  return number + output;
63
63
  },
64
64
  week: {