@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.
- package/dist/externalVersion.js +5 -5
- package/dist/node_modules/@hapi/topo/package.json +1 -1
- package/dist/node_modules/@xhmikosr/decompress/package.json +1 -1
- package/dist/node_modules/archiver/package.json +1 -1
- package/dist/node_modules/fs-extra/package.json +1 -1
- package/dist/node_modules/moment/LICENSE +1 -1
- package/dist/node_modules/moment/dist/locale/am-et.js +62 -0
- package/dist/node_modules/moment/dist/locale/ar-dz.js +8 -8
- package/dist/node_modules/moment/dist/locale/ar-ly.js +8 -8
- package/dist/node_modules/moment/dist/locale/ar-ps.js +112 -0
- package/dist/node_modules/moment/dist/locale/ar.js +8 -8
- package/dist/node_modules/moment/dist/locale/be.js +2 -2
- package/dist/node_modules/moment/dist/locale/bs.js +14 -4
- package/dist/node_modules/moment/dist/locale/ca.js +7 -7
- package/dist/node_modules/moment/dist/locale/cs.js +5 -4
- package/dist/node_modules/moment/dist/locale/cv.js +2 -2
- package/dist/node_modules/moment/dist/locale/de-at.js +29 -1
- package/dist/node_modules/moment/dist/locale/de-ch.js +29 -1
- package/dist/node_modules/moment/dist/locale/de.js +29 -1
- package/dist/node_modules/moment/dist/locale/en-au.js +6 -6
- package/dist/node_modules/moment/dist/locale/en-ca.js +6 -6
- package/dist/node_modules/moment/dist/locale/en-gb.js +6 -6
- package/dist/node_modules/moment/dist/locale/en-ie.js +6 -6
- package/dist/node_modules/moment/dist/locale/en-il.js +6 -6
- package/dist/node_modules/moment/dist/locale/en-in.js +6 -6
- package/dist/node_modules/moment/dist/locale/en-nz.js +6 -6
- package/dist/node_modules/moment/dist/locale/en-sg.js +6 -6
- package/dist/node_modules/moment/dist/locale/hu.js +3 -3
- package/dist/node_modules/moment/dist/locale/id.js +12 -1
- package/dist/node_modules/moment/dist/locale/it.js +4 -4
- package/dist/node_modules/moment/dist/locale/ka.js +1 -1
- package/dist/node_modules/moment/dist/locale/ku-kmr.js +121 -0
- package/dist/node_modules/moment/dist/locale/lt.js +2 -2
- package/dist/node_modules/moment/dist/locale/me.js +2 -2
- package/dist/node_modules/moment/dist/locale/nb.js +4 -4
- package/dist/node_modules/moment/dist/locale/nl-be.js +2 -2
- package/dist/node_modules/moment/dist/locale/nl.js +1 -1
- package/dist/node_modules/moment/dist/locale/oc-lnc.js +6 -6
- package/dist/node_modules/moment/dist/locale/pl.js +1 -1
- package/dist/node_modules/moment/dist/locale/ps.js +177 -0
- package/dist/node_modules/moment/dist/locale/pt-br.js +14 -6
- package/dist/node_modules/moment/dist/locale/ru.js +2 -2
- package/dist/node_modules/moment/dist/locale/sv.js +7 -7
- package/dist/node_modules/moment/dist/locale/sw.js +56 -14
- package/dist/node_modules/moment/dist/locale/tet.js +6 -6
- package/dist/node_modules/moment/dist/locale/tlh.js +8 -8
- package/dist/node_modules/moment/dist/locale/tzl.js +2 -2
- package/dist/node_modules/moment/dist/locale/uk.js +9 -8
- package/dist/node_modules/moment/dist/locale/uz-latn.js +1 -1
- package/dist/node_modules/moment/dist/locale/uz.js +1 -1
- package/dist/node_modules/moment/dist/locale/x-pseudo.js +6 -6
- package/dist/node_modules/moment/dist/moment.js +1274 -1042
- package/dist/node_modules/moment/dojo.profile.js +11 -0
- package/dist/node_modules/moment/ender.js +1 -1
- package/dist/node_modules/moment/locale/am-et.js +73 -0
- package/dist/node_modules/moment/locale/ar-dz.js +8 -8
- package/dist/node_modules/moment/locale/ar-ly.js +8 -8
- package/dist/node_modules/moment/locale/ar-ps.js +123 -0
- package/dist/node_modules/moment/locale/ar.js +8 -8
- package/dist/node_modules/moment/locale/be.js +2 -2
- package/dist/node_modules/moment/locale/bm.js +2 -0
- package/dist/node_modules/moment/locale/bs.js +14 -4
- package/dist/node_modules/moment/locale/ca.js +7 -7
- package/dist/node_modules/moment/locale/cs.js +5 -4
- package/dist/node_modules/moment/locale/cv.js +2 -2
- package/dist/node_modules/moment/locale/de-at.js +29 -1
- package/dist/node_modules/moment/locale/de-ch.js +29 -1
- package/dist/node_modules/moment/locale/de.js +29 -1
- package/dist/node_modules/moment/locale/en-au.js +6 -6
- package/dist/node_modules/moment/locale/en-ca.js +6 -6
- package/dist/node_modules/moment/locale/en-gb.js +6 -6
- package/dist/node_modules/moment/locale/en-ie.js +6 -6
- package/dist/node_modules/moment/locale/en-il.js +6 -6
- package/dist/node_modules/moment/locale/en-in.js +6 -6
- package/dist/node_modules/moment/locale/en-nz.js +6 -6
- package/dist/node_modules/moment/locale/en-sg.js +6 -6
- package/dist/node_modules/moment/locale/hu.js +3 -3
- package/dist/node_modules/moment/locale/id.js +12 -1
- package/dist/node_modules/moment/locale/it.js +4 -4
- package/dist/node_modules/moment/locale/ka.js +1 -1
- package/dist/node_modules/moment/locale/ku-kmr.js +125 -0
- package/dist/node_modules/moment/locale/lt.js +2 -2
- package/dist/node_modules/moment/locale/me.js +2 -2
- package/dist/node_modules/moment/locale/mk.js +0 -1
- package/dist/node_modules/moment/locale/nb.js +4 -4
- package/dist/node_modules/moment/locale/nl-be.js +2 -2
- package/dist/node_modules/moment/locale/nl.js +1 -1
- package/dist/node_modules/moment/locale/oc-lnc.js +6 -6
- package/dist/node_modules/moment/locale/pl.js +1 -1
- package/dist/node_modules/moment/locale/ps.js +188 -0
- package/dist/node_modules/moment/locale/pt-br.js +14 -6
- package/dist/node_modules/moment/locale/ru.js +2 -2
- package/dist/node_modules/moment/locale/sv.js +7 -7
- package/dist/node_modules/moment/locale/sw.js +56 -14
- package/dist/node_modules/moment/locale/tet.js +6 -6
- package/dist/node_modules/moment/locale/tlh.js +8 -8
- package/dist/node_modules/moment/locale/tzl.js +2 -2
- package/dist/node_modules/moment/locale/uk.js +9 -8
- package/dist/node_modules/moment/locale/uz-latn.js +1 -1
- package/dist/node_modules/moment/locale/uz.js +1 -1
- package/dist/node_modules/moment/locale/x-pseudo.js +6 -6
- package/dist/node_modules/moment/min/locales.js +1380 -771
- package/dist/node_modules/moment/min/locales.min.js +211 -1
- package/dist/node_modules/moment/min/moment-with-locales.js +2705 -1858
- package/dist/node_modules/moment/min/moment-with-locales.min.js +216 -1
- package/dist/node_modules/moment/min/moment.min.js +8 -1
- package/dist/node_modules/moment/moment.d.ts +2 -0
- package/dist/node_modules/moment/moment.js +3 -3
- package/dist/node_modules/moment/package.json +1 -1
- package/dist/node_modules/moment/src/lib/create/check-overflow.js +15 -15
- package/dist/node_modules/moment/src/lib/create/from-array.js +77 -10
- package/dist/node_modules/moment/src/lib/create/from-string-and-array.js +2 -0
- package/dist/node_modules/moment/src/lib/create/parsing-flags.js +1 -0
- package/dist/node_modules/moment/src/lib/create/valid.js +25 -24
- package/dist/node_modules/moment/src/lib/duration/as.js +3 -15
- package/dist/node_modules/moment/src/lib/duration/bubble.js +4 -6
- package/dist/node_modules/moment/src/lib/duration/humanize.js +14 -3
- package/dist/node_modules/moment/src/lib/format/format.js +7 -4
- package/dist/node_modules/moment/src/lib/locale/en.js +6 -6
- package/dist/node_modules/moment/src/lib/locale/formats.js +19 -3
- package/dist/node_modules/moment/src/lib/locale/locales.js +33 -13
- package/dist/node_modules/moment/src/lib/locale/relative.js +25 -2
- package/dist/node_modules/moment/src/lib/locale/set.js +4 -0
- package/dist/node_modules/moment/src/lib/moment/calendar.js +10 -10
- package/dist/node_modules/moment/src/lib/moment/get-set.js +66 -22
- package/dist/node_modules/moment/src/lib/moment/min-max.js +15 -3
- package/dist/node_modules/moment/src/lib/parse/regex.js +4 -0
- package/dist/node_modules/moment/src/lib/units/aliases.js +50 -6
- package/dist/node_modules/moment/src/lib/units/day-of-month.js +7 -11
- package/dist/node_modules/moment/src/lib/units/day-of-week.js +52 -21
- package/dist/node_modules/moment/src/lib/units/day-of-year.js +0 -9
- package/dist/node_modules/moment/src/lib/units/era.js +13 -7
- package/dist/node_modules/moment/src/lib/units/hour.js +5 -12
- package/dist/node_modules/moment/src/lib/units/millisecond.js +0 -10
- package/dist/node_modules/moment/src/lib/units/minute.js +7 -12
- package/dist/node_modules/moment/src/lib/units/month.js +38 -28
- package/dist/node_modules/moment/src/lib/units/offset.js +13 -1
- package/dist/node_modules/moment/src/lib/units/priorities.js +18 -5
- package/dist/node_modules/moment/src/lib/units/quarter.js +0 -10
- package/dist/node_modules/moment/src/lib/units/second.js +7 -12
- package/dist/node_modules/moment/src/lib/units/week-calendar-utils.js +22 -8
- package/dist/node_modules/moment/src/lib/units/week-year.js +1 -11
- package/dist/node_modules/moment/src/lib/units/week.js +8 -15
- package/dist/node_modules/moment/src/lib/units/year.js +0 -10
- package/dist/node_modules/moment/src/lib/utils/deprecate.js +1 -1
- package/dist/node_modules/moment/src/locale/am-et.js +62 -0
- package/dist/node_modules/moment/src/locale/ar-dz.js +8 -8
- package/dist/node_modules/moment/src/locale/ar-ly.js +8 -8
- package/dist/node_modules/moment/src/locale/ar-ps.js +112 -0
- package/dist/node_modules/moment/src/locale/ar.js +8 -8
- package/dist/node_modules/moment/src/locale/be.js +2 -2
- package/dist/node_modules/moment/src/locale/bs.js +14 -4
- package/dist/node_modules/moment/src/locale/ca.js +7 -7
- package/dist/node_modules/moment/src/locale/cs.js +5 -4
- package/dist/node_modules/moment/src/locale/cv.js +2 -2
- package/dist/node_modules/moment/src/locale/de-at.js +29 -1
- package/dist/node_modules/moment/src/locale/de-ch.js +29 -1
- package/dist/node_modules/moment/src/locale/de.js +29 -1
- package/dist/node_modules/moment/src/locale/en-au.js +6 -6
- package/dist/node_modules/moment/src/locale/en-ca.js +6 -6
- package/dist/node_modules/moment/src/locale/en-gb.js +6 -6
- package/dist/node_modules/moment/src/locale/en-ie.js +6 -6
- package/dist/node_modules/moment/src/locale/en-il.js +6 -6
- package/dist/node_modules/moment/src/locale/en-in.js +6 -6
- package/dist/node_modules/moment/src/locale/en-nz.js +6 -6
- package/dist/node_modules/moment/src/locale/en-sg.js +6 -6
- package/dist/node_modules/moment/src/locale/hu.js +3 -3
- package/dist/node_modules/moment/src/locale/id.js +12 -1
- package/dist/node_modules/moment/src/locale/it.js +4 -4
- package/dist/node_modules/moment/src/locale/ka.js +1 -1
- package/dist/node_modules/moment/src/locale/ku-kmr.js +121 -0
- package/dist/node_modules/moment/src/locale/lt.js +2 -2
- package/dist/node_modules/moment/src/locale/me.js +2 -2
- package/dist/node_modules/moment/src/locale/nb.js +4 -4
- package/dist/node_modules/moment/src/locale/nl-be.js +2 -2
- package/dist/node_modules/moment/src/locale/nl.js +1 -1
- package/dist/node_modules/moment/src/locale/oc-lnc.js +6 -6
- package/dist/node_modules/moment/src/locale/pl.js +1 -1
- package/dist/node_modules/moment/src/locale/ps.js +177 -0
- package/dist/node_modules/moment/src/locale/pt-br.js +14 -6
- package/dist/node_modules/moment/src/locale/ru.js +2 -2
- package/dist/node_modules/moment/src/locale/sv.js +7 -7
- package/dist/node_modules/moment/src/locale/sw.js +56 -14
- package/dist/node_modules/moment/src/locale/tet.js +6 -6
- package/dist/node_modules/moment/src/locale/tlh.js +8 -8
- package/dist/node_modules/moment/src/locale/tzl.js +2 -2
- package/dist/node_modules/moment/src/locale/uk.js +9 -8
- package/dist/node_modules/moment/src/locale/uz-latn.js +1 -1
- package/dist/node_modules/moment/src/locale/uz.js +1 -1
- package/dist/node_modules/moment/src/locale/x-pseudo.js +6 -6
- package/dist/node_modules/moment/src/moment.js +2 -2
- package/dist/node_modules/moment/ts3.1-typings/moment.d.ts +258 -78
- package/dist/node_modules/semver/package.json +1 -1
- package/package.json +2 -2
- package/dist/node_modules/moment/package.js +0 -11
|
@@ -7,6 +7,23 @@
|
|
|
7
7
|
|
|
8
8
|
import moment from '../moment';
|
|
9
9
|
|
|
10
|
+
var monthsParse = [
|
|
11
|
+
/^jän/i,
|
|
12
|
+
/^feb/i,
|
|
13
|
+
/^mär/i,
|
|
14
|
+
/^apr/i,
|
|
15
|
+
/^mai/i,
|
|
16
|
+
/^jun/i,
|
|
17
|
+
/^jul/i,
|
|
18
|
+
/^aug/i,
|
|
19
|
+
/^sep/i,
|
|
20
|
+
/^okt/i,
|
|
21
|
+
/^nov/i,
|
|
22
|
+
/^dez/i,
|
|
23
|
+
],
|
|
24
|
+
monthsRegex =
|
|
25
|
+
/^(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;
|
|
26
|
+
|
|
10
27
|
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
|
11
28
|
var format = {
|
|
12
29
|
m: ['eine Minute', 'einer Minute'],
|
|
@@ -28,7 +45,18 @@ export default moment.defineLocale('de-at', {
|
|
|
28
45
|
),
|
|
29
46
|
monthsShort:
|
|
30
47
|
'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
|
|
31
|
-
|
|
48
|
+
|
|
49
|
+
monthsRegex: monthsRegex,
|
|
50
|
+
monthsShortRegex: monthsRegex,
|
|
51
|
+
monthsStrictRegex:
|
|
52
|
+
/^(Jänner|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember)/i,
|
|
53
|
+
monthsShortStrictRegex:
|
|
54
|
+
/^(Jän\.?|Feb\.?|März|Mär\.?|Apr\.?|Mai|Juni|Jun\.?|Juli|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i,
|
|
55
|
+
|
|
56
|
+
monthsParse: monthsParse,
|
|
57
|
+
longMonthsParse: monthsParse,
|
|
58
|
+
shortMonthsParse: monthsParse,
|
|
59
|
+
|
|
32
60
|
weekdays:
|
|
33
61
|
'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
|
|
34
62
|
'_'
|
|
@@ -6,6 +6,23 @@
|
|
|
6
6
|
|
|
7
7
|
import moment from '../moment';
|
|
8
8
|
|
|
9
|
+
var monthsParse = [
|
|
10
|
+
/^jan/i,
|
|
11
|
+
/^feb/i,
|
|
12
|
+
/^mär/i,
|
|
13
|
+
/^apr/i,
|
|
14
|
+
/^mai/i,
|
|
15
|
+
/^jun/i,
|
|
16
|
+
/^jul/i,
|
|
17
|
+
/^aug/i,
|
|
18
|
+
/^sep/i,
|
|
19
|
+
/^okt/i,
|
|
20
|
+
/^nov/i,
|
|
21
|
+
/^dez/i,
|
|
22
|
+
],
|
|
23
|
+
monthsRegex =
|
|
24
|
+
/^(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;
|
|
25
|
+
|
|
9
26
|
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
|
10
27
|
var format = {
|
|
11
28
|
m: ['eine Minute', 'einer Minute'],
|
|
@@ -27,7 +44,18 @@ export default moment.defineLocale('de-ch', {
|
|
|
27
44
|
),
|
|
28
45
|
monthsShort:
|
|
29
46
|
'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
|
|
30
|
-
|
|
47
|
+
|
|
48
|
+
monthsRegex: monthsRegex,
|
|
49
|
+
monthsShortRegex: monthsRegex,
|
|
50
|
+
monthsStrictRegex:
|
|
51
|
+
/^(Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember)/i,
|
|
52
|
+
monthsShortStrictRegex:
|
|
53
|
+
/^(Jan\.?|Feb\.?|März|Mär\.?|Apr\.?|Mai|Juni|Jun\.?|Juli|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i,
|
|
54
|
+
|
|
55
|
+
monthsParse: monthsParse,
|
|
56
|
+
longMonthsParse: monthsParse,
|
|
57
|
+
shortMonthsParse: monthsParse,
|
|
58
|
+
|
|
31
59
|
weekdays:
|
|
32
60
|
'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
|
|
33
61
|
'_'
|
|
@@ -6,6 +6,23 @@
|
|
|
6
6
|
|
|
7
7
|
import moment from '../moment';
|
|
8
8
|
|
|
9
|
+
var monthsParse = [
|
|
10
|
+
/^jan/i,
|
|
11
|
+
/^feb/i,
|
|
12
|
+
/^mär/i,
|
|
13
|
+
/^apr/i,
|
|
14
|
+
/^mai/i,
|
|
15
|
+
/^jun/i,
|
|
16
|
+
/^jul/i,
|
|
17
|
+
/^aug/i,
|
|
18
|
+
/^sep/i,
|
|
19
|
+
/^okt/i,
|
|
20
|
+
/^nov/i,
|
|
21
|
+
/^dez/i,
|
|
22
|
+
],
|
|
23
|
+
monthsRegex =
|
|
24
|
+
/^(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;
|
|
25
|
+
|
|
9
26
|
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
|
10
27
|
var format = {
|
|
11
28
|
m: ['eine Minute', 'einer Minute'],
|
|
@@ -27,7 +44,18 @@ export default moment.defineLocale('de', {
|
|
|
27
44
|
),
|
|
28
45
|
monthsShort:
|
|
29
46
|
'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
|
|
30
|
-
|
|
47
|
+
|
|
48
|
+
monthsRegex: monthsRegex,
|
|
49
|
+
monthsShortRegex: monthsRegex,
|
|
50
|
+
monthsStrictRegex:
|
|
51
|
+
/^(Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember)/i,
|
|
52
|
+
monthsShortStrictRegex:
|
|
53
|
+
/^(Jan\.?|Feb\.?|März|Mär\.?|Apr\.?|Mai|Juni|Jun\.?|Juli|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i,
|
|
54
|
+
|
|
55
|
+
monthsParse: monthsParse,
|
|
56
|
+
longMonthsParse: monthsParse,
|
|
57
|
+
shortMonthsParse: monthsParse,
|
|
58
|
+
|
|
31
59
|
weekdays:
|
|
32
60
|
'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
|
|
33
61
|
'_'
|
|
@@ -53,12 +53,12 @@ export default moment.defineLocale('en-au', {
|
|
|
53
53
|
~~((number % 100) / 10) === 1
|
|
54
54
|
? 'th'
|
|
55
55
|
: b === 1
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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-ca', {
|
|
|
53
53
|
~~((number % 100) / 10) === 1
|
|
54
54
|
? 'th'
|
|
55
55
|
: b === 1
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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-gb', {
|
|
|
53
53
|
~~((number % 100) / 10) === 1
|
|
54
54
|
? 'th'
|
|
55
55
|
: b === 1
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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-ie', {
|
|
|
53
53
|
~~((number % 100) / 10) === 1
|
|
54
54
|
? 'th'
|
|
55
55
|
: b === 1
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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-il', {
|
|
|
53
53
|
~~((number % 100) / 10) === 1
|
|
54
54
|
? 'th'
|
|
55
55
|
: b === 1
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
|
19
|
-
? ' másodperc'
|
|
20
|
-
|
|
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: '
|
|
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
|
-
|
|
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
|
-
|
|
74
|
+
? ' '
|
|
75
|
+
: "ll'") +
|
|
76
76
|
']LT'
|
|
77
77
|
);
|
|
78
78
|
}
|
|
@@ -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
|
-
|
|
32
|
-
|
|
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);
|
|
@@ -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: '
|
|
43
|
+
h: 'én time',
|
|
44
44
|
hh: '%d timer',
|
|
45
|
-
d: '
|
|
45
|
+
d: 'én dag',
|
|
46
46
|
dd: '%d dager',
|
|
47
|
-
w: '
|
|
47
|
+
w: 'én uke',
|
|
48
48
|
ww: '%d uker',
|
|
49
|
-
M: '
|
|
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
|
|
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: '
|
|
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',
|
|
@@ -67,12 +67,12 @@ export default moment.defineLocale('oc-lnc', {
|
|
|
67
67
|
number === 1
|
|
68
68
|
? 'r'
|
|
69
69
|
: number === 2
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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()];
|