esday 0.5.0 → 0.6.3
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/CHANGELOG.md +37 -0
- package/LICENSE +21 -21
- package/README.md +63 -51
- package/chunks/AyQQ6US-.js +84 -0
- package/chunks/{Y32qdU_5.js → BkjWOpMU.js} +7 -1
- package/chunks/{MtjcOKi-.d.ts → C5qDMHT5.d.ts} +2 -2
- package/chunks/{DqhiVwLi.d.ts → CODi8AFH.d.ts} +63 -35
- package/chunks/CXWzCl3n.js +481 -0
- package/chunks/{BRRrAbUl.js → CdvTtmWL.js} +2 -2
- package/chunks/{DXHbH1CI.js → Shk32pTP.js} +1 -1
- package/chunks/{Cb5SvF6r.js → v_QBn7Xm.js} +1 -1
- package/chunks/xt8C2lbv.js +38 -0
- package/index.d.ts +3 -3
- package/index.js +1 -571
- package/locales/af.d.ts +1 -3
- package/locales/af.js +4 -2
- package/locales/am.d.ts +1 -3
- package/locales/am.js +4 -2
- package/locales/ar-dz.d.ts +1 -3
- package/locales/ar-dz.js +7 -9
- package/locales/ar-iq.d.ts +1 -3
- package/locales/ar-iq.js +7 -9
- package/locales/ar-kw.d.ts +1 -3
- package/locales/ar-kw.js +7 -9
- package/locales/ar-ly.d.ts +1 -3
- package/locales/ar-ly.js +7 -9
- package/locales/ar-ma.d.ts +1 -3
- package/locales/ar-ma.js +7 -9
- package/locales/ar-sa.d.ts +1 -3
- package/locales/ar-sa.js +7 -9
- package/locales/ar-tn.d.ts +1 -3
- package/locales/ar-tn.js +7 -9
- package/locales/ar.d.ts +1 -3
- package/locales/ar.js +197 -2
- package/locales/az.d.ts +1 -3
- package/locales/az.js +4 -2
- package/locales/be.d.ts +1 -3
- package/locales/be.js +55 -59
- package/locales/bg.d.ts +1 -3
- package/locales/bg.js +4 -2
- package/locales/bi.d.ts +1 -3
- package/locales/bi.js +4 -2
- package/locales/bm.d.ts +1 -3
- package/locales/bm.js +4 -2
- package/locales/bn-bd.d.ts +1 -3
- package/locales/bn-bd.js +7 -9
- package/locales/bn.d.ts +1 -3
- package/locales/bn.js +136 -2
- package/locales/bo.d.ts +1 -3
- package/locales/bo.js +4 -2
- package/locales/br.d.ts +1 -3
- package/locales/br.js +10 -9
- package/locales/bs.d.ts +1 -3
- package/locales/bs.js +4 -2
- package/locales/ca.d.ts +1 -3
- package/locales/ca.js +35 -36
- package/locales/cs.d.ts +1 -3
- package/locales/cs.js +38 -34
- package/locales/cv.d.ts +1 -3
- package/locales/cv.js +4 -2
- package/locales/cy.d.ts +1 -3
- package/locales/cy.js +4 -2
- package/locales/da.d.ts +1 -3
- package/locales/da.js +4 -2
- package/locales/de-at.d.ts +1 -3
- package/locales/de-at.js +7 -9
- package/locales/de-ch.d.ts +1 -3
- package/locales/de-ch.js +7 -9
- package/locales/de.d.ts +1 -3
- package/locales/de.js +130 -2
- package/locales/dv.d.ts +1 -3
- package/locales/dv.js +4 -2
- package/locales/el.d.ts +1 -3
- package/locales/el.js +4 -2
- package/locales/en-au.d.ts +1 -3
- package/locales/en-au.js +7 -8
- package/locales/en-ca.d.ts +1 -3
- package/locales/en-ca.js +7 -8
- package/locales/en-gb.d.ts +1 -3
- package/locales/en-gb.js +9 -8
- package/locales/en-ie.d.ts +1 -3
- package/locales/en-ie.js +7 -8
- package/locales/en-il.d.ts +1 -3
- package/locales/en-il.js +7 -8
- package/locales/en-in.d.ts +1 -3
- package/locales/en-in.js +7 -8
- package/locales/en-nz.d.ts +1 -3
- package/locales/en-nz.js +7 -8
- package/locales/en-sg.d.ts +1 -3
- package/locales/en-sg.js +7 -8
- package/locales/en-tt.d.ts +1 -3
- package/locales/en-tt.js +7 -8
- package/locales/en-us.d.ts +1 -3
- package/locales/en-us.js +7 -8
- package/locales/en.d.ts +1 -3
- package/locales/en.js +116 -2
- package/locales/eo.d.ts +1 -3
- package/locales/eo.js +4 -2
- package/locales/es-do.d.ts +1 -3
- package/locales/es-do.js +7 -9
- package/locales/es-mx.d.ts +1 -3
- package/locales/es-mx.js +7 -9
- package/locales/es-pr.d.ts +1 -3
- package/locales/es-pr.js +7 -9
- package/locales/es-us.d.ts +1 -3
- package/locales/es-us.js +7 -9
- package/locales/es.d.ts +1 -3
- package/locales/es.js +117 -2
- package/locales/et.d.ts +1 -3
- package/locales/et.js +6 -2
- package/locales/eu.d.ts +1 -3
- package/locales/eu.js +4 -2
- package/locales/fa.d.ts +1 -3
- package/locales/fa.js +4 -2
- package/locales/fi.d.ts +1 -3
- package/locales/fi.js +8 -2
- package/locales/fil.d.ts +1 -3
- package/locales/fil.js +4 -2
- package/locales/fo.d.ts +1 -3
- package/locales/fo.js +4 -2
- package/locales/fr-ca.d.ts +1 -3
- package/locales/fr-ca.js +7 -9
- package/locales/fr-ch.d.ts +1 -3
- package/locales/fr-ch.js +7 -9
- package/locales/fr.d.ts +1 -3
- package/locales/fr.js +109 -2
- package/locales/fy.d.ts +1 -3
- package/locales/fy.js +4 -2
- package/locales/ga.d.ts +1 -3
- package/locales/ga.js +4 -2
- package/locales/gd.d.ts +1 -3
- package/locales/gd.js +4 -2
- package/locales/gl.d.ts +1 -3
- package/locales/gl.js +4 -2
- package/locales/gom-deva.d.ts +1 -3
- package/locales/gom-deva.js +34 -32
- package/locales/gom-latn.d.ts +1 -3
- package/locales/gom-latn.js +34 -32
- package/locales/gu.d.ts +1 -3
- package/locales/gu.js +4 -2
- package/locales/he.d.ts +1 -3
- package/locales/he.js +8 -5
- package/locales/hi.d.ts +1 -3
- package/locales/hi.js +34 -35
- package/locales/hr.d.ts +1 -3
- package/locales/hr.js +10 -4
- package/locales/ht.d.ts +1 -3
- package/locales/ht.js +4 -2
- package/locales/hu.d.ts +1 -3
- package/locales/hu.js +6 -2
- package/locales/hy-am.d.ts +1 -3
- package/locales/hy-am.js +34 -35
- package/locales/id.d.ts +1 -3
- package/locales/id.js +4 -2
- package/locales/is.d.ts +1 -3
- package/locales/is.js +14 -2
- package/locales/it-ch.d.ts +1 -3
- package/locales/it-ch.js +4 -9
- package/locales/it.d.ts +1 -3
- package/locales/it.js +120 -2
- package/locales/ja.d.ts +1 -4
- package/locales/ja.js +4 -2
- package/locales/jv.d.ts +1 -3
- package/locales/jv.js +4 -2
- package/locales/ka.d.ts +1 -3
- package/locales/ka.js +25 -26
- package/locales/kk.d.ts +1 -3
- package/locales/kk.js +4 -2
- package/locales/km.d.ts +1 -3
- package/locales/km.js +4 -2
- package/locales/kn.d.ts +1 -3
- package/locales/kn.js +4 -2
- package/locales/ko.d.ts +1 -3
- package/locales/ko.js +5 -3
- package/locales/ku.d.ts +1 -3
- package/locales/ku.js +4 -2
- package/locales/ky.d.ts +1 -3
- package/locales/ky.js +4 -2
- package/locales/lb.d.ts +1 -3
- package/locales/lb.js +5 -2
- package/locales/lo.d.ts +1 -3
- package/locales/lo.js +4 -2
- package/locales/lt.d.ts +1 -3
- package/locales/lt.js +4 -2
- package/locales/lv.d.ts +1 -3
- package/locales/lv.js +4 -2
- package/locales/me.d.ts +1 -3
- package/locales/me.js +33 -33
- package/locales/mi.d.ts +1 -3
- package/locales/mi.js +4 -2
- package/locales/mk.d.ts +1 -3
- package/locales/mk.js +4 -2
- package/locales/ml.d.ts +1 -3
- package/locales/ml.js +4 -2
- package/locales/mn.d.ts +1 -3
- package/locales/mn.js +37 -16
- package/locales/mr.d.ts +1 -3
- package/locales/mr.js +16 -2
- package/locales/ms-my.d.ts +1 -3
- package/locales/ms-my.js +7 -9
- package/locales/ms.d.ts +1 -3
- package/locales/ms.js +107 -2
- package/locales/mt.d.ts +1 -3
- package/locales/mt.js +4 -2
- package/locales/my.d.ts +1 -3
- package/locales/my.js +4 -2
- package/locales/nb.d.ts +1 -3
- package/locales/nb.js +4 -2
- package/locales/ne.d.ts +1 -3
- package/locales/ne.js +4 -2
- package/locales/nl-be.d.ts +1 -3
- package/locales/nl-be.js +7 -9
- package/locales/nl.d.ts +1 -3
- package/locales/nl.js +107 -2
- package/locales/nn.d.ts +1 -3
- package/locales/nn.js +4 -2
- package/locales/oc-lnc.d.ts +1 -3
- package/locales/oc-lnc.js +35 -36
- package/locales/pa-in.d.ts +1 -3
- package/locales/pa-in.js +4 -2
- package/locales/pl.d.ts +1 -3
- package/locales/pl.js +5 -2
- package/locales/pt-br.d.ts +1 -3
- package/locales/pt-br.js +7 -9
- package/locales/pt.d.ts +1 -3
- package/locales/pt.js +109 -2
- package/locales/rn.d.ts +1 -3
- package/locales/rn.js +4 -2
- package/locales/ro.d.ts +1 -3
- package/locales/ro.js +4 -2
- package/locales/ru.d.ts +1 -4
- package/locales/ru.js +83 -82
- package/locales/rw.d.ts +1 -3
- package/locales/rw.js +4 -2
- package/locales/sd.d.ts +1 -3
- package/locales/sd.js +4 -2
- package/locales/se.d.ts +1 -3
- package/locales/se.js +4 -2
- package/locales/si.d.ts +1 -3
- package/locales/si.js +4 -2
- package/locales/sk.d.ts +1 -3
- package/locales/sk.js +8 -2
- package/locales/sl.d.ts +1 -3
- package/locales/sl.js +8 -2
- package/locales/sq.d.ts +1 -3
- package/locales/sq.js +4 -2
- package/locales/sr-cyrl.d.ts +1 -3
- package/locales/sr-cyrl.js +16 -15
- package/locales/sr.d.ts +1 -3
- package/locales/sr.js +185 -2
- package/locales/ss.d.ts +1 -3
- package/locales/ss.js +4 -2
- package/locales/sv-fi.d.ts +1 -3
- package/locales/sv-fi.js +7 -9
- package/locales/sv.d.ts +1 -3
- package/locales/sv.js +110 -2
- package/locales/sw.d.ts +1 -3
- package/locales/sw.js +4 -2
- package/locales/ta.d.ts +1 -3
- package/locales/ta.js +4 -2
- package/locales/te.d.ts +1 -3
- package/locales/te.js +4 -2
- package/locales/tet.d.ts +1 -3
- package/locales/tet.js +5 -4
- package/locales/tg.d.ts +1 -3
- package/locales/tg.js +34 -35
- package/locales/th.d.ts +1 -3
- package/locales/th.js +4 -2
- package/locales/tk.d.ts +1 -3
- package/locales/tk.js +5 -4
- package/locales/tl-ph.d.ts +1 -3
- package/locales/tl-ph.js +4 -2
- package/locales/tlh.d.ts +1 -3
- package/locales/tlh.js +5 -2
- package/locales/tr.d.ts +1 -3
- package/locales/tr.js +5 -4
- package/locales/tzl.d.ts +1 -3
- package/locales/tzl.js +4 -2
- package/locales/tzm-latn.d.ts +1 -3
- package/locales/tzm-latn.js +9 -9
- package/locales/tzm.d.ts +1 -3
- package/locales/tzm.js +107 -2
- package/locales/ug-cn.d.ts +1 -3
- package/locales/ug-cn.js +4 -2
- package/locales/uk.d.ts +1 -3
- package/locales/uk.js +37 -32
- package/locales/ur.d.ts +1 -3
- package/locales/ur.js +4 -2
- package/locales/uz-latn.d.ts +1 -3
- package/locales/uz-latn.js +9 -9
- package/locales/uz.d.ts +1 -3
- package/locales/uz.js +107 -2
- package/locales/vi.d.ts +1 -3
- package/locales/vi.js +4 -2
- package/locales/x-pseudo.d.ts +1 -3
- package/locales/x-pseudo.js +5 -4
- package/locales/yo.d.ts +1 -3
- package/locales/yo.js +4 -2
- package/locales/zh-cn.d.ts +1 -3
- package/locales/zh-cn.js +7 -9
- package/locales/zh-hk.d.ts +1 -3
- package/locales/zh-hk.js +7 -9
- package/locales/zh-mo.d.ts +1 -3
- package/locales/zh-mo.js +7 -9
- package/locales/zh-tw.d.ts +1 -3
- package/locales/zh-tw.js +7 -9
- package/locales/zh.d.ts +1 -4
- package/locales/zh.js +128 -2
- package/package.json +29 -23
- package/plugins/advancedFormat/index.d.ts +1 -3
- package/plugins/advancedFormat/index.js +4 -6
- package/plugins/advancedParse/index.d.ts +1 -3
- package/plugins/advancedParse/index.js +21 -20
- package/plugins/calendar/index.d.ts +2 -4
- package/plugins/calendar/index.js +1 -2
- package/plugins/dayOfYear/index.d.ts +1 -2
- package/plugins/dayOfYear/index.js +1 -2
- package/plugins/duration/index.d.ts +78 -0
- package/plugins/duration/index.js +477 -0
- package/plugins/isBetween/index.d.ts +1 -2
- package/plugins/isBetween/index.js +2 -3
- package/plugins/isLeapYear/index.d.ts +1 -2
- package/plugins/isLeapYear/index.js +1 -2
- package/plugins/isSameOrAfter/index.d.ts +1 -2
- package/plugins/isSameOrAfter/index.js +1 -2
- package/plugins/isSameOrBefore/index.d.ts +1 -2
- package/plugins/isSameOrBefore/index.js +1 -2
- package/plugins/isToday/index.d.ts +1 -2
- package/plugins/isToday/index.js +2 -3
- package/plugins/isTomorrow/index.d.ts +1 -2
- package/plugins/isTomorrow/index.js +2 -3
- package/plugins/isYesterday/index.d.ts +1 -2
- package/plugins/isYesterday/index.js +2 -3
- package/plugins/isoWeek/index.d.ts +1 -3
- package/plugins/isoWeek/index.js +13 -25
- package/plugins/locale/index.d.ts +103 -3
- package/plugins/locale/index.js +140 -6
- package/plugins/localeData/index.d.ts +1 -3
- package/plugins/localeData/index.js +18 -11
- package/plugins/localizedFormat/index.d.ts +1 -3
- package/plugins/localizedFormat/index.js +5 -10
- package/plugins/localizedParse/index.d.ts +1 -3
- package/plugins/localizedParse/index.js +40 -22
- package/plugins/minMax/index.d.ts +1 -2
- package/plugins/minMax/index.js +2 -3
- package/plugins/objectSupport/index.d.ts +1 -3
- package/plugins/objectSupport/index.js +33 -38
- package/plugins/pluralGetSet/index.d.ts +1 -3
- package/plugins/pluralGetSet/index.js +1 -2
- package/plugins/quarterOfYear/index.d.ts +1 -3
- package/plugins/quarterOfYear/index.js +11 -18
- package/plugins/relativeTime/index.d.ts +32 -44
- package/plugins/relativeTime/index.js +124 -91
- package/plugins/timezone/index.d.ts +6 -0
- package/plugins/timezone/index.js +456 -0
- package/plugins/toArray/index.d.ts +1 -2
- package/plugins/toArray/index.js +1 -2
- package/plugins/toObject/index.d.ts +1 -2
- package/plugins/toObject/index.js +1 -2
- package/plugins/utc/index.d.ts +1 -2
- package/plugins/utc/index.js +37 -39
- package/plugins/week/index.d.ts +1 -3
- package/plugins/week/index.js +17 -27
- package/chunks/B5f9poqo.js +0 -120
- package/chunks/BDssPbM_.js +0 -106
- package/chunks/BXRGSAJG.js +0 -128
- package/chunks/BeVgU2nj.js +0 -188
- package/chunks/BtmEtAW3.js +0 -43
- package/chunks/CQ57zhVp.js +0 -106
- package/chunks/CQJ0-ZuR.js +0 -106
- package/chunks/CWqzr5E5.js +0 -108
- package/chunks/Cg4ZI9v8.js +0 -180
- package/chunks/CoBtJ4c1.js +0 -144
- package/chunks/D009Z-ld.js +0 -109
- package/chunks/DMtTiWuY.js +0 -127
- package/chunks/Dixb5KKs.js +0 -116
- package/chunks/DjY7KvwG.js +0 -28
- package/chunks/GjKpN6U-.js +0 -135
- package/chunks/St35qgL0.d.ts +0 -103
- package/chunks/br7kModF.js +0 -110
- package/chunks/l2Rxo2H0.js +0 -106
- package/chunks/tfkJ5D3p.js +0 -115
package/locales/oc-lnc.js
CHANGED
|
@@ -1,37 +1,4 @@
|
|
|
1
1
|
//#region src/locales/oc-lnc.ts
|
|
2
|
-
const monthFormat = [
|
|
3
|
-
"de genièr",
|
|
4
|
-
"de febrièr",
|
|
5
|
-
"de març",
|
|
6
|
-
`d'abril`,
|
|
7
|
-
"de mai",
|
|
8
|
-
"de junh",
|
|
9
|
-
"de julhet",
|
|
10
|
-
`d'agost`,
|
|
11
|
-
"de setembre",
|
|
12
|
-
`d'octòbre`,
|
|
13
|
-
"de novembre",
|
|
14
|
-
"de decembre"
|
|
15
|
-
];
|
|
16
|
-
const monthStandalone = [
|
|
17
|
-
"genièr",
|
|
18
|
-
"febrièr",
|
|
19
|
-
"març",
|
|
20
|
-
"abril",
|
|
21
|
-
"mai",
|
|
22
|
-
"junh",
|
|
23
|
-
"julhet",
|
|
24
|
-
"agost",
|
|
25
|
-
"setembre",
|
|
26
|
-
"octòbre",
|
|
27
|
-
"novembre",
|
|
28
|
-
"decembre"
|
|
29
|
-
];
|
|
30
|
-
const months = {
|
|
31
|
-
standalone: monthStandalone,
|
|
32
|
-
format: monthFormat,
|
|
33
|
-
isFormat: /D[oD]?(\s)+MMMM/
|
|
34
|
-
};
|
|
35
2
|
const localeOcLnc = {
|
|
36
3
|
name: "oc-LNC",
|
|
37
4
|
weekdays: [
|
|
@@ -61,7 +28,37 @@ const localeOcLnc = {
|
|
|
61
28
|
"dv",
|
|
62
29
|
"ds"
|
|
63
30
|
],
|
|
64
|
-
months
|
|
31
|
+
months: {
|
|
32
|
+
standalone: [
|
|
33
|
+
"genièr",
|
|
34
|
+
"febrièr",
|
|
35
|
+
"març",
|
|
36
|
+
"abril",
|
|
37
|
+
"mai",
|
|
38
|
+
"junh",
|
|
39
|
+
"julhet",
|
|
40
|
+
"agost",
|
|
41
|
+
"setembre",
|
|
42
|
+
"octòbre",
|
|
43
|
+
"novembre",
|
|
44
|
+
"decembre"
|
|
45
|
+
],
|
|
46
|
+
format: [
|
|
47
|
+
"de genièr",
|
|
48
|
+
"de febrièr",
|
|
49
|
+
"de març",
|
|
50
|
+
`d'abril`,
|
|
51
|
+
"de mai",
|
|
52
|
+
"de junh",
|
|
53
|
+
"de julhet",
|
|
54
|
+
`d'agost`,
|
|
55
|
+
"de setembre",
|
|
56
|
+
`d'octòbre`,
|
|
57
|
+
"de novembre",
|
|
58
|
+
"de decembre"
|
|
59
|
+
],
|
|
60
|
+
isFormat: /D[oD]?(\s)+MMMM/
|
|
61
|
+
},
|
|
65
62
|
monthsShort: [
|
|
66
63
|
"gen",
|
|
67
64
|
"feb",
|
|
@@ -76,6 +73,7 @@ const localeOcLnc = {
|
|
|
76
73
|
"nov",
|
|
77
74
|
"dec"
|
|
78
75
|
],
|
|
76
|
+
dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
|
|
79
77
|
ordinal: (n) => `${n}º`,
|
|
80
78
|
weekStart: 1,
|
|
81
79
|
yearStart: 4,
|
|
@@ -110,6 +108,8 @@ const localeOcLnc = {
|
|
|
110
108
|
hh: "%d oras",
|
|
111
109
|
d: "un jorn",
|
|
112
110
|
dd: "%d jorns",
|
|
111
|
+
w: "un setmana",
|
|
112
|
+
ww: "%d setmanas",
|
|
113
113
|
M: "un mes",
|
|
114
114
|
MM: "%d meses",
|
|
115
115
|
y: "un an",
|
|
@@ -120,7 +120,6 @@ const localeOcLnc = {
|
|
|
120
120
|
return isLowercase ? m.toLowerCase() : m;
|
|
121
121
|
}
|
|
122
122
|
};
|
|
123
|
-
var oc_lnc_default = localeOcLnc;
|
|
124
123
|
|
|
125
124
|
//#endregion
|
|
126
|
-
export {
|
|
125
|
+
export { localeOcLnc as default };
|
package/locales/pa-in.d.ts
CHANGED
package/locales/pa-in.js
CHANGED
|
@@ -68,6 +68,7 @@ const localePaIn = {
|
|
|
68
68
|
],
|
|
69
69
|
months,
|
|
70
70
|
monthsShort: months,
|
|
71
|
+
dayOfMonthOrdinalParse: /\d{1,2}/,
|
|
71
72
|
ordinal: (n) => `${n}`,
|
|
72
73
|
weekStart: 0,
|
|
73
74
|
yearStart: 1,
|
|
@@ -102,6 +103,8 @@ const localePaIn = {
|
|
|
102
103
|
hh: "%d ساعات",
|
|
103
104
|
d: "يوم واحد",
|
|
104
105
|
dd: "%d أيام",
|
|
106
|
+
w: "أسبوع واحد",
|
|
107
|
+
ww: "%d أسابيع",
|
|
105
108
|
M: "شهر واحد",
|
|
106
109
|
MM: "%d أشهر",
|
|
107
110
|
y: "عام واحد",
|
|
@@ -117,7 +120,6 @@ const localePaIn = {
|
|
|
117
120
|
preParse: (dateString) => dateString.replace(/[١٢٣٤٥٦٧٨٩٠]/g, (match) => punjabiToEnglishNumbersMap[match]),
|
|
118
121
|
postFormat: (formattedDate) => formattedDate.replace(/\d/g, (match) => englishToPunjabiNumbersMap[Number(match)])
|
|
119
122
|
};
|
|
120
|
-
var pa_in_default = localePaIn;
|
|
121
123
|
|
|
122
124
|
//#endregion
|
|
123
|
-
export {
|
|
125
|
+
export { localePaIn as default };
|
package/locales/pl.d.ts
CHANGED
package/locales/pl.js
CHANGED
|
@@ -45,6 +45,7 @@ const relativeTimeFormatter = (timeValue, withoutSuffix, token) => {
|
|
|
45
45
|
case "mm": return `${result} ${usePlural(+timeValue) ? "minuty" : "minut"}`;
|
|
46
46
|
case "h": return withoutSuffix ? "godzina" : "godzinę";
|
|
47
47
|
case "hh": return `${result} ${usePlural(+timeValue) ? "godziny" : "godzin"}`;
|
|
48
|
+
case "ww": return `${result} ${usePlural(+timeValue) ? "tygodnie" : "tygodni"}`;
|
|
48
49
|
case "MM": return `${result} ${usePlural(+timeValue) ? "miesiące" : "miesięcy"}`;
|
|
49
50
|
case "yy": return `${result} ${usePlural(+timeValue) ? "lata" : "lat"}`;
|
|
50
51
|
default: return "";
|
|
@@ -94,6 +95,7 @@ const localePl = {
|
|
|
94
95
|
"lis",
|
|
95
96
|
"gru"
|
|
96
97
|
],
|
|
98
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
|
97
99
|
ordinal: (n) => `${n}.`,
|
|
98
100
|
weekStart: 1,
|
|
99
101
|
yearStart: 4,
|
|
@@ -143,6 +145,8 @@ const localePl = {
|
|
|
143
145
|
hh: relativeTimeFormatter,
|
|
144
146
|
d: "1 dzień",
|
|
145
147
|
dd: "%d dni",
|
|
148
|
+
w: "tydzień",
|
|
149
|
+
ww: relativeTimeFormatter,
|
|
146
150
|
M: "miesiąc",
|
|
147
151
|
MM: relativeTimeFormatter,
|
|
148
152
|
y: "rok",
|
|
@@ -153,7 +157,6 @@ const localePl = {
|
|
|
153
157
|
return isLowercase ? m.toLowerCase() : m;
|
|
154
158
|
}
|
|
155
159
|
};
|
|
156
|
-
var pl_default = localePl;
|
|
157
160
|
|
|
158
161
|
//#endregion
|
|
159
|
-
export {
|
|
162
|
+
export { localePl as default };
|
package/locales/pt-br.d.ts
CHANGED
package/locales/pt-br.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "
|
|
3
|
-
import "../chunks/DjY7KvwG.js";
|
|
4
|
-
import "../chunks/tfkJ5D3p.js";
|
|
5
|
-
import { cloneLocale, setLocaleProperty } from "../chunks/CoBtJ4c1.js";
|
|
6
|
-
import { pt_default } from "../chunks/CWqzr5E5.js";
|
|
1
|
+
import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.js";
|
|
2
|
+
import localePt from "./pt.js";
|
|
7
3
|
|
|
8
4
|
//#region src/locales/pt-br.ts
|
|
9
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Portuguese (Brazil) [pt-BR]
|
|
7
|
+
*/
|
|
8
|
+
const localePtBr = cloneLocale(localePt);
|
|
10
9
|
const weekdays = [
|
|
11
10
|
"domingo",
|
|
12
11
|
"segunda-feira",
|
|
@@ -47,7 +46,6 @@ setLocaleProperty(localePtBr, "weekdaysShort", weekdaysShort);
|
|
|
47
46
|
setLocaleProperty(localePtBr, "weekdaysMin", weekdaysMin);
|
|
48
47
|
setLocaleProperty(localePtBr, "formats", formats);
|
|
49
48
|
setLocaleProperty(localePtBr, "relativeTime", relativeTime);
|
|
50
|
-
var pt_br_default = localePtBr;
|
|
51
49
|
|
|
52
50
|
//#endregion
|
|
53
|
-
export {
|
|
51
|
+
export { localePtBr as default };
|
package/locales/pt.d.ts
CHANGED
package/locales/pt.js
CHANGED
|
@@ -1,3 +1,110 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/locales/pt.ts
|
|
2
|
+
const localePt = {
|
|
3
|
+
name: "pt",
|
|
4
|
+
weekdays: [
|
|
5
|
+
"domingo",
|
|
6
|
+
"segunda-feira",
|
|
7
|
+
"terça-feira",
|
|
8
|
+
"quarta-feira",
|
|
9
|
+
"quinta-feira",
|
|
10
|
+
"sexta-feira",
|
|
11
|
+
"sábado"
|
|
12
|
+
],
|
|
13
|
+
weekdaysShort: [
|
|
14
|
+
"dom",
|
|
15
|
+
"seg",
|
|
16
|
+
"ter",
|
|
17
|
+
"qua",
|
|
18
|
+
"qui",
|
|
19
|
+
"sex",
|
|
20
|
+
"sab"
|
|
21
|
+
],
|
|
22
|
+
weekdaysMin: [
|
|
23
|
+
"Do",
|
|
24
|
+
"2ª",
|
|
25
|
+
"3ª",
|
|
26
|
+
"4ª",
|
|
27
|
+
"5ª",
|
|
28
|
+
"6ª",
|
|
29
|
+
"Sa"
|
|
30
|
+
],
|
|
31
|
+
months: [
|
|
32
|
+
"janeiro",
|
|
33
|
+
"fevereiro",
|
|
34
|
+
"março",
|
|
35
|
+
"abril",
|
|
36
|
+
"maio",
|
|
37
|
+
"junho",
|
|
38
|
+
"julho",
|
|
39
|
+
"agosto",
|
|
40
|
+
"setembro",
|
|
41
|
+
"outubro",
|
|
42
|
+
"novembro",
|
|
43
|
+
"dezembro"
|
|
44
|
+
],
|
|
45
|
+
monthsShort: [
|
|
46
|
+
"jan",
|
|
47
|
+
"fev",
|
|
48
|
+
"mar",
|
|
49
|
+
"abr",
|
|
50
|
+
"mai",
|
|
51
|
+
"jun",
|
|
52
|
+
"jul",
|
|
53
|
+
"ago",
|
|
54
|
+
"set",
|
|
55
|
+
"out",
|
|
56
|
+
"nov",
|
|
57
|
+
"dez"
|
|
58
|
+
],
|
|
59
|
+
dayOfMonthOrdinalParse: /\d{1,2}º/,
|
|
60
|
+
ordinal: (n) => `${n}º`,
|
|
61
|
+
weekStart: 1,
|
|
62
|
+
yearStart: 4,
|
|
63
|
+
formats: {
|
|
64
|
+
LT: "HH:mm",
|
|
65
|
+
LTS: "HH:mm:ss",
|
|
66
|
+
L: "DD/MM/YYYY",
|
|
67
|
+
LL: "D [de] MMMM [de] YYYY",
|
|
68
|
+
LLL: "D [de] MMMM [de] YYYY [às] HH:mm",
|
|
69
|
+
LLLL: "dddd, D [de] MMMM [de] YYYY [às] HH:mm",
|
|
70
|
+
l: "DD/MM/YYYY",
|
|
71
|
+
ll: "D [de] MMMM [de] YYYY",
|
|
72
|
+
lll: "D [de] MMMM [de] YYYY [às] HH:mm",
|
|
73
|
+
llll: "dddd, D [de] MMMM [de] YYYY [às] HH:mm"
|
|
74
|
+
},
|
|
75
|
+
calendar: {
|
|
76
|
+
sameDay: "[Hoje às] LT",
|
|
77
|
+
nextDay: "[Amanhã às] LT",
|
|
78
|
+
nextWeek: "dddd [às] LT",
|
|
79
|
+
lastDay: "[Ontem às] LT",
|
|
80
|
+
lastWeek() {
|
|
81
|
+
return this.day() === 0 || this.day() === 6 ? "[Último] dddd [às] LT" : "[Última] dddd [às] LT";
|
|
82
|
+
},
|
|
83
|
+
sameElse: "L"
|
|
84
|
+
},
|
|
85
|
+
relativeTime: {
|
|
86
|
+
future: "em %s",
|
|
87
|
+
past: "há %s",
|
|
88
|
+
s: "alguns segundos",
|
|
89
|
+
ss: "%d segundos",
|
|
90
|
+
m: "um minuto",
|
|
91
|
+
mm: "%d minutos",
|
|
92
|
+
h: "uma hora",
|
|
93
|
+
hh: "%d horas",
|
|
94
|
+
d: "um dia",
|
|
95
|
+
dd: "%d dias",
|
|
96
|
+
w: "uma semana",
|
|
97
|
+
ww: "%d semanas",
|
|
98
|
+
M: "um mês",
|
|
99
|
+
MM: "%d meses",
|
|
100
|
+
y: "um ano",
|
|
101
|
+
yy: "%d anos"
|
|
102
|
+
},
|
|
103
|
+
meridiem: (hour, _minute, isLowercase) => {
|
|
104
|
+
const m = hour < 12 ? "AM" : "PM";
|
|
105
|
+
return isLowercase ? m.toLowerCase() : m;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
2
108
|
|
|
3
|
-
|
|
109
|
+
//#endregion
|
|
110
|
+
export { localePt as default };
|
package/locales/rn.d.ts
CHANGED
package/locales/rn.js
CHANGED
|
@@ -56,6 +56,7 @@ const localeRn = {
|
|
|
56
56
|
"Muny",
|
|
57
57
|
"Kig"
|
|
58
58
|
],
|
|
59
|
+
dayOfMonthOrdinalParse: /\d{1,2}/,
|
|
59
60
|
ordinal: (n) => `${n}.`,
|
|
60
61
|
weekStart: 1,
|
|
61
62
|
yearStart: 4,
|
|
@@ -90,6 +91,8 @@ const localeRn = {
|
|
|
90
91
|
hh: "%d amasaha",
|
|
91
92
|
d: "Umunsi",
|
|
92
93
|
dd: "%d iminsi",
|
|
94
|
+
w: "icyumweru",
|
|
95
|
+
ww: "Ibyumweru %d",
|
|
93
96
|
M: "ukwezi",
|
|
94
97
|
MM: "%d amezi",
|
|
95
98
|
y: "umwaka",
|
|
@@ -100,7 +103,6 @@ const localeRn = {
|
|
|
100
103
|
return isLowercase ? m.toLowerCase() : m;
|
|
101
104
|
}
|
|
102
105
|
};
|
|
103
|
-
var rn_default = localeRn;
|
|
104
106
|
|
|
105
107
|
//#endregion
|
|
106
|
-
export {
|
|
108
|
+
export { localeRn as default };
|
package/locales/ro.d.ts
CHANGED
package/locales/ro.js
CHANGED
|
@@ -56,6 +56,7 @@ const localeRo = {
|
|
|
56
56
|
"Nov.",
|
|
57
57
|
"Dec."
|
|
58
58
|
],
|
|
59
|
+
dayOfMonthOrdinalParse: /\d{1,2}/,
|
|
59
60
|
ordinal: (n) => `${n}`,
|
|
60
61
|
weekStart: 1,
|
|
61
62
|
yearStart: 4,
|
|
@@ -90,6 +91,8 @@ const localeRo = {
|
|
|
90
91
|
hh: "%d ore",
|
|
91
92
|
d: "o zi",
|
|
92
93
|
dd: "%d zile",
|
|
94
|
+
w: "o săptămână",
|
|
95
|
+
ww: "%d săptămâni",
|
|
93
96
|
M: "o lună",
|
|
94
97
|
MM: "%d luni",
|
|
95
98
|
y: "un an",
|
|
@@ -100,7 +103,6 @@ const localeRo = {
|
|
|
100
103
|
return isLowercase ? m.toLowerCase() : m;
|
|
101
104
|
}
|
|
102
105
|
};
|
|
103
|
-
var ro_default = localeRo;
|
|
104
106
|
|
|
105
107
|
//#endregion
|
|
106
|
-
export {
|
|
108
|
+
export { localeRo as default };
|
package/locales/ru.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../chunks/MtjcOKi-.js";
|
|
3
|
-
import { Locale } from "../chunks/St35qgL0.js";
|
|
1
|
+
import { Locale } from "../plugins/locale/index.js";
|
|
4
2
|
|
|
5
3
|
//#region src/locales/ru.d.ts
|
|
6
|
-
|
|
7
4
|
declare module 'esday' {
|
|
8
5
|
interface EsDay {
|
|
9
6
|
week(): number;
|
package/locales/ru.js
CHANGED
|
@@ -1,90 +1,84 @@
|
|
|
1
1
|
//#region src/locales/ru.ts
|
|
2
|
-
const dayNamesFormat = [
|
|
3
|
-
"воскресенье",
|
|
4
|
-
"понедельник",
|
|
5
|
-
"вторник",
|
|
6
|
-
"среду",
|
|
7
|
-
"четверг",
|
|
8
|
-
"пятницу",
|
|
9
|
-
"субботу"
|
|
10
|
-
];
|
|
11
|
-
const dayNamesStandalone = [
|
|
12
|
-
"воскресенье",
|
|
13
|
-
"понедельник",
|
|
14
|
-
"вторник",
|
|
15
|
-
"среда",
|
|
16
|
-
"четверг",
|
|
17
|
-
"пятница",
|
|
18
|
-
"суббота"
|
|
19
|
-
];
|
|
20
2
|
const weekdays = {
|
|
21
|
-
standalone:
|
|
22
|
-
|
|
3
|
+
standalone: [
|
|
4
|
+
"воскресенье",
|
|
5
|
+
"понедельник",
|
|
6
|
+
"вторник",
|
|
7
|
+
"среда",
|
|
8
|
+
"четверг",
|
|
9
|
+
"пятница",
|
|
10
|
+
"суббота"
|
|
11
|
+
],
|
|
12
|
+
format: [
|
|
13
|
+
"воскресенье",
|
|
14
|
+
"понедельник",
|
|
15
|
+
"вторник",
|
|
16
|
+
"среду",
|
|
17
|
+
"четверг",
|
|
18
|
+
"пятницу",
|
|
19
|
+
"субботу"
|
|
20
|
+
],
|
|
23
21
|
isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/
|
|
24
22
|
};
|
|
25
|
-
const monthFormat = [
|
|
26
|
-
"января",
|
|
27
|
-
"февраля",
|
|
28
|
-
"марта",
|
|
29
|
-
"апреля",
|
|
30
|
-
"мая",
|
|
31
|
-
"июня",
|
|
32
|
-
"июля",
|
|
33
|
-
"августа",
|
|
34
|
-
"сентября",
|
|
35
|
-
"октября",
|
|
36
|
-
"ноября",
|
|
37
|
-
"декабря"
|
|
38
|
-
];
|
|
39
|
-
const monthStandalone = [
|
|
40
|
-
"январь",
|
|
41
|
-
"февраль",
|
|
42
|
-
"март",
|
|
43
|
-
"апрель",
|
|
44
|
-
"май",
|
|
45
|
-
"июнь",
|
|
46
|
-
"июль",
|
|
47
|
-
"август",
|
|
48
|
-
"сентябрь",
|
|
49
|
-
"октябрь",
|
|
50
|
-
"ноябрь",
|
|
51
|
-
"декабрь"
|
|
52
|
-
];
|
|
53
23
|
const months = {
|
|
54
|
-
standalone:
|
|
55
|
-
|
|
24
|
+
standalone: [
|
|
25
|
+
"январь",
|
|
26
|
+
"февраль",
|
|
27
|
+
"март",
|
|
28
|
+
"апрель",
|
|
29
|
+
"май",
|
|
30
|
+
"июнь",
|
|
31
|
+
"июль",
|
|
32
|
+
"август",
|
|
33
|
+
"сентябрь",
|
|
34
|
+
"октябрь",
|
|
35
|
+
"ноябрь",
|
|
36
|
+
"декабрь"
|
|
37
|
+
],
|
|
38
|
+
format: [
|
|
39
|
+
"января",
|
|
40
|
+
"февраля",
|
|
41
|
+
"марта",
|
|
42
|
+
"апреля",
|
|
43
|
+
"мая",
|
|
44
|
+
"июня",
|
|
45
|
+
"июля",
|
|
46
|
+
"августа",
|
|
47
|
+
"сентября",
|
|
48
|
+
"октября",
|
|
49
|
+
"ноября",
|
|
50
|
+
"декабря"
|
|
51
|
+
]
|
|
56
52
|
};
|
|
57
|
-
const monthShortFormat = [
|
|
58
|
-
"янв.",
|
|
59
|
-
"февр.",
|
|
60
|
-
"мар.",
|
|
61
|
-
"апр.",
|
|
62
|
-
"мая",
|
|
63
|
-
"июня",
|
|
64
|
-
"июля",
|
|
65
|
-
"авг.",
|
|
66
|
-
"сент.",
|
|
67
|
-
"окт.",
|
|
68
|
-
"нояб.",
|
|
69
|
-
"дек."
|
|
70
|
-
];
|
|
71
|
-
const monthShortStandalone = [
|
|
72
|
-
"янв.",
|
|
73
|
-
"февр.",
|
|
74
|
-
"март",
|
|
75
|
-
"апр.",
|
|
76
|
-
"май",
|
|
77
|
-
"июнь",
|
|
78
|
-
"июль",
|
|
79
|
-
"авг.",
|
|
80
|
-
"сент.",
|
|
81
|
-
"окт.",
|
|
82
|
-
"нояб.",
|
|
83
|
-
"дек."
|
|
84
|
-
];
|
|
85
53
|
const monthsShort = {
|
|
86
|
-
standalone:
|
|
87
|
-
|
|
54
|
+
standalone: [
|
|
55
|
+
"янв.",
|
|
56
|
+
"февр.",
|
|
57
|
+
"март",
|
|
58
|
+
"апр.",
|
|
59
|
+
"май",
|
|
60
|
+
"июнь",
|
|
61
|
+
"июль",
|
|
62
|
+
"авг.",
|
|
63
|
+
"сент.",
|
|
64
|
+
"окт.",
|
|
65
|
+
"нояб.",
|
|
66
|
+
"дек."
|
|
67
|
+
],
|
|
68
|
+
format: [
|
|
69
|
+
"янв.",
|
|
70
|
+
"февр.",
|
|
71
|
+
"мар.",
|
|
72
|
+
"апр.",
|
|
73
|
+
"мая",
|
|
74
|
+
"июня",
|
|
75
|
+
"июля",
|
|
76
|
+
"авг.",
|
|
77
|
+
"сент.",
|
|
78
|
+
"окт.",
|
|
79
|
+
"нояб.",
|
|
80
|
+
"дек."
|
|
81
|
+
]
|
|
88
82
|
};
|
|
89
83
|
const calendar = {
|
|
90
84
|
sameDay: "[Сегодня, в] LT",
|
|
@@ -154,6 +148,11 @@ const relativeTimeFormatter = (timeValue, withoutSuffix, token, _isFuture) => {
|
|
|
154
148
|
"дня",
|
|
155
149
|
"дней"
|
|
156
150
|
],
|
|
151
|
+
ww: [
|
|
152
|
+
"неделя",
|
|
153
|
+
"недели",
|
|
154
|
+
"недель"
|
|
155
|
+
],
|
|
157
156
|
MM: [
|
|
158
157
|
"месяц",
|
|
159
158
|
"месяца",
|
|
@@ -191,6 +190,7 @@ const localeRu = {
|
|
|
191
190
|
],
|
|
192
191
|
months,
|
|
193
192
|
monthsShort,
|
|
193
|
+
dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
|
|
194
194
|
ordinal: (n) => `${n}`,
|
|
195
195
|
weekStart: 1,
|
|
196
196
|
yearStart: 4,
|
|
@@ -218,6 +218,8 @@ const localeRu = {
|
|
|
218
218
|
hh: relativeTimeFormatter,
|
|
219
219
|
d: "день",
|
|
220
220
|
dd: relativeTimeFormatter,
|
|
221
|
+
w: "неделя",
|
|
222
|
+
ww: relativeTimeFormatter,
|
|
221
223
|
M: "месяц",
|
|
222
224
|
MM: relativeTimeFormatter,
|
|
223
225
|
y: "год",
|
|
@@ -230,7 +232,6 @@ const localeRu = {
|
|
|
230
232
|
return "вечера";
|
|
231
233
|
}
|
|
232
234
|
};
|
|
233
|
-
var ru_default = localeRu;
|
|
234
235
|
|
|
235
236
|
//#endregion
|
|
236
|
-
export {
|
|
237
|
+
export { localeRu as default };
|
package/locales/rw.d.ts
CHANGED
package/locales/rw.js
CHANGED
|
@@ -56,6 +56,7 @@ const localeRw = {
|
|
|
56
56
|
"Ugushyingo",
|
|
57
57
|
"Ukuboza"
|
|
58
58
|
],
|
|
59
|
+
dayOfMonthOrdinalParse: /\d{1,2}/,
|
|
59
60
|
ordinal: (n) => `${n}`,
|
|
60
61
|
weekStart: 1,
|
|
61
62
|
yearStart: 4,
|
|
@@ -90,6 +91,8 @@ const localeRw = {
|
|
|
90
91
|
hh: "%d amasaha",
|
|
91
92
|
d: "Umunsi",
|
|
92
93
|
dd: "%d iminsi",
|
|
94
|
+
w: "icyumweru",
|
|
95
|
+
ww: "%d ibyumweru",
|
|
93
96
|
M: "ukwezi",
|
|
94
97
|
MM: "%d amezi",
|
|
95
98
|
y: "umwaka",
|
|
@@ -100,7 +103,6 @@ const localeRw = {
|
|
|
100
103
|
return isLowercase ? m.toLowerCase() : m;
|
|
101
104
|
}
|
|
102
105
|
};
|
|
103
|
-
var rw_default = localeRw;
|
|
104
106
|
|
|
105
107
|
//#endregion
|
|
106
|
-
export {
|
|
108
|
+
export { localeRw as default };
|
package/locales/sd.d.ts
CHANGED
package/locales/sd.js
CHANGED
|
@@ -56,6 +56,7 @@ const localeSd = {
|
|
|
56
56
|
"نومبر",
|
|
57
57
|
"ڊسمبر"
|
|
58
58
|
],
|
|
59
|
+
dayOfMonthOrdinalParse: /\d{1,2}/,
|
|
59
60
|
ordinal: (n) => `${n}`,
|
|
60
61
|
weekStart: 1,
|
|
61
62
|
yearStart: 4,
|
|
@@ -90,6 +91,8 @@ const localeSd = {
|
|
|
90
91
|
hh: "%d ڪلاڪ",
|
|
91
92
|
d: "هڪ ڏينهن",
|
|
92
93
|
dd: "%d ڏينهن",
|
|
94
|
+
w: "هڪ هفتو",
|
|
95
|
+
ww: "%d هفتو",
|
|
93
96
|
M: "هڪ مهينو",
|
|
94
97
|
MM: "%d مهينا",
|
|
95
98
|
y: "هڪ سال",
|
|
@@ -100,7 +103,6 @@ const localeSd = {
|
|
|
100
103
|
return isLowercase ? m.toLowerCase() : m;
|
|
101
104
|
}
|
|
102
105
|
};
|
|
103
|
-
var sd_default = localeSd;
|
|
104
106
|
|
|
105
107
|
//#endregion
|
|
106
|
-
export {
|
|
108
|
+
export { localeSd as default };
|