esday 0.3.0 → 0.5.0
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 +8 -0
- package/LICENSE +21 -0
- package/README.md +51 -0
- package/chunks/B5f9poqo.js +120 -0
- package/chunks/BDssPbM_.js +106 -0
- package/chunks/BRRrAbUl.js +56 -0
- package/chunks/BXRGSAJG.js +128 -0
- package/chunks/BeVgU2nj.js +188 -0
- package/chunks/BtmEtAW3.js +43 -0
- package/chunks/CQ57zhVp.js +106 -0
- package/chunks/CQJ0-ZuR.js +106 -0
- package/chunks/CWqzr5E5.js +108 -0
- package/chunks/Cb5SvF6r.js +25 -0
- package/chunks/Cg4ZI9v8.js +180 -0
- package/chunks/CoBtJ4c1.js +144 -0
- package/chunks/D009Z-ld.js +109 -0
- package/chunks/DMtTiWuY.js +127 -0
- package/chunks/DXHbH1CI.js +9 -0
- package/chunks/Dixb5KKs.js +116 -0
- package/chunks/DjY7KvwG.js +28 -0
- package/chunks/DqhiVwLi.d.ts +203 -0
- package/chunks/GjKpN6U-.js +135 -0
- package/chunks/MtjcOKi-.d.ts +6 -0
- package/chunks/St35qgL0.d.ts +103 -0
- package/chunks/Y32qdU_5.js +62 -0
- package/chunks/br7kModF.js +110 -0
- package/chunks/l2Rxo2H0.js +106 -0
- package/chunks/tfkJ5D3p.js +115 -0
- package/index.d.ts +3 -6
- package/index.js +552 -326
- package/locales/af.d.ts +8 -0
- package/locales/af.js +106 -0
- package/locales/am.d.ts +8 -0
- package/locales/am.js +106 -0
- package/locales/ar-dz.d.ts +11 -0
- package/locales/ar-dz.js +32 -0
- package/locales/ar-iq.d.ts +11 -0
- package/locales/ar-iq.js +14 -0
- package/locales/ar-kw.d.ts +11 -0
- package/locales/ar-kw.js +28 -0
- package/locales/ar-ly.d.ts +11 -0
- package/locales/ar-ly.js +14 -0
- package/locales/ar-ma.d.ts +11 -0
- package/locales/ar-ma.js +29 -0
- package/locales/ar-sa.d.ts +11 -0
- package/locales/ar-sa.js +29 -0
- package/locales/ar-tn.d.ts +11 -0
- package/locales/ar-tn.js +29 -0
- package/locales/ar.d.ts +8 -0
- package/locales/ar.js +3 -0
- package/locales/az.d.ts +8 -0
- package/locales/az.js +106 -0
- package/locales/be.d.ts +8 -0
- package/locales/be.js +140 -0
- package/locales/bg.d.ts +8 -0
- package/locales/bg.js +125 -0
- package/locales/bi.d.ts +8 -0
- package/locales/bi.js +106 -0
- package/locales/bm.d.ts +8 -0
- package/locales/bm.js +106 -0
- package/locales/bn-bd.d.ts +11 -0
- package/locales/bn-bd.js +24 -0
- package/locales/bn.d.ts +8 -0
- package/locales/bn.js +3 -0
- package/locales/bo.d.ts +8 -0
- package/locales/bo.js +106 -0
- package/locales/br.d.ts +8 -0
- package/locales/br.js +179 -0
- package/locales/bs.d.ts +8 -0
- package/locales/bs.js +128 -0
- package/locales/ca.d.ts +8 -0
- package/locales/ca.js +143 -0
- package/locales/cs.d.ts +8 -0
- package/locales/cs.js +182 -0
- package/locales/cv.d.ts +8 -0
- package/locales/cv.js +106 -0
- package/locales/cy.d.ts +8 -0
- package/locales/cy.js +106 -0
- package/locales/da.d.ts +8 -0
- package/locales/da.js +106 -0
- package/locales/de-at.d.ts +11 -0
- package/locales/de-at.js +44 -0
- package/locales/de-ch.d.ts +11 -0
- package/locales/de-ch.js +14 -0
- package/locales/de.d.ts +8 -0
- package/locales/de.js +3 -0
- package/locales/dv.d.ts +8 -0
- package/locales/dv.js +106 -0
- package/locales/el.d.ts +8 -0
- package/locales/el.js +115 -0
- package/locales/en-au.d.ts +11 -0
- package/locales/en-au.js +27 -0
- package/locales/en-ca.d.ts +11 -0
- package/locales/en-ca.js +27 -0
- package/locales/en-gb.d.ts +13 -0
- package/locales/en-gb.js +28 -0
- package/locales/en-ie.d.ts +11 -0
- package/locales/en-ie.js +26 -0
- package/locales/en-il.d.ts +11 -0
- package/locales/en-il.js +28 -0
- package/locales/en-in.d.ts +11 -0
- package/locales/en-in.js +26 -0
- package/locales/en-nz.d.ts +11 -0
- package/locales/en-nz.js +28 -0
- package/locales/en-sg.d.ts +11 -0
- package/locales/en-sg.js +28 -0
- package/locales/en-tt.d.ts +11 -0
- package/locales/en-tt.js +28 -0
- package/locales/en-us.d.ts +11 -0
- package/locales/en-us.js +13 -0
- package/locales/en.d.ts +8 -0
- package/locales/en.js +3 -0
- package/locales/eo.d.ts +8 -0
- package/locales/eo.js +106 -0
- package/locales/es-do.d.ts +11 -0
- package/locales/es-do.js +27 -0
- package/locales/es-mx.d.ts +11 -0
- package/locales/es-mx.js +15 -0
- package/locales/es-pr.d.ts +11 -0
- package/locales/es-pr.js +18 -0
- package/locales/es-us.d.ts +11 -0
- package/locales/es-us.js +14 -0
- package/locales/es.d.ts +8 -0
- package/locales/es.js +3 -0
- package/locales/et.d.ts +8 -0
- package/locales/et.js +142 -0
- package/locales/eu.d.ts +8 -0
- package/locales/eu.js +106 -0
- package/locales/fa.d.ts +8 -0
- package/locales/fa.js +106 -0
- package/locales/fi.d.ts +8 -0
- package/locales/fi.js +165 -0
- package/locales/fil.d.ts +8 -0
- package/locales/fil.js +106 -0
- package/locales/fo.d.ts +8 -0
- package/locales/fo.js +106 -0
- package/locales/fr-ca.d.ts +11 -0
- package/locales/fr-ca.js +18 -0
- package/locales/fr-ch.d.ts +11 -0
- package/locales/fr-ch.js +18 -0
- package/locales/fr.d.ts +8 -0
- package/locales/fr.js +3 -0
- package/locales/fy.d.ts +8 -0
- package/locales/fy.js +106 -0
- package/locales/ga.d.ts +8 -0
- package/locales/ga.js +106 -0
- package/locales/gd.d.ts +8 -0
- package/locales/gd.js +106 -0
- package/locales/gl.d.ts +8 -0
- package/locales/gl.js +116 -0
- package/locales/gom-deva.d.ts +8 -0
- package/locales/gom-deva.js +146 -0
- package/locales/gom-latn.d.ts +8 -0
- package/locales/gom-latn.js +146 -0
- package/locales/gu.d.ts +8 -0
- package/locales/gu.js +106 -0
- package/locales/he.d.ts +8 -0
- package/locales/he.js +129 -0
- package/locales/hi.d.ts +8 -0
- package/locales/hi.js +125 -0
- package/locales/hr.d.ts +8 -0
- package/locales/hr.js +189 -0
- package/locales/ht.d.ts +8 -0
- package/locales/ht.js +106 -0
- package/locales/hu.d.ts +8 -0
- package/locales/hu.js +140 -0
- package/locales/hy-am.d.ts +8 -0
- package/locales/hy-am.js +127 -0
- package/locales/id.d.ts +8 -0
- package/locales/id.js +106 -0
- package/locales/is.d.ts +8 -0
- package/locales/is.js +155 -0
- package/locales/it-ch.d.ts +11 -0
- package/locales/it-ch.js +32 -0
- package/locales/it.d.ts +8 -0
- package/locales/it.js +3 -0
- package/locales/ja.d.ts +15 -0
- package/locales/ja.js +109 -0
- package/locales/jv.d.ts +8 -0
- package/locales/jv.js +106 -0
- package/locales/ka.d.ts +8 -0
- package/locales/ka.js +126 -0
- package/locales/kk.d.ts +8 -0
- package/locales/kk.js +106 -0
- package/locales/km.d.ts +8 -0
- package/locales/km.js +106 -0
- package/locales/kn.d.ts +8 -0
- package/locales/kn.js +106 -0
- package/locales/ko.d.ts +8 -0
- package/locales/ko.js +105 -0
- package/locales/ku.d.ts +8 -0
- package/locales/ku.js +119 -0
- package/locales/ky.d.ts +8 -0
- package/locales/ky.js +106 -0
- package/locales/lb.d.ts +8 -0
- package/locales/lb.js +166 -0
- package/locales/lo.d.ts +8 -0
- package/locales/lo.js +105 -0
- package/locales/lt.d.ts +8 -0
- package/locales/lt.js +106 -0
- package/locales/lv.d.ts +8 -0
- package/locales/lv.js +106 -0
- package/locales/me.d.ts +8 -0
- package/locales/me.js +129 -0
- package/locales/mi.d.ts +8 -0
- package/locales/mi.js +106 -0
- package/locales/mk.d.ts +8 -0
- package/locales/mk.js +117 -0
- package/locales/ml.d.ts +8 -0
- package/locales/ml.js +109 -0
- package/locales/mn.d.ts +8 -0
- package/locales/mn.js +106 -0
- package/locales/mr.d.ts +8 -0
- package/locales/mr.js +215 -0
- package/locales/ms-my.d.ts +11 -0
- package/locales/ms-my.js +14 -0
- package/locales/ms.d.ts +8 -0
- package/locales/ms.js +3 -0
- package/locales/mt.d.ts +8 -0
- package/locales/mt.js +106 -0
- package/locales/my.d.ts +8 -0
- package/locales/my.js +132 -0
- package/locales/nb.d.ts +8 -0
- package/locales/nb.js +106 -0
- package/locales/ne.d.ts +8 -0
- package/locales/ne.js +106 -0
- package/locales/nl-be.d.ts +11 -0
- package/locales/nl-be.js +18 -0
- package/locales/nl.d.ts +8 -0
- package/locales/nl.js +3 -0
- package/locales/nn.d.ts +8 -0
- package/locales/nn.js +106 -0
- package/locales/oc-lnc.d.ts +8 -0
- package/locales/oc-lnc.js +126 -0
- package/locales/pa-in.d.ts +8 -0
- package/locales/pa-in.js +123 -0
- package/locales/pl.d.ts +8 -0
- package/locales/pl.js +159 -0
- package/locales/pt-br.d.ts +11 -0
- package/locales/pt-br.js +53 -0
- package/locales/pt.d.ts +8 -0
- package/locales/pt.js +3 -0
- package/locales/rn.d.ts +8 -0
- package/locales/rn.js +106 -0
- package/locales/ro.d.ts +8 -0
- package/locales/ro.js +106 -0
- package/locales/ru.d.ts +15 -0
- package/locales/ru.js +236 -0
- package/locales/rw.d.ts +8 -0
- package/locales/rw.js +106 -0
- package/locales/sd.d.ts +8 -0
- package/locales/sd.js +106 -0
- package/locales/se.d.ts +8 -0
- package/locales/se.js +106 -0
- package/locales/si.d.ts +8 -0
- package/locales/si.js +106 -0
- package/locales/sk.d.ts +8 -0
- package/locales/sk.js +162 -0
- package/locales/sl.d.ts +8 -0
- package/locales/sl.js +171 -0
- package/locales/sq.d.ts +8 -0
- package/locales/sq.js +106 -0
- package/locales/sr-cyrl.d.ts +11 -0
- package/locales/sr-cyrl.js +173 -0
- package/locales/sr.d.ts +8 -0
- package/locales/sr.js +3 -0
- package/locales/ss.d.ts +8 -0
- package/locales/ss.js +108 -0
- package/locales/sv-fi.d.ts +11 -0
- package/locales/sv-fi.js +27 -0
- package/locales/sv.d.ts +8 -0
- package/locales/sv.js +3 -0
- package/locales/sw.d.ts +8 -0
- package/locales/sw.js +106 -0
- package/locales/ta.d.ts +8 -0
- package/locales/ta.js +137 -0
- package/locales/te.d.ts +8 -0
- package/locales/te.js +109 -0
- package/locales/tet.d.ts +8 -0
- package/locales/tet.js +110 -0
- package/locales/tg.d.ts +8 -0
- package/locales/tg.js +128 -0
- package/locales/th.d.ts +8 -0
- package/locales/th.js +106 -0
- package/locales/tk.d.ts +8 -0
- package/locales/tk.js +134 -0
- package/locales/tl-ph.d.ts +8 -0
- package/locales/tl-ph.js +106 -0
- package/locales/tlh.d.ts +8 -0
- package/locales/tlh.js +152 -0
- package/locales/tr.d.ts +8 -0
- package/locales/tr.js +134 -0
- package/locales/tzl.d.ts +8 -0
- package/locales/tzl.js +123 -0
- package/locales/tzm-latn.d.ts +11 -0
- package/locales/tzm-latn.js +68 -0
- package/locales/tzm.d.ts +8 -0
- package/locales/tzm.js +3 -0
- package/locales/ug-cn.d.ts +8 -0
- package/locales/ug-cn.js +111 -0
- package/locales/uk.d.ts +8 -0
- package/locales/uk.js +194 -0
- package/locales/ur.d.ts +8 -0
- package/locales/ur.js +108 -0
- package/locales/uz-latn.d.ts +11 -0
- package/locales/uz-latn.js +68 -0
- package/locales/uz.d.ts +8 -0
- package/locales/uz.js +3 -0
- package/locales/vi.d.ts +8 -0
- package/locales/vi.js +106 -0
- package/locales/x-pseudo.d.ts +8 -0
- package/locales/x-pseudo.js +110 -0
- package/locales/yo.d.ts +8 -0
- package/locales/yo.js +106 -0
- package/locales/zh-cn.d.ts +11 -0
- package/locales/zh-cn.js +14 -0
- package/locales/zh-hk.d.ts +11 -0
- package/locales/zh-hk.js +23 -0
- package/locales/zh-mo.d.ts +11 -0
- package/locales/zh-mo.js +23 -0
- package/locales/zh-tw.d.ts +11 -0
- package/locales/zh-tw.js +23 -0
- package/locales/zh.d.ts +15 -0
- package/locales/zh.js +3 -0
- package/package.json +79 -21
- package/plugins/advancedFormat/index.d.ts +8 -0
- package/plugins/advancedFormat/index.js +20 -0
- package/plugins/advancedParse/index.d.ts +8 -0
- package/plugins/advancedParse/index.js +406 -0
- package/plugins/calendar/index.d.ts +14 -0
- package/plugins/calendar/index.js +33 -0
- package/plugins/dayOfYear/index.d.ts +13 -0
- package/plugins/dayOfYear/index.js +12 -0
- package/plugins/isBetween/index.d.ts +23 -0
- package/plugins/isBetween/index.js +16 -0
- package/plugins/isLeapYear/index.d.ts +12 -0
- package/plugins/isLeapYear/index.js +11 -0
- package/plugins/isSameOrAfter/index.d.ts +12 -0
- package/plugins/isSameOrAfter/index.js +10 -0
- package/plugins/isSameOrBefore/index.d.ts +12 -0
- package/plugins/isSameOrBefore/index.js +10 -0
- package/plugins/isToday/index.d.ts +8 -6
- package/plugins/isToday/index.js +10 -6
- package/plugins/isTomorrow/index.d.ts +12 -0
- package/plugins/isTomorrow/index.js +14 -0
- package/plugins/isYesterday/index.d.ts +12 -0
- package/plugins/isYesterday/index.js +14 -0
- package/plugins/isoWeek/index.d.ts +21 -0
- package/plugins/isoWeek/index.js +240 -0
- package/plugins/locale/index.d.ts +4 -0
- package/plugins/locale/index.js +7 -0
- package/plugins/localeData/index.d.ts +8 -0
- package/plugins/localeData/index.js +148 -0
- package/plugins/localizedFormat/index.d.ts +8 -0
- package/plugins/localizedFormat/index.js +88 -0
- package/plugins/localizedParse/index.d.ts +8 -0
- package/plugins/localizedParse/index.js +199 -0
- package/plugins/minMax/index.d.ts +13 -0
- package/plugins/minMax/index.js +22 -0
- package/plugins/objectSupport/index.d.ts +8 -0
- package/plugins/objectSupport/index.js +104 -0
- package/plugins/pluralGetSet/index.d.ts +20 -0
- package/plugins/pluralGetSet/index.js +16 -0
- package/plugins/quarterOfYear/index.d.ts +16 -0
- package/plugins/quarterOfYear/index.js +58 -0
- package/plugins/relativeTime/index.d.ts +59 -0
- package/plugins/relativeTime/index.js +154 -0
- package/plugins/toArray/index.d.ts +12 -0
- package/plugins/toArray/index.js +18 -0
- package/plugins/toObject/index.d.ts +20 -0
- package/plugins/toObject/index.js +18 -0
- package/plugins/utc/index.d.ts +19 -0
- package/plugins/utc/index.js +194 -0
- package/plugins/week/index.d.ts +21 -0
- package/plugins/week/index.js +360 -0
- package/EsDay-CKy0jEj2.d.ts +0 -68
- package/plugins/customParseFormat/index.d.ts +0 -5
- package/plugins/customParseFormat/index.js +0 -159
|
@@ -0,0 +1,135 @@
|
|
|
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
|
+
ordinal: (n) => `${n}`,
|
|
84
|
+
weekStart: 0,
|
|
85
|
+
yearStart: 1,
|
|
86
|
+
formats: {
|
|
87
|
+
LT: "A h:mm সময়",
|
|
88
|
+
LTS: "A h:mm:ss সময়",
|
|
89
|
+
L: "DD/MM/YYYY",
|
|
90
|
+
LL: "D MMMM YYYY",
|
|
91
|
+
LLL: "D MMMM YYYY, A h:mm সময়",
|
|
92
|
+
LLLL: "dddd, D MMMM YYYY, A h:mm সময়",
|
|
93
|
+
l: "DD/MM/YYYY",
|
|
94
|
+
ll: "D MMMM YYYY",
|
|
95
|
+
lll: "D MMMM YYYY, A h:mm সময়",
|
|
96
|
+
llll: "dddd, D MMMM YYYY, A h:mm সময়"
|
|
97
|
+
},
|
|
98
|
+
calendar: {
|
|
99
|
+
sameDay: "[আজ] LT",
|
|
100
|
+
nextDay: "[আগামীকাল] LT",
|
|
101
|
+
nextWeek: "dddd, LT",
|
|
102
|
+
lastDay: "[গতকাল] LT",
|
|
103
|
+
lastWeek: "[গত] dddd, LT",
|
|
104
|
+
sameElse: "L"
|
|
105
|
+
},
|
|
106
|
+
relativeTime: {
|
|
107
|
+
future: "%s পরে",
|
|
108
|
+
past: "%s আগে",
|
|
109
|
+
s: "কয়েক সেকেন্ড",
|
|
110
|
+
ss: "%d সেকেন্ড",
|
|
111
|
+
m: "এক মিনিট",
|
|
112
|
+
mm: "%d মিনিট",
|
|
113
|
+
h: "এক ঘন্টা",
|
|
114
|
+
hh: "%d ঘন্টা",
|
|
115
|
+
d: "এক দিন",
|
|
116
|
+
dd: "%d দিন",
|
|
117
|
+
M: "এক মাস",
|
|
118
|
+
MM: "%d মাস",
|
|
119
|
+
y: "এক বছর",
|
|
120
|
+
yy: "%d বছর"
|
|
121
|
+
},
|
|
122
|
+
meridiem: (hour, _minute, _isLowercase) => {
|
|
123
|
+
if (hour < 4) return "রাত";
|
|
124
|
+
if (hour < 10) return "সকাল";
|
|
125
|
+
if (hour < 17) return "দুপুর";
|
|
126
|
+
if (hour < 20) return "বিকাল";
|
|
127
|
+
return "রাত";
|
|
128
|
+
},
|
|
129
|
+
preParse: (string) => string.replace(/[১২৩৪৫৬৭৮৯০]/g, (match) => bengaliToEnglishNumbersMap[match]),
|
|
130
|
+
postFormat: (string) => string.replace(/\d/g, (match) => englishToBengaliNumbersMap[match])
|
|
131
|
+
};
|
|
132
|
+
var bn_default = localeBn;
|
|
133
|
+
|
|
134
|
+
//#endregion
|
|
135
|
+
export { bn_default };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { EsDay, EsDayPlugin } from "./DqhiVwLi.js";
|
|
2
|
+
|
|
3
|
+
//#region src/plugins/locale/types.d.ts
|
|
4
|
+
type ReadonlyTuple<T, N extends number, R extends readonly T[] = []> = R['length'] extends N ? R : ReadonlyTuple<T, N, readonly [T, ...R]>;
|
|
5
|
+
declare module 'esday' {
|
|
6
|
+
interface EsDay {
|
|
7
|
+
locale(): string;
|
|
8
|
+
locale(localeName: string): EsDay;
|
|
9
|
+
localeObject: () => Locale;
|
|
10
|
+
}
|
|
11
|
+
interface EsDayFactory {
|
|
12
|
+
locale(): string;
|
|
13
|
+
locale(localeName: string): EsDay;
|
|
14
|
+
registerLocale: (locale: Locale, newName?: string) => EsDayFactory;
|
|
15
|
+
unregisterLocale: (localeName: string) => EsDayFactory;
|
|
16
|
+
getLocale: (localeName: string) => Locale;
|
|
17
|
+
updateLocale: (localeName: string, newLocale: Partial<Locale>) => EsDayFactory;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
type DayNames<T = string> = ReadonlyTuple<T, 7>;
|
|
21
|
+
interface DayNamesStandaloneFormat<T = DayNames<string>> {
|
|
22
|
+
format: T;
|
|
23
|
+
standalone: T;
|
|
24
|
+
isFormat: RegExp;
|
|
25
|
+
}
|
|
26
|
+
type MonthNames<T = string> = ReadonlyTuple<T, 12>;
|
|
27
|
+
interface MonthNamesStandaloneFormat<T = MonthNames<string>> {
|
|
28
|
+
format: T;
|
|
29
|
+
standalone: T;
|
|
30
|
+
isFormat?: RegExp;
|
|
31
|
+
}
|
|
32
|
+
interface MonthNamesFunction<T = MonthNames<string>> {
|
|
33
|
+
(esdayInstance: EsDay, format: string): string;
|
|
34
|
+
format: T;
|
|
35
|
+
standalone: T;
|
|
36
|
+
}
|
|
37
|
+
type LocaleFormatKeys = 'LT' | 'LTS' | 'L' | 'LL' | 'LLL' | 'LLLL' | 'l' | 'll' | 'lll' | 'llll';
|
|
38
|
+
type CalendarSpecValFunction = (this: EsDay, refDate?: EsDay) => string;
|
|
39
|
+
type CalendarSpecVal = string | CalendarSpecValFunction;
|
|
40
|
+
interface Calendar {
|
|
41
|
+
sameDay: CalendarSpecVal;
|
|
42
|
+
nextDay: CalendarSpecVal;
|
|
43
|
+
nextWeek: CalendarSpecVal;
|
|
44
|
+
lastDay: CalendarSpecVal;
|
|
45
|
+
lastWeek: CalendarSpecVal;
|
|
46
|
+
sameElse: CalendarSpecVal;
|
|
47
|
+
}
|
|
48
|
+
type CalendarPartial = Partial<Calendar>;
|
|
49
|
+
type RelativeTimeElementFunction = (timeValue: string | number, withoutSuffix: boolean, token: string, isFuture: boolean) => string;
|
|
50
|
+
type RelativeTimeKeys = 'future' | 'past' | 's' | 'ss' | 'm' | 'mm' | 'h' | 'hh' | 'd' | 'dd' | 'M' | 'MM' | 'y' | 'yy';
|
|
51
|
+
interface Locale {
|
|
52
|
+
/**
|
|
53
|
+
* Name of the locale
|
|
54
|
+
*/
|
|
55
|
+
readonly name: string;
|
|
56
|
+
/**
|
|
57
|
+
* Array of full day names
|
|
58
|
+
* @example ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
|
|
59
|
+
*/
|
|
60
|
+
readonly weekdays: DayNames | DayNamesStandaloneFormat;
|
|
61
|
+
/**
|
|
62
|
+
* Array of short versions of day names
|
|
63
|
+
* @example ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
|
|
64
|
+
*/
|
|
65
|
+
readonly weekdaysShort: DayNames;
|
|
66
|
+
/**
|
|
67
|
+
* Array of minimal versions of day names
|
|
68
|
+
* @example ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']
|
|
69
|
+
*/
|
|
70
|
+
readonly weekdaysMin: DayNames;
|
|
71
|
+
readonly months: MonthNames | MonthNamesStandaloneFormat | MonthNamesFunction;
|
|
72
|
+
readonly monthsShort: MonthNames | MonthNamesStandaloneFormat | MonthNamesFunction;
|
|
73
|
+
readonly ordinal: (number: number, period?: string) => string;
|
|
74
|
+
readonly weekStart: number;
|
|
75
|
+
readonly yearStart: number;
|
|
76
|
+
readonly formats: Record<LocaleFormatKeys, string>;
|
|
77
|
+
readonly calendar: Calendar;
|
|
78
|
+
readonly relativeTime: Record<RelativeTimeKeys, string | RelativeTimeElementFunction>;
|
|
79
|
+
readonly meridiem: (hour: number, minute: number, isLowercase: boolean) => string;
|
|
80
|
+
readonly preParse?: (dateString: string) => string;
|
|
81
|
+
readonly postFormat?: (formattedDate: string) => string;
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/plugins/locale/index.d.ts
|
|
85
|
+
/**
|
|
86
|
+
* Set a property in a literal object avoiding a typescript error TS2322.
|
|
87
|
+
* @param targetLocale - object whose property to create or set
|
|
88
|
+
* @param propName - name of the property to create or set
|
|
89
|
+
* @param newValue - new value of the property
|
|
90
|
+
*/
|
|
91
|
+
declare function setLocaleProperty(targetLocale: Locale, propName: string, newValue: any): void;
|
|
92
|
+
/**
|
|
93
|
+
* Clone a Locale. Used to create a locale for a territory based
|
|
94
|
+
* on the locale of the corresponding language.
|
|
95
|
+
* All properties of the cloned locale are 'readonly' and can only
|
|
96
|
+
* be set by using the function 'setProperty'.
|
|
97
|
+
* @param source - locale to clone
|
|
98
|
+
* @returns cloned locale with all all properties set to 'readonly'.
|
|
99
|
+
*/
|
|
100
|
+
declare function cloneLocale(source: Locale): Locale;
|
|
101
|
+
declare const localePlugin: EsDayPlugin<{}>;
|
|
102
|
+
//#endregion
|
|
103
|
+
export { Calendar, CalendarPartial, CalendarSpecVal, CalendarSpecValFunction, DayNames, DayNamesStandaloneFormat, Locale, LocaleFormatKeys, MonthNames, MonthNamesFunction, MonthNamesStandaloneFormat, RelativeTimeElementFunction, RelativeTimeKeys, cloneLocale, localePlugin, setLocaleProperty };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
//#region src/common/constants.ts
|
|
2
|
+
const SECONDS_A_MINUTE = 60;
|
|
3
|
+
const SECONDS_A_HOUR = SECONDS_A_MINUTE * 60;
|
|
4
|
+
const SECONDS_A_DAY = SECONDS_A_HOUR * 24;
|
|
5
|
+
const SECONDS_A_WEEK = SECONDS_A_DAY * 7;
|
|
6
|
+
const MILLISECONDS_A_SECOND = 1e3;
|
|
7
|
+
const MILLISECONDS_A_MINUTE = SECONDS_A_MINUTE * MILLISECONDS_A_SECOND;
|
|
8
|
+
const MILLISECONDS_A_HOUR = SECONDS_A_HOUR * MILLISECONDS_A_SECOND;
|
|
9
|
+
const MILLISECONDS_A_DAY = SECONDS_A_DAY * MILLISECONDS_A_SECOND;
|
|
10
|
+
const MILLISECONDS_A_WEEK = SECONDS_A_WEEK * MILLISECONDS_A_SECOND;
|
|
11
|
+
const INDEX_SUNDAY = 0;
|
|
12
|
+
const INDEX_MONDAY = 1;
|
|
13
|
+
const INDEX_WEDNESDAY = 3;
|
|
14
|
+
const INDEX_THURSDAY = 4;
|
|
15
|
+
const MS = "millisecond";
|
|
16
|
+
const SECOND = "second";
|
|
17
|
+
const MIN = "minute";
|
|
18
|
+
const HOUR = "hour";
|
|
19
|
+
const DAY = "day";
|
|
20
|
+
const WEEK = "week";
|
|
21
|
+
const ISOWEEK = "isoWeek";
|
|
22
|
+
const MONTH = "month";
|
|
23
|
+
const QUARTER = "quarter";
|
|
24
|
+
const YEAR = "year";
|
|
25
|
+
const DAY_OF_MONTH = "date";
|
|
26
|
+
const FORMAT_DEFAULT = "YYYY-MM-DDTHH:mm:ssZ";
|
|
27
|
+
const INVALID_DATE = /* @__PURE__ */ new Date("");
|
|
28
|
+
const INVALID_DATE_STRING = "Invalid date";
|
|
29
|
+
const REGEX_PARSE_DEFAULT = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i;
|
|
30
|
+
var constants_default = {
|
|
31
|
+
SECONDS_A_MINUTE,
|
|
32
|
+
SECONDS_A_HOUR,
|
|
33
|
+
SECONDS_A_DAY,
|
|
34
|
+
SECONDS_A_WEEK,
|
|
35
|
+
MILLISECONDS_A_SECOND,
|
|
36
|
+
MILLISECONDS_A_MINUTE,
|
|
37
|
+
MILLISECONDS_A_HOUR,
|
|
38
|
+
MILLISECONDS_A_DAY,
|
|
39
|
+
MILLISECONDS_A_WEEK,
|
|
40
|
+
INDEX_SUNDAY,
|
|
41
|
+
INDEX_MONDAY,
|
|
42
|
+
INDEX_WEDNESDAY,
|
|
43
|
+
INDEX_THURSDAY,
|
|
44
|
+
MS,
|
|
45
|
+
SECOND,
|
|
46
|
+
MIN,
|
|
47
|
+
HOUR,
|
|
48
|
+
DAY,
|
|
49
|
+
WEEK,
|
|
50
|
+
ISOWEEK,
|
|
51
|
+
MONTH,
|
|
52
|
+
QUARTER,
|
|
53
|
+
YEAR,
|
|
54
|
+
DAY_OF_MONTH,
|
|
55
|
+
FORMAT_DEFAULT,
|
|
56
|
+
INVALID_DATE,
|
|
57
|
+
INVALID_DATE_STRING,
|
|
58
|
+
REGEX_PARSE_DEFAULT
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
export { DAY, DAY_OF_MONTH, HOUR, ISOWEEK, MIN, MONTH, MS, QUARTER, SECOND, WEEK, YEAR, constants_default };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
//#region src/locales/sv.ts
|
|
2
|
+
const localeSv = {
|
|
3
|
+
name: "sv",
|
|
4
|
+
weekdays: [
|
|
5
|
+
"söndag",
|
|
6
|
+
"måndag",
|
|
7
|
+
"tisdag",
|
|
8
|
+
"onsdag",
|
|
9
|
+
"torsdag",
|
|
10
|
+
"fredag",
|
|
11
|
+
"lördag"
|
|
12
|
+
],
|
|
13
|
+
weekdaysShort: [
|
|
14
|
+
"sön",
|
|
15
|
+
"mån",
|
|
16
|
+
"tis",
|
|
17
|
+
"ons",
|
|
18
|
+
"tor",
|
|
19
|
+
"fre",
|
|
20
|
+
"lör"
|
|
21
|
+
],
|
|
22
|
+
weekdaysMin: [
|
|
23
|
+
"sö",
|
|
24
|
+
"må",
|
|
25
|
+
"ti",
|
|
26
|
+
"on",
|
|
27
|
+
"to",
|
|
28
|
+
"fr",
|
|
29
|
+
"lö"
|
|
30
|
+
],
|
|
31
|
+
months: [
|
|
32
|
+
"januari",
|
|
33
|
+
"februari",
|
|
34
|
+
"mars",
|
|
35
|
+
"april",
|
|
36
|
+
"maj",
|
|
37
|
+
"juni",
|
|
38
|
+
"juli",
|
|
39
|
+
"augusti",
|
|
40
|
+
"september",
|
|
41
|
+
"oktober",
|
|
42
|
+
"november",
|
|
43
|
+
"december"
|
|
44
|
+
],
|
|
45
|
+
monthsShort: [
|
|
46
|
+
"jan",
|
|
47
|
+
"feb",
|
|
48
|
+
"mar",
|
|
49
|
+
"apr",
|
|
50
|
+
"maj",
|
|
51
|
+
"jun",
|
|
52
|
+
"jul",
|
|
53
|
+
"aug",
|
|
54
|
+
"sep",
|
|
55
|
+
"okt",
|
|
56
|
+
"nov",
|
|
57
|
+
"dec"
|
|
58
|
+
],
|
|
59
|
+
ordinal: (n) => {
|
|
60
|
+
const lastDigit = n % 10;
|
|
61
|
+
const extension = lastDigit === 1 || lastDigit === 2 ? "a" : "e";
|
|
62
|
+
return `${n}${extension}`;
|
|
63
|
+
},
|
|
64
|
+
weekStart: 1,
|
|
65
|
+
yearStart: 4,
|
|
66
|
+
formats: {
|
|
67
|
+
LT: "HH:mm",
|
|
68
|
+
LTS: "HH:mm:ss",
|
|
69
|
+
L: "YYYY-MM-DD",
|
|
70
|
+
LL: "D MMMM YYYY",
|
|
71
|
+
LLL: "D MMMM YYYY [kl.] HH:mm",
|
|
72
|
+
LLLL: "dddd D MMMM YYYY [kl.] HH:mm",
|
|
73
|
+
l: "YYYY-MM-DD",
|
|
74
|
+
ll: "D MMMM YYYY",
|
|
75
|
+
lll: "D MMM YYYY HH:mm",
|
|
76
|
+
llll: "ddd D MMM YYYY HH:mm"
|
|
77
|
+
},
|
|
78
|
+
calendar: {
|
|
79
|
+
sameDay: "[Idag] LT",
|
|
80
|
+
nextDay: "[Imorgon] LT",
|
|
81
|
+
lastDay: "[Igår] LT",
|
|
82
|
+
nextWeek: "[På] dddd LT",
|
|
83
|
+
lastWeek: "[I] dddd[s] LT",
|
|
84
|
+
sameElse: "L"
|
|
85
|
+
},
|
|
86
|
+
relativeTime: {
|
|
87
|
+
future: "om %s",
|
|
88
|
+
past: "för %s sedan",
|
|
89
|
+
s: "några sekunder",
|
|
90
|
+
ss: "%d sekunder",
|
|
91
|
+
m: "en minut",
|
|
92
|
+
mm: "%d minuter",
|
|
93
|
+
h: "en timme",
|
|
94
|
+
hh: "%d timmar",
|
|
95
|
+
d: "en dag",
|
|
96
|
+
dd: "%d dagar",
|
|
97
|
+
M: "en månad",
|
|
98
|
+
MM: "%d månader",
|
|
99
|
+
y: "ett år",
|
|
100
|
+
yy: "%d år"
|
|
101
|
+
},
|
|
102
|
+
meridiem: (hour, _minute, isLowercase) => {
|
|
103
|
+
const m = hour < 12 ? "AM" : "PM";
|
|
104
|
+
return isLowercase ? m.toLowerCase() : m;
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
var sv_default = localeSv;
|
|
108
|
+
|
|
109
|
+
//#endregion
|
|
110
|
+
export { sv_default };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
//#region src/locales/tzm.ts
|
|
2
|
+
const localeTzm = {
|
|
3
|
+
name: "tzm",
|
|
4
|
+
weekdays: [
|
|
5
|
+
"ⴰⵙⴰⵎⴰⵙ",
|
|
6
|
+
"ⴰⵢⵏⴰⵙ",
|
|
7
|
+
"ⴰⵙⵉⵏⴰⵙ",
|
|
8
|
+
"ⴰⴽⵔⴰⵙ",
|
|
9
|
+
"ⴰⴽⵡⴰⵙ",
|
|
10
|
+
"ⴰⵙⵉⵎⵡⴰⵙ",
|
|
11
|
+
"ⴰⵙⵉⴹⵢⴰⵙ"
|
|
12
|
+
],
|
|
13
|
+
weekdaysShort: [
|
|
14
|
+
"ⴰⵙⴰⵎⴰⵙ",
|
|
15
|
+
"ⴰⵢⵏⴰⵙ",
|
|
16
|
+
"ⴰⵙⵉⵏⴰⵙ",
|
|
17
|
+
"ⴰⴽⵔⴰⵙ",
|
|
18
|
+
"ⴰⴽⵡⴰⵙ",
|
|
19
|
+
"ⴰⵙⵉⵎⵡⴰⵙ",
|
|
20
|
+
"ⴰⵙⵉⴹⵢⴰⵙ"
|
|
21
|
+
],
|
|
22
|
+
weekdaysMin: [
|
|
23
|
+
"ⴰⵙⴰⵎⴰⵙ",
|
|
24
|
+
"ⴰⵢⵏⴰⵙ",
|
|
25
|
+
"ⴰⵙⵉⵏⴰⵙ",
|
|
26
|
+
"ⴰⴽⵔⴰⵙ",
|
|
27
|
+
"ⴰⴽⵡⴰⵙ",
|
|
28
|
+
"ⴰⵙⵉⵎⵡⴰⵙ",
|
|
29
|
+
"ⴰⵙⵉⴹⵢⴰⵙ"
|
|
30
|
+
],
|
|
31
|
+
months: [
|
|
32
|
+
"ⵉⵏⵏⴰⵢⵔ",
|
|
33
|
+
"ⴱⵕⴰⵢⵕ",
|
|
34
|
+
"ⵎⴰⵕⵚ",
|
|
35
|
+
"ⵉⴱⵔⵉⵔ",
|
|
36
|
+
"ⵎⴰⵢⵢⵓ",
|
|
37
|
+
"ⵢⵓⵏⵢⵓ",
|
|
38
|
+
"ⵢⵓⵍⵢⵓⵣ",
|
|
39
|
+
"ⵖⵓⵛⵜ",
|
|
40
|
+
"ⵛⵓⵜⴰⵏⴱⵉⵔ",
|
|
41
|
+
"ⴽⵟⵓⴱⵕ",
|
|
42
|
+
"ⵏⵓⵡⴰⵏⴱⵉⵔ",
|
|
43
|
+
"ⴷⵓⵊⵏⴱⵉⵔ"
|
|
44
|
+
],
|
|
45
|
+
monthsShort: [
|
|
46
|
+
"ⵉⵏⵏⴰⵢⵔ",
|
|
47
|
+
"ⴱⵕⴰⵢⵕ",
|
|
48
|
+
"ⵎⴰⵕⵚ",
|
|
49
|
+
"ⵉⴱⵔⵉⵔ",
|
|
50
|
+
"ⵎⴰⵢⵢⵓ",
|
|
51
|
+
"ⵢⵓⵏⵢⵓ",
|
|
52
|
+
"ⵢⵓⵍⵢⵓⵣ",
|
|
53
|
+
"ⵖⵓⵛⵜ",
|
|
54
|
+
"ⵛⵓⵜⴰⵏⴱⵉⵔ",
|
|
55
|
+
"ⴽⵟⵓⴱⵕ",
|
|
56
|
+
"ⵏⵓⵡⴰⵏⴱⵉⵔ",
|
|
57
|
+
"ⴷⵓⵊⵏⴱⵉⵔ"
|
|
58
|
+
],
|
|
59
|
+
ordinal: (n) => `${n}`,
|
|
60
|
+
weekStart: 6,
|
|
61
|
+
yearStart: 1,
|
|
62
|
+
formats: {
|
|
63
|
+
LT: "HH:mm",
|
|
64
|
+
LTS: "HH:mm:ss",
|
|
65
|
+
L: "DD/MM/YYYY",
|
|
66
|
+
LL: "D MMMM YYYY",
|
|
67
|
+
LLL: "D MMMM YYYY HH:mm",
|
|
68
|
+
LLLL: "dddd D MMMM YYYY HH:mm",
|
|
69
|
+
l: "DD/MM/YYYY",
|
|
70
|
+
ll: "D MMMM YYYY",
|
|
71
|
+
lll: "D MMMM YYYY HH:mm",
|
|
72
|
+
llll: "dddd D MMMM YYYY HH:mm"
|
|
73
|
+
},
|
|
74
|
+
calendar: {
|
|
75
|
+
sameDay: "[ⴰⵙⴷⵅ ⴴ] LT",
|
|
76
|
+
nextDay: "[ⴰⵙⴽⴰ ⴴ] LT",
|
|
77
|
+
nextWeek: "dddd [ⴴ] LT",
|
|
78
|
+
lastDay: "[ⴰⵚⴰⵏⵜ ⴴ] LT",
|
|
79
|
+
lastWeek: "dddd [ⴴ] LT",
|
|
80
|
+
sameElse: "L"
|
|
81
|
+
},
|
|
82
|
+
relativeTime: {
|
|
83
|
+
future: "ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",
|
|
84
|
+
past: "ⵢⴰⵏ %s",
|
|
85
|
+
s: "ⵉⵎⵉⴽ",
|
|
86
|
+
ss: "%d ⵉⵎⵉⴽ",
|
|
87
|
+
m: "ⵎⵉⵏⵓⴺ",
|
|
88
|
+
mm: "%d ⵎⵉⵏⵓⴺ",
|
|
89
|
+
h: "ⵙⴰⵄⴰ",
|
|
90
|
+
hh: "%d ⵜⴰⵙⵙⴰⵄⵉⵏ",
|
|
91
|
+
d: "ⴰⵙⵙ",
|
|
92
|
+
dd: "%d oⵙⵙⴰⵏ",
|
|
93
|
+
M: "ⴰⵢoⵓⵔ",
|
|
94
|
+
MM: "%d ⵉⵢⵢⵉⵔⵏ",
|
|
95
|
+
y: "ⴰⵙⴳⴰⵙ",
|
|
96
|
+
yy: "%d ⵉⵙⴳⴰⵙⵏ"
|
|
97
|
+
},
|
|
98
|
+
meridiem: (hour, _minute, isLowercase) => {
|
|
99
|
+
const m = hour < 12 ? "AM" : "PM";
|
|
100
|
+
return isLowercase ? m.toLowerCase() : m;
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
var tzm_default = localeTzm;
|
|
104
|
+
|
|
105
|
+
//#endregion
|
|
106
|
+
export { tzm_default };
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
//#region src/locales/en.ts
|
|
2
|
+
const localeEn = {
|
|
3
|
+
name: "en",
|
|
4
|
+
weekdays: [
|
|
5
|
+
"Sunday",
|
|
6
|
+
"Monday",
|
|
7
|
+
"Tuesday",
|
|
8
|
+
"Wednesday",
|
|
9
|
+
"Thursday",
|
|
10
|
+
"Friday",
|
|
11
|
+
"Saturday"
|
|
12
|
+
],
|
|
13
|
+
weekdaysShort: [
|
|
14
|
+
"Sun",
|
|
15
|
+
"Mon",
|
|
16
|
+
"Tue",
|
|
17
|
+
"Wed",
|
|
18
|
+
"Thu",
|
|
19
|
+
"Fri",
|
|
20
|
+
"Sat"
|
|
21
|
+
],
|
|
22
|
+
weekdaysMin: [
|
|
23
|
+
"Su",
|
|
24
|
+
"Mo",
|
|
25
|
+
"Tu",
|
|
26
|
+
"We",
|
|
27
|
+
"Th",
|
|
28
|
+
"Fr",
|
|
29
|
+
"Sa"
|
|
30
|
+
],
|
|
31
|
+
months: [
|
|
32
|
+
"January",
|
|
33
|
+
"February",
|
|
34
|
+
"March",
|
|
35
|
+
"April",
|
|
36
|
+
"May",
|
|
37
|
+
"June",
|
|
38
|
+
"July",
|
|
39
|
+
"August",
|
|
40
|
+
"September",
|
|
41
|
+
"October",
|
|
42
|
+
"November",
|
|
43
|
+
"December"
|
|
44
|
+
],
|
|
45
|
+
monthsShort: [
|
|
46
|
+
"Jan",
|
|
47
|
+
"Feb",
|
|
48
|
+
"Mar",
|
|
49
|
+
"Apr",
|
|
50
|
+
"May",
|
|
51
|
+
"Jun",
|
|
52
|
+
"Jul",
|
|
53
|
+
"Aug",
|
|
54
|
+
"Sep",
|
|
55
|
+
"Oct",
|
|
56
|
+
"Nov",
|
|
57
|
+
"Dec"
|
|
58
|
+
],
|
|
59
|
+
ordinal: (n) => {
|
|
60
|
+
const suffices = [
|
|
61
|
+
"th",
|
|
62
|
+
"st",
|
|
63
|
+
"nd",
|
|
64
|
+
"rd"
|
|
65
|
+
];
|
|
66
|
+
const v = n % 100;
|
|
67
|
+
return `${n}${suffices[(v - 20) % 10] || suffices[v] || suffices[0]}`;
|
|
68
|
+
},
|
|
69
|
+
weekStart: 0,
|
|
70
|
+
yearStart: 1,
|
|
71
|
+
formats: {
|
|
72
|
+
LT: "h:mm A",
|
|
73
|
+
LTS: "h:mm:ss A",
|
|
74
|
+
L: "MM/DD/YYYY",
|
|
75
|
+
LL: "MMMM D, YYYY",
|
|
76
|
+
LLL: "MMMM D, YYYY h:mm A",
|
|
77
|
+
LLLL: "dddd, MMMM D, YYYY h:mm A",
|
|
78
|
+
l: "MM/DD/YYYY",
|
|
79
|
+
ll: "MMM D, YYYY",
|
|
80
|
+
lll: "MMM D, YYYY h:mm A",
|
|
81
|
+
llll: "ddd, MMM D, YYYY h:mm A"
|
|
82
|
+
},
|
|
83
|
+
calendar: {
|
|
84
|
+
sameDay: "[Today at] LT",
|
|
85
|
+
nextDay: "[Tomorrow at] LT",
|
|
86
|
+
nextWeek: "dddd [at] LT",
|
|
87
|
+
lastDay: "[Yesterday at] LT",
|
|
88
|
+
lastWeek: "[Last] dddd [at] LT",
|
|
89
|
+
sameElse: "L"
|
|
90
|
+
},
|
|
91
|
+
relativeTime: {
|
|
92
|
+
future: "in %s",
|
|
93
|
+
past: "%s ago",
|
|
94
|
+
s: "a few seconds",
|
|
95
|
+
ss: "%d seconds",
|
|
96
|
+
m: "a minute",
|
|
97
|
+
mm: "%d minutes",
|
|
98
|
+
h: "an hour",
|
|
99
|
+
hh: "%d hours",
|
|
100
|
+
d: "a day",
|
|
101
|
+
dd: "%d days",
|
|
102
|
+
M: "a month",
|
|
103
|
+
MM: "%d months",
|
|
104
|
+
y: "a year",
|
|
105
|
+
yy: "%d years"
|
|
106
|
+
},
|
|
107
|
+
meridiem: (hour, _minute, isLowercase) => {
|
|
108
|
+
const m = hour < 12 ? "AM" : "PM";
|
|
109
|
+
return isLowercase ? m.toLowerCase() : m;
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
var en_default = localeEn;
|
|
113
|
+
|
|
114
|
+
//#endregion
|
|
115
|
+
export { en_default };
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare const esday: EsDayFactory;
|
|
5
|
-
|
|
6
|
-
export { EsDayFactory, esday };
|
|
1
|
+
import { DateFromDateComponents, DateType, EsDay, EsDayFactory, EsDayFactoryParserFn, EsDayPlugin, FormattingTokenDefinitions, LongUnit, ParsingObject, ParsingObjectLong, ParsingObjectPlurals, ParsingObjectShort, PrettyUnit, ShortUnit, SimpleObject, SimpleType, UnitDate, UnitDay, UnitHour, UnitIsoWeek, UnitMin, UnitMonth, UnitMs, UnitQuarter, UnitSecond, UnitType, UnitTypeAddSub, UnitTypeCore, UnitTypeGetSet, UnitWeek, UnitYear, UnitsObjectTypeAddSub, UnitsObjectTypeSet } from "./chunks/DqhiVwLi.js";
|
|
2
|
+
import { esday } from "./chunks/MtjcOKi-.js";
|
|
3
|
+
export { DateFromDateComponents, DateType, EsDay, EsDayFactory, EsDayFactoryParserFn, EsDayPlugin, FormattingTokenDefinitions, LongUnit, ParsingObject, ParsingObjectLong, ParsingObjectPlurals, ParsingObjectShort, PrettyUnit, ShortUnit, SimpleObject, SimpleType, UnitDate, UnitDay, UnitHour, UnitIsoWeek, UnitMin, UnitMonth, UnitMs, UnitQuarter, UnitSecond, UnitType, UnitTypeAddSub, UnitTypeCore, UnitTypeGetSet, UnitWeek, UnitYear, UnitsObjectTypeAddSub, UnitsObjectTypeSet, esday };
|