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/bm.js
CHANGED
|
@@ -56,6 +56,7 @@ const localeBm = {
|
|
|
56
56
|
"Now",
|
|
57
57
|
"Des"
|
|
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 localeBm = {
|
|
|
90
91
|
hh: "lɛrɛ %d",
|
|
91
92
|
d: "tile kelen",
|
|
92
93
|
dd: "tile %d",
|
|
94
|
+
w: "dɔgɔkun kelen",
|
|
95
|
+
ww: "dɔgɔkunw %d",
|
|
93
96
|
M: "kalo kelen",
|
|
94
97
|
MM: "kalo %d",
|
|
95
98
|
y: "san kelen",
|
|
@@ -100,7 +103,6 @@ const localeBm = {
|
|
|
100
103
|
return isLowercase ? m.toLowerCase() : m;
|
|
101
104
|
}
|
|
102
105
|
};
|
|
103
|
-
var bm_default = localeBm;
|
|
104
106
|
|
|
105
107
|
//#endregion
|
|
106
|
-
export {
|
|
108
|
+
export { localeBm as default };
|
package/locales/bn-bd.d.ts
CHANGED
package/locales/bn-bd.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 { bn_default } from "../chunks/GjKpN6U-.js";
|
|
1
|
+
import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.js";
|
|
2
|
+
import localeBn from "./bn.js";
|
|
7
3
|
|
|
8
4
|
//#region src/locales/bn-bd.ts
|
|
9
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Bengali (Bangladesh) [bn-BD]
|
|
7
|
+
*/
|
|
8
|
+
const localeBnBd = cloneLocale(localeBn);
|
|
10
9
|
function meridiem(hour, _minute, _isLowercase) {
|
|
11
10
|
if (hour < 4) return "রাত";
|
|
12
11
|
if (hour < 6) return "ভোর";
|
|
@@ -18,7 +17,6 @@ function meridiem(hour, _minute, _isLowercase) {
|
|
|
18
17
|
}
|
|
19
18
|
setLocaleProperty(localeBnBd, "name", "bn-BD");
|
|
20
19
|
setLocaleProperty(localeBnBd, "meridiem", meridiem);
|
|
21
|
-
var bn_bd_default = localeBnBd;
|
|
22
20
|
|
|
23
21
|
//#endregion
|
|
24
|
-
export {
|
|
22
|
+
export { localeBnBd as default };
|
package/locales/bn.d.ts
CHANGED
package/locales/bn.js
CHANGED
|
@@ -1,3 +1,137 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/locales/bn.ts
|
|
2
|
+
const bengaliToEnglishNumbersMap = {
|
|
3
|
+
"১": "1",
|
|
4
|
+
"২": "2",
|
|
5
|
+
"৩": "3",
|
|
6
|
+
"৪": "4",
|
|
7
|
+
"৫": "5",
|
|
8
|
+
"৬": "6",
|
|
9
|
+
"৭": "7",
|
|
10
|
+
"৮": "8",
|
|
11
|
+
"৯": "9",
|
|
12
|
+
"০": "0"
|
|
13
|
+
};
|
|
14
|
+
const englishToBengaliNumbersMap = {
|
|
15
|
+
1: "১",
|
|
16
|
+
2: "২",
|
|
17
|
+
3: "৩",
|
|
18
|
+
4: "৪",
|
|
19
|
+
5: "৫",
|
|
20
|
+
6: "৬",
|
|
21
|
+
7: "৭",
|
|
22
|
+
8: "৮",
|
|
23
|
+
9: "৯",
|
|
24
|
+
0: "০"
|
|
25
|
+
};
|
|
26
|
+
const localeBn = {
|
|
27
|
+
name: "bn",
|
|
28
|
+
weekdays: [
|
|
29
|
+
"রবিবার",
|
|
30
|
+
"সোমবার",
|
|
31
|
+
"মঙ্গলবার",
|
|
32
|
+
"বুধবার",
|
|
33
|
+
"বৃহস্পতিবার",
|
|
34
|
+
"শুক্রবার",
|
|
35
|
+
"শনিবার"
|
|
36
|
+
],
|
|
37
|
+
weekdaysShort: [
|
|
38
|
+
"রবি",
|
|
39
|
+
"সোম",
|
|
40
|
+
"মঙ্গল",
|
|
41
|
+
"বুধ",
|
|
42
|
+
"বৃহস্পতি",
|
|
43
|
+
"শুক্র",
|
|
44
|
+
"শনি"
|
|
45
|
+
],
|
|
46
|
+
weekdaysMin: [
|
|
47
|
+
"রবি",
|
|
48
|
+
"সোম",
|
|
49
|
+
"মঙ্গ",
|
|
50
|
+
"বুধ",
|
|
51
|
+
"বৃহঃ",
|
|
52
|
+
"শুক্র",
|
|
53
|
+
"শনি"
|
|
54
|
+
],
|
|
55
|
+
months: [
|
|
56
|
+
"জানুয়ারি",
|
|
57
|
+
"ফেব্রুয়ারি",
|
|
58
|
+
"মার্চ",
|
|
59
|
+
"এপ্রিল",
|
|
60
|
+
"মে",
|
|
61
|
+
"জুন",
|
|
62
|
+
"জুলাই",
|
|
63
|
+
"আগস্ট",
|
|
64
|
+
"সেপ্টেম্বর",
|
|
65
|
+
"অক্টোবর",
|
|
66
|
+
"নভেম্বর",
|
|
67
|
+
"ডিসেম্বর"
|
|
68
|
+
],
|
|
69
|
+
monthsShort: [
|
|
70
|
+
"জানু",
|
|
71
|
+
"ফেব্রু",
|
|
72
|
+
"মার্চ",
|
|
73
|
+
"এপ্রিল",
|
|
74
|
+
"মে",
|
|
75
|
+
"জুন",
|
|
76
|
+
"জুলাই",
|
|
77
|
+
"আগস্ট",
|
|
78
|
+
"সেপ্ট",
|
|
79
|
+
"অক্টো",
|
|
80
|
+
"নভে",
|
|
81
|
+
"ডিসে"
|
|
82
|
+
],
|
|
83
|
+
dayOfMonthOrdinalParse: /\d{1,2}/,
|
|
84
|
+
ordinal: (n) => `${n}`,
|
|
85
|
+
weekStart: 0,
|
|
86
|
+
yearStart: 1,
|
|
87
|
+
formats: {
|
|
88
|
+
LT: "A h:mm সময়",
|
|
89
|
+
LTS: "A h:mm:ss সময়",
|
|
90
|
+
L: "DD/MM/YYYY",
|
|
91
|
+
LL: "D MMMM YYYY",
|
|
92
|
+
LLL: "D MMMM YYYY, A h:mm সময়",
|
|
93
|
+
LLLL: "dddd, D MMMM YYYY, A h:mm সময়",
|
|
94
|
+
l: "DD/MM/YYYY",
|
|
95
|
+
ll: "D MMMM YYYY",
|
|
96
|
+
lll: "D MMMM YYYY, A h:mm সময়",
|
|
97
|
+
llll: "dddd, D MMMM YYYY, A h:mm সময়"
|
|
98
|
+
},
|
|
99
|
+
calendar: {
|
|
100
|
+
sameDay: "[আজ] LT",
|
|
101
|
+
nextDay: "[আগামীকাল] LT",
|
|
102
|
+
nextWeek: "dddd, LT",
|
|
103
|
+
lastDay: "[গতকাল] LT",
|
|
104
|
+
lastWeek: "[গত] dddd, LT",
|
|
105
|
+
sameElse: "L"
|
|
106
|
+
},
|
|
107
|
+
relativeTime: {
|
|
108
|
+
future: "%s পরে",
|
|
109
|
+
past: "%s আগে",
|
|
110
|
+
s: "কয়েক সেকেন্ড",
|
|
111
|
+
ss: "%d সেকেন্ড",
|
|
112
|
+
m: "এক মিনিট",
|
|
113
|
+
mm: "%d মিনিট",
|
|
114
|
+
h: "এক ঘন্টা",
|
|
115
|
+
hh: "%d ঘন্টা",
|
|
116
|
+
d: "এক দিন",
|
|
117
|
+
dd: "%d দিন",
|
|
118
|
+
w: "প্রতি সপ্তাহে",
|
|
119
|
+
ww: "%d সপ্তাহ",
|
|
120
|
+
M: "এক মাস",
|
|
121
|
+
MM: "%d মাস",
|
|
122
|
+
y: "এক বছর",
|
|
123
|
+
yy: "%d বছর"
|
|
124
|
+
},
|
|
125
|
+
meridiem: (hour, _minute, _isLowercase) => {
|
|
126
|
+
if (hour < 4) return "রাত";
|
|
127
|
+
if (hour < 10) return "সকাল";
|
|
128
|
+
if (hour < 17) return "দুপুর";
|
|
129
|
+
if (hour < 20) return "বিকাল";
|
|
130
|
+
return "রাত";
|
|
131
|
+
},
|
|
132
|
+
preParse: (string) => string.replace(/[১২৩৪৫৬৭৮৯০]/g, (match) => bengaliToEnglishNumbersMap[match]),
|
|
133
|
+
postFormat: (string) => string.replace(/\d/g, (match) => englishToBengaliNumbersMap[match])
|
|
134
|
+
};
|
|
2
135
|
|
|
3
|
-
|
|
136
|
+
//#endregion
|
|
137
|
+
export { localeBn as default };
|
package/locales/bo.d.ts
CHANGED
package/locales/bo.js
CHANGED
|
@@ -56,6 +56,7 @@ const localeBo = {
|
|
|
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 localeBo = {
|
|
|
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 localeBo = {
|
|
|
100
103
|
return isLowercase ? m.toLowerCase() : m;
|
|
101
104
|
}
|
|
102
105
|
};
|
|
103
|
-
var bo_default = localeBo;
|
|
104
106
|
|
|
105
107
|
//#endregion
|
|
106
|
-
export {
|
|
108
|
+
export { localeBo as default };
|
package/locales/br.d.ts
CHANGED
package/locales/br.js
CHANGED
|
@@ -4,27 +4,24 @@ function lastNumber(timeValue) {
|
|
|
4
4
|
return timeValue;
|
|
5
5
|
}
|
|
6
6
|
function softMutation(text) {
|
|
7
|
-
|
|
7
|
+
return {
|
|
8
8
|
m: "v",
|
|
9
9
|
b: "v",
|
|
10
10
|
d: "z"
|
|
11
|
-
};
|
|
12
|
-
return mutationTable[text.charAt(0)] + text.substring(1);
|
|
11
|
+
}[text.charAt(0)] + text.substring(1);
|
|
13
12
|
}
|
|
14
13
|
function mutation(text, timeValue) {
|
|
15
14
|
if (timeValue === 2) return softMutation(text);
|
|
16
15
|
return text;
|
|
17
16
|
}
|
|
18
17
|
function relativeTimeWithMutation(timeValue, _withoutSuffix, key) {
|
|
19
|
-
|
|
18
|
+
return `${timeValue} ${mutation({
|
|
20
19
|
mm: "munutenn",
|
|
21
20
|
MM: "miz",
|
|
22
21
|
dd: "devezh"
|
|
23
|
-
}
|
|
24
|
-
return `${timeValue} ${mutation(format[key], timeValue)}`;
|
|
22
|
+
}[key], timeValue)}`;
|
|
25
23
|
}
|
|
26
24
|
function specialMutationForYears(number) {
|
|
27
|
-
/* istanbul ignore next line */
|
|
28
25
|
switch (lastNumber(number)) {
|
|
29
26
|
case 1:
|
|
30
27
|
case 3:
|
|
@@ -43,6 +40,8 @@ const relativeTimeFormatStrings = {
|
|
|
43
40
|
hh: "%d eur",
|
|
44
41
|
d: "un devezh",
|
|
45
42
|
dd: relativeTimeWithMutation,
|
|
43
|
+
w: "ur sizhun",
|
|
44
|
+
ww: "%d izhun",
|
|
46
45
|
M: "ur miz",
|
|
47
46
|
MM: relativeTimeWithMutation,
|
|
48
47
|
y: "ur bloaz",
|
|
@@ -110,6 +109,7 @@ const localeBr = {
|
|
|
110
109
|
"Du",
|
|
111
110
|
"Ker"
|
|
112
111
|
],
|
|
112
|
+
dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
|
|
113
113
|
ordinal: (n) => `${n}`,
|
|
114
114
|
weekStart: 1,
|
|
115
115
|
yearStart: 4,
|
|
@@ -166,6 +166,8 @@ const localeBr = {
|
|
|
166
166
|
hh: relativeTimeFormatter,
|
|
167
167
|
d: relativeTimeFormatter,
|
|
168
168
|
dd: relativeTimeFormatter,
|
|
169
|
+
w: relativeTimeFormatter,
|
|
170
|
+
ww: relativeTimeFormatter,
|
|
169
171
|
M: relativeTimeFormatter,
|
|
170
172
|
MM: relativeTimeFormatter,
|
|
171
173
|
y: relativeTimeFormatter,
|
|
@@ -173,7 +175,6 @@ const localeBr = {
|
|
|
173
175
|
},
|
|
174
176
|
meridiem: (hour, _minute, _isLowercase) => hour < 12 ? "a.m." : "g.m."
|
|
175
177
|
};
|
|
176
|
-
var br_default = localeBr;
|
|
177
178
|
|
|
178
179
|
//#endregion
|
|
179
|
-
export {
|
|
180
|
+
export { localeBr as default };
|
package/locales/bs.d.ts
CHANGED
package/locales/bs.js
CHANGED
|
@@ -56,6 +56,7 @@ const localeBs = {
|
|
|
56
56
|
"pe",
|
|
57
57
|
"su"
|
|
58
58
|
],
|
|
59
|
+
dayOfMonthOrdinalParse: /\d{1,2}/,
|
|
59
60
|
ordinal: (n) => `${n}`,
|
|
60
61
|
weekStart: 1,
|
|
61
62
|
yearStart: 4,
|
|
@@ -112,6 +113,8 @@ const localeBs = {
|
|
|
112
113
|
hh: "%d sati",
|
|
113
114
|
d: "dan",
|
|
114
115
|
dd: "%d dana",
|
|
116
|
+
w: "sedmica",
|
|
117
|
+
ww: "%d sedmice",
|
|
115
118
|
M: "mjesec",
|
|
116
119
|
MM: "%d mjeseci",
|
|
117
120
|
y: "godina",
|
|
@@ -122,7 +125,6 @@ const localeBs = {
|
|
|
122
125
|
return isLowercase ? m.toLowerCase() : m;
|
|
123
126
|
}
|
|
124
127
|
};
|
|
125
|
-
var bs_default = localeBs;
|
|
126
128
|
|
|
127
129
|
//#endregion
|
|
128
|
-
export {
|
|
130
|
+
export { localeBs as default };
|
package/locales/ca.d.ts
CHANGED
package/locales/ca.js
CHANGED
|
@@ -1,37 +1,4 @@
|
|
|
1
1
|
//#region src/locales/ca.ts
|
|
2
|
-
const monthFormat = [
|
|
3
|
-
"de gener",
|
|
4
|
-
"de febrer",
|
|
5
|
-
"de març",
|
|
6
|
-
`d'abril`,
|
|
7
|
-
"de maig",
|
|
8
|
-
"de juny",
|
|
9
|
-
"de juliol",
|
|
10
|
-
`d'agost`,
|
|
11
|
-
"de setembre",
|
|
12
|
-
`d'octubre`,
|
|
13
|
-
"de novembre",
|
|
14
|
-
"de desembre"
|
|
15
|
-
];
|
|
16
|
-
const monthStandalone = [
|
|
17
|
-
"gener",
|
|
18
|
-
"febrer",
|
|
19
|
-
"març",
|
|
20
|
-
"abril",
|
|
21
|
-
"maig",
|
|
22
|
-
"juny",
|
|
23
|
-
"juliol",
|
|
24
|
-
"agost",
|
|
25
|
-
"setembre",
|
|
26
|
-
"octubre",
|
|
27
|
-
"novembre",
|
|
28
|
-
"desembre"
|
|
29
|
-
];
|
|
30
|
-
const months = {
|
|
31
|
-
standalone: monthStandalone,
|
|
32
|
-
format: monthFormat,
|
|
33
|
-
isFormat: /D[oD]?(\s)+MMMM/
|
|
34
|
-
};
|
|
35
2
|
const localeCa = {
|
|
36
3
|
name: "ca",
|
|
37
4
|
weekdays: [
|
|
@@ -61,7 +28,37 @@ const localeCa = {
|
|
|
61
28
|
"dv",
|
|
62
29
|
"ds"
|
|
63
30
|
],
|
|
64
|
-
months
|
|
31
|
+
months: {
|
|
32
|
+
standalone: [
|
|
33
|
+
"gener",
|
|
34
|
+
"febrer",
|
|
35
|
+
"març",
|
|
36
|
+
"abril",
|
|
37
|
+
"maig",
|
|
38
|
+
"juny",
|
|
39
|
+
"juliol",
|
|
40
|
+
"agost",
|
|
41
|
+
"setembre",
|
|
42
|
+
"octubre",
|
|
43
|
+
"novembre",
|
|
44
|
+
"desembre"
|
|
45
|
+
],
|
|
46
|
+
format: [
|
|
47
|
+
"de gener",
|
|
48
|
+
"de febrer",
|
|
49
|
+
"de març",
|
|
50
|
+
`d'abril`,
|
|
51
|
+
"de maig",
|
|
52
|
+
"de juny",
|
|
53
|
+
"de juliol",
|
|
54
|
+
`d'agost`,
|
|
55
|
+
"de setembre",
|
|
56
|
+
`d'octubre`,
|
|
57
|
+
"de novembre",
|
|
58
|
+
"de desembre"
|
|
59
|
+
],
|
|
60
|
+
isFormat: /D[oD]?(\s)+MMMM/
|
|
61
|
+
},
|
|
65
62
|
monthsShort: [
|
|
66
63
|
"gen.",
|
|
67
64
|
"febr.",
|
|
@@ -76,6 +73,7 @@ const localeCa = {
|
|
|
76
73
|
"nov.",
|
|
77
74
|
"des."
|
|
78
75
|
],
|
|
76
|
+
dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
|
|
79
77
|
ordinal: (n) => {
|
|
80
78
|
let ord;
|
|
81
79
|
if (n === 1 || n === 3) ord = "r";
|
|
@@ -127,6 +125,8 @@ const localeCa = {
|
|
|
127
125
|
hh: "%d hores",
|
|
128
126
|
d: "un dia",
|
|
129
127
|
dd: "%d dies",
|
|
128
|
+
w: "una setmana",
|
|
129
|
+
ww: "%d setmanes",
|
|
130
130
|
M: "un mes",
|
|
131
131
|
MM: "%d mesos",
|
|
132
132
|
y: "un any",
|
|
@@ -137,7 +137,6 @@ const localeCa = {
|
|
|
137
137
|
return isLowercase ? m.toLowerCase() : m;
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
|
-
var ca_default = localeCa;
|
|
141
140
|
|
|
142
141
|
//#endregion
|
|
143
|
-
export {
|
|
142
|
+
export { localeCa as default };
|
package/locales/cs.d.ts
CHANGED
package/locales/cs.js
CHANGED
|
@@ -1,42 +1,40 @@
|
|
|
1
1
|
//#region src/locales/cs.ts
|
|
2
|
-
const monthFormat = [
|
|
3
|
-
"ledna",
|
|
4
|
-
"února",
|
|
5
|
-
"března",
|
|
6
|
-
"dubna",
|
|
7
|
-
"května",
|
|
8
|
-
"června",
|
|
9
|
-
"července",
|
|
10
|
-
"srpna",
|
|
11
|
-
"září",
|
|
12
|
-
"října",
|
|
13
|
-
"listopadu",
|
|
14
|
-
"prosince"
|
|
15
|
-
];
|
|
16
|
-
const monthStandalone = [
|
|
17
|
-
"leden",
|
|
18
|
-
"únor",
|
|
19
|
-
"březen",
|
|
20
|
-
"duben",
|
|
21
|
-
"květen",
|
|
22
|
-
"červen",
|
|
23
|
-
"červenec",
|
|
24
|
-
"srpen",
|
|
25
|
-
"září",
|
|
26
|
-
"říjen",
|
|
27
|
-
"listopad",
|
|
28
|
-
"prosinec"
|
|
29
|
-
];
|
|
30
2
|
const months = {
|
|
31
|
-
standalone:
|
|
32
|
-
|
|
3
|
+
standalone: [
|
|
4
|
+
"leden",
|
|
5
|
+
"únor",
|
|
6
|
+
"březen",
|
|
7
|
+
"duben",
|
|
8
|
+
"květen",
|
|
9
|
+
"červen",
|
|
10
|
+
"červenec",
|
|
11
|
+
"srpen",
|
|
12
|
+
"září",
|
|
13
|
+
"říjen",
|
|
14
|
+
"listopad",
|
|
15
|
+
"prosinec"
|
|
16
|
+
],
|
|
17
|
+
format: [
|
|
18
|
+
"ledna",
|
|
19
|
+
"února",
|
|
20
|
+
"března",
|
|
21
|
+
"dubna",
|
|
22
|
+
"května",
|
|
23
|
+
"června",
|
|
24
|
+
"července",
|
|
25
|
+
"srpna",
|
|
26
|
+
"září",
|
|
27
|
+
"října",
|
|
28
|
+
"listopadu",
|
|
29
|
+
"prosince"
|
|
30
|
+
],
|
|
33
31
|
isFormat: /DD?[o.]?(\[[^[\]]*\]|\s)+MMMM/
|
|
34
32
|
};
|
|
35
33
|
const calendar = {
|
|
36
34
|
sameDay: "[dnes v] LT",
|
|
37
35
|
nextDay: "[zítra v] LT",
|
|
38
36
|
nextWeek() {
|
|
39
|
-
switch (this
|
|
37
|
+
switch (this?.day()) {
|
|
40
38
|
case 0: return "[v neděli v] LT";
|
|
41
39
|
case 1:
|
|
42
40
|
case 2: return "[v] dddd [v] LT";
|
|
@@ -49,7 +47,7 @@ const calendar = {
|
|
|
49
47
|
},
|
|
50
48
|
lastDay: "[včera v] LT",
|
|
51
49
|
lastWeek() {
|
|
52
|
-
switch (this
|
|
50
|
+
switch (this?.day()) {
|
|
53
51
|
case 0: return "[minulou neděli v] LT";
|
|
54
52
|
case 1:
|
|
55
53
|
case 2: return "[minulé] dddd [v] LT";
|
|
@@ -84,6 +82,10 @@ const relativeTimeFormatter = (timeValue, withoutSuffix, token, isFuture) => {
|
|
|
84
82
|
case "dd":
|
|
85
83
|
if (withoutSuffix || isFuture) return result + (usePlural(+timeValue) ? "dny" : "dní");
|
|
86
84
|
return `${result}dny`;
|
|
85
|
+
case "w": return withoutSuffix || isFuture ? "týden" : "týdnem";
|
|
86
|
+
case "ww":
|
|
87
|
+
if (withoutSuffix || isFuture) return result + (usePlural(+timeValue) ? "týdny" : "týdnů");
|
|
88
|
+
return `${result}týdny`;
|
|
87
89
|
case "M": return withoutSuffix || isFuture ? "měsíc" : "měsícem";
|
|
88
90
|
case "MM":
|
|
89
91
|
if (withoutSuffix || isFuture) return result + (usePlural(+timeValue) ? "měsíce" : "měsíců");
|
|
@@ -139,6 +141,7 @@ const localeCs = {
|
|
|
139
141
|
"lis",
|
|
140
142
|
"pro"
|
|
141
143
|
],
|
|
144
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
|
142
145
|
ordinal: (n) => `${n}.`,
|
|
143
146
|
weekStart: 1,
|
|
144
147
|
yearStart: 4,
|
|
@@ -166,6 +169,8 @@ const localeCs = {
|
|
|
166
169
|
hh: relativeTimeFormatter,
|
|
167
170
|
d: relativeTimeFormatter,
|
|
168
171
|
dd: relativeTimeFormatter,
|
|
172
|
+
w: relativeTimeFormatter,
|
|
173
|
+
ww: relativeTimeFormatter,
|
|
169
174
|
M: relativeTimeFormatter,
|
|
170
175
|
MM: relativeTimeFormatter,
|
|
171
176
|
y: relativeTimeFormatter,
|
|
@@ -176,7 +181,6 @@ const localeCs = {
|
|
|
176
181
|
return isLowercase ? m.toLowerCase() : m;
|
|
177
182
|
}
|
|
178
183
|
};
|
|
179
|
-
var cs_default = localeCs;
|
|
180
184
|
|
|
181
185
|
//#endregion
|
|
182
|
-
export {
|
|
186
|
+
export { localeCs as default };
|
package/locales/cv.d.ts
CHANGED
package/locales/cv.js
CHANGED
|
@@ -56,6 +56,7 @@ const localeCv = {
|
|
|
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 localeCv = {
|
|
|
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 localeCv = {
|
|
|
100
103
|
return isLowercase ? m.toLowerCase() : m;
|
|
101
104
|
}
|
|
102
105
|
};
|
|
103
|
-
var cv_default = localeCv;
|
|
104
106
|
|
|
105
107
|
//#endregion
|
|
106
|
-
export {
|
|
108
|
+
export { localeCv as default };
|
package/locales/cy.d.ts
CHANGED
package/locales/cy.js
CHANGED
|
@@ -56,6 +56,7 @@ const localeCy = {
|
|
|
56
56
|
"Tach",
|
|
57
57
|
"Rhag"
|
|
58
58
|
],
|
|
59
|
+
dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
|
|
59
60
|
ordinal: (n) => `${n}`,
|
|
60
61
|
weekStart: 1,
|
|
61
62
|
yearStart: 4,
|
|
@@ -90,6 +91,8 @@ const localeCy = {
|
|
|
90
91
|
hh: "%d awr",
|
|
91
92
|
d: "diwrnod",
|
|
92
93
|
dd: "%d diwrnod",
|
|
94
|
+
w: "wythnos",
|
|
95
|
+
ww: "%d wythnos",
|
|
93
96
|
M: "mis",
|
|
94
97
|
MM: "%d mis",
|
|
95
98
|
y: "blwyddyn",
|
|
@@ -100,7 +103,6 @@ const localeCy = {
|
|
|
100
103
|
return isLowercase ? m.toLowerCase() : m;
|
|
101
104
|
}
|
|
102
105
|
};
|
|
103
|
-
var cy_default = localeCy;
|
|
104
106
|
|
|
105
107
|
//#endregion
|
|
106
|
-
export {
|
|
108
|
+
export { localeCy as default };
|
package/locales/da.d.ts
CHANGED