@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
|
@@ -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:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
15
|
-
|
|
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å
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
? ':a'
|
|
57
|
+
: b === 2
|
|
58
|
+
? ':a'
|
|
59
|
+
: b === 3
|
|
60
|
+
? ':e'
|
|
61
|
+
: ':e';
|
|
62
62
|
return number + output;
|
|
63
63
|
},
|
|
64
64
|
week: {
|
|
@@ -4,6 +4,46 @@
|
|
|
4
4
|
|
|
5
5
|
import moment from '../moment';
|
|
6
6
|
|
|
7
|
+
var relativeTime = {
|
|
8
|
+
ss: 'sekunde %d',
|
|
9
|
+
m: 'dakika moja',
|
|
10
|
+
mm: 'dakika %d',
|
|
11
|
+
h: 'saa moja',
|
|
12
|
+
hh: 'saa %d',
|
|
13
|
+
d: 'siku moja',
|
|
14
|
+
dd: 'siku %d',
|
|
15
|
+
M: 'mwezi mmoja',
|
|
16
|
+
MM: 'miezi %d',
|
|
17
|
+
y: 'mwaka mmoja',
|
|
18
|
+
yy: 'miaka %d',
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
function relativeTimeWithSuffix(number, withoutSuffix, key, isFuture) {
|
|
22
|
+
var output = relativeTime[key].replace(/%d/i, number);
|
|
23
|
+
|
|
24
|
+
if (withoutSuffix || isFuture) {
|
|
25
|
+
return output;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
switch (key) {
|
|
29
|
+
case 'ss':
|
|
30
|
+
case 'mm':
|
|
31
|
+
case 'hh':
|
|
32
|
+
case 'dd':
|
|
33
|
+
return output + (number === 1 ? ' iliyopita' : ' zilizopita');
|
|
34
|
+
case 'm':
|
|
35
|
+
case 'h':
|
|
36
|
+
case 'd':
|
|
37
|
+
return output + ' iliyopita';
|
|
38
|
+
case 'M':
|
|
39
|
+
case 'y':
|
|
40
|
+
return output + ' uliopita';
|
|
41
|
+
case 'MM':
|
|
42
|
+
case 'yy':
|
|
43
|
+
return output + ' iliyopita';
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
7
47
|
export default moment.defineLocale('sw', {
|
|
8
48
|
months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(
|
|
9
49
|
'_'
|
|
@@ -27,26 +67,28 @@ export default moment.defineLocale('sw', {
|
|
|
27
67
|
calendar: {
|
|
28
68
|
sameDay: '[leo saa] LT',
|
|
29
69
|
nextDay: '[kesho saa] LT',
|
|
30
|
-
nextWeek: '[
|
|
70
|
+
nextWeek: 'dddd [ijayo saa] LT',
|
|
31
71
|
lastDay: '[jana] LT',
|
|
32
|
-
lastWeek: '[
|
|
72
|
+
lastWeek: 'dddd [iliyopita saa] LT',
|
|
33
73
|
sameElse: 'L',
|
|
34
74
|
},
|
|
35
75
|
relativeTime: {
|
|
36
76
|
future: '%s baadaye',
|
|
37
|
-
past:
|
|
77
|
+
past: function (output) {
|
|
78
|
+
return output === 'hivi punde' ? 'tokea ' + output : output;
|
|
79
|
+
},
|
|
38
80
|
s: 'hivi punde',
|
|
39
|
-
ss:
|
|
40
|
-
m:
|
|
41
|
-
mm:
|
|
42
|
-
h:
|
|
43
|
-
hh:
|
|
44
|
-
d:
|
|
45
|
-
dd:
|
|
46
|
-
M:
|
|
47
|
-
MM:
|
|
48
|
-
y:
|
|
49
|
-
yy:
|
|
81
|
+
ss: relativeTimeWithSuffix,
|
|
82
|
+
m: relativeTimeWithSuffix,
|
|
83
|
+
mm: relativeTimeWithSuffix,
|
|
84
|
+
h: relativeTimeWithSuffix,
|
|
85
|
+
hh: relativeTimeWithSuffix,
|
|
86
|
+
d: relativeTimeWithSuffix,
|
|
87
|
+
dd: relativeTimeWithSuffix,
|
|
88
|
+
M: relativeTimeWithSuffix,
|
|
89
|
+
MM: relativeTimeWithSuffix,
|
|
90
|
+
y: relativeTimeWithSuffix,
|
|
91
|
+
yy: relativeTimeWithSuffix,
|
|
50
92
|
},
|
|
51
93
|
week: {
|
|
52
94
|
dow: 1, // Monday is the first day of the week.
|
|
@@ -53,12 +53,12 @@ export default moment.defineLocale('tet', {
|
|
|
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: {
|
|
@@ -12,10 +12,10 @@ function translateFuture(output) {
|
|
|
12
12
|
output.indexOf('jaj') !== -1
|
|
13
13
|
? time.slice(0, -3) + 'leS'
|
|
14
14
|
: output.indexOf('jar') !== -1
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
? time.slice(0, -3) + 'waQ'
|
|
16
|
+
: output.indexOf('DIS') !== -1
|
|
17
|
+
? time.slice(0, -3) + 'nem'
|
|
18
|
+
: time + ' pIq';
|
|
19
19
|
return time;
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -25,10 +25,10 @@ function translatePast(output) {
|
|
|
25
25
|
output.indexOf('jaj') !== -1
|
|
26
26
|
? time.slice(0, -3) + 'Hu’'
|
|
27
27
|
: output.indexOf('jar') !== -1
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
? time.slice(0, -3) + 'wen'
|
|
29
|
+
: output.indexOf('DIS') !== -1
|
|
30
|
+
? time.slice(0, -3) + 'ben'
|
|
31
|
+
: time + ' ret';
|
|
32
32
|
return time;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
//! locale : Ukrainian [uk]
|
|
3
3
|
//! author : zemlanin : https://github.com/zemlanin
|
|
4
4
|
//! Author : Menelion Elensúle : https://github.com/Oire
|
|
5
|
+
//! Author : Oleksandr Trukhnii : https://github.com/JohnJunior
|
|
5
6
|
|
|
6
7
|
import moment from '../moment';
|
|
7
8
|
|
|
@@ -10,8 +11,8 @@ function plural(word, num) {
|
|
|
10
11
|
return num % 10 === 1 && num % 100 !== 11
|
|
11
12
|
? forms[0]
|
|
12
13
|
: num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
? forms[1]
|
|
15
|
+
: forms[2];
|
|
15
16
|
}
|
|
16
17
|
function relativeTimeWithPlural(number, withoutSuffix, key) {
|
|
17
18
|
var format = {
|
|
@@ -33,15 +34,15 @@ function relativeTimeWithPlural(number, withoutSuffix, key) {
|
|
|
33
34
|
function weekdaysCaseReplace(m, format) {
|
|
34
35
|
var weekdays = {
|
|
35
36
|
nominative:
|
|
36
|
-
'неділя_понеділок_вівторок_середа_четвер_
|
|
37
|
+
'неділя_понеділок_вівторок_середа_четвер_пʼятниця_субота'.split(
|
|
37
38
|
'_'
|
|
38
39
|
),
|
|
39
40
|
accusative:
|
|
40
|
-
'неділю_понеділок_вівторок_середу_четвер_
|
|
41
|
+
'неділю_понеділок_вівторок_середу_четвер_пʼятницю_суботу'.split(
|
|
41
42
|
'_'
|
|
42
43
|
),
|
|
43
44
|
genitive:
|
|
44
|
-
'неділі_понеділка_вівторка_середи_четверга_
|
|
45
|
+
'неділі_понеділка_вівторка_середи_четверга_пʼятниці_суботи'.split(
|
|
45
46
|
'_'
|
|
46
47
|
),
|
|
47
48
|
},
|
|
@@ -59,8 +60,8 @@ function weekdaysCaseReplace(m, format) {
|
|
|
59
60
|
nounCase = /(\[[ВвУу]\]) ?dddd/.test(format)
|
|
60
61
|
? 'accusative'
|
|
61
62
|
: /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format)
|
|
62
|
-
|
|
63
|
-
|
|
63
|
+
? 'genitive'
|
|
64
|
+
: 'nominative';
|
|
64
65
|
return weekdays[nounCase][m.day()];
|
|
65
66
|
}
|
|
66
67
|
function processHoursFunction(str) {
|
|
@@ -162,6 +163,6 @@ export default moment.defineLocale('uk', {
|
|
|
162
163
|
},
|
|
163
164
|
week: {
|
|
164
165
|
dow: 1, // Monday is the first day of the week.
|
|
165
|
-
doy:
|
|
166
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
166
167
|
},
|
|
167
168
|
});
|
|
@@ -58,12 +58,12 @@ export default moment.defineLocale('x-pseudo', {
|
|
|
58
58
|
~~((number % 100) / 10) === 1
|
|
59
59
|
? 'th'
|
|
60
60
|
: b === 1
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
? 'st'
|
|
62
|
+
: b === 2
|
|
63
|
+
? 'nd'
|
|
64
|
+
: b === 3
|
|
65
|
+
? 'rd'
|
|
66
|
+
: 'th';
|
|
67
67
|
return number + output;
|
|
68
68
|
},
|
|
69
69
|
week: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
//! moment.js
|
|
2
|
-
//! version : 2.
|
|
2
|
+
//! version : 2.31.0
|
|
3
3
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
4
4
|
//! license : MIT
|
|
5
5
|
//! momentjs.com
|
|
6
6
|
|
|
7
7
|
import { hooks as moment, setHookCallback } from './lib/utils/hooks';
|
|
8
8
|
|
|
9
|
-
moment.version = '2.
|
|
9
|
+
moment.version = '2.31.0';
|
|
10
10
|
|
|
11
11
|
import {
|
|
12
12
|
min,
|