esday 0.4.1 → 0.6.2
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 +43 -0
- package/LICENSE +21 -0
- package/README.md +63 -33
- package/chunks/AyQQ6US-.js +84 -0
- package/chunks/BkjWOpMU.js +68 -0
- package/chunks/C5qDMHT5.d.ts +6 -0
- package/chunks/CODi8AFH.d.ts +231 -0
- package/chunks/CXWzCl3n.js +481 -0
- package/chunks/CdvTtmWL.js +56 -0
- package/chunks/Shk32pTP.js +9 -0
- package/chunks/v_QBn7Xm.js +25 -0
- package/chunks/xt8C2lbv.js +38 -0
- package/index.d.mts +3 -0
- package/index.mjs +3 -0
- package/locales/af.d.mts +6 -0
- package/locales/af.mjs +108 -0
- package/locales/am.d.mts +6 -0
- package/locales/am.mjs +108 -0
- package/locales/ar-dz.d.mts +9 -0
- package/locales/ar-dz.mjs +30 -0
- package/locales/ar-iq.d.mts +9 -0
- package/locales/ar-iq.mjs +12 -0
- package/locales/ar-kw.d.mts +9 -0
- package/locales/ar-kw.mjs +26 -0
- package/locales/ar-ly.d.mts +9 -0
- package/locales/ar-ly.mjs +12 -0
- package/locales/ar-ma.d.mts +9 -0
- package/locales/ar-ma.mjs +27 -0
- package/locales/ar-sa.d.mts +9 -0
- package/locales/ar-sa.mjs +27 -0
- package/locales/ar-tn.d.mts +9 -0
- package/locales/ar-tn.mjs +27 -0
- package/locales/ar.d.mts +6 -0
- package/locales/ar.mjs +198 -0
- package/locales/az.d.mts +6 -0
- package/locales/az.mjs +108 -0
- package/locales/be.d.mts +6 -0
- package/locales/be.mjs +136 -0
- package/locales/bg.d.mts +6 -0
- package/locales/bg.mjs +127 -0
- package/locales/bi.d.mts +6 -0
- package/locales/bi.mjs +108 -0
- package/locales/bm.d.mts +6 -0
- package/locales/bm.mjs +108 -0
- package/locales/bn-bd.d.mts +9 -0
- package/locales/bn-bd.mjs +22 -0
- package/locales/bn.d.mts +6 -0
- package/locales/bn.mjs +137 -0
- package/locales/bo.d.mts +6 -0
- package/locales/bo.mjs +108 -0
- package/locales/br.d.mts +6 -0
- package/locales/br.mjs +180 -0
- package/locales/bs.d.mts +6 -0
- package/locales/bs.mjs +130 -0
- package/locales/ca.d.mts +6 -0
- package/locales/ca.mjs +142 -0
- package/locales/cs.d.mts +6 -0
- package/locales/cs.mjs +186 -0
- package/locales/cv.d.mts +6 -0
- package/locales/cv.mjs +108 -0
- package/locales/cy.d.mts +6 -0
- package/locales/cy.mjs +108 -0
- package/locales/da.d.mts +6 -0
- package/locales/da.mjs +108 -0
- package/locales/de-at.d.mts +9 -0
- package/locales/de-at.mjs +42 -0
- package/locales/de-ch.d.mts +9 -0
- package/locales/de-ch.mjs +12 -0
- package/locales/de.d.mts +6 -0
- package/locales/de.mjs +131 -0
- package/locales/dv.d.mts +6 -0
- package/locales/dv.mjs +108 -0
- package/locales/el.d.mts +6 -0
- package/locales/el.mjs +117 -0
- package/locales/en-au.d.mts +9 -0
- package/locales/en-au.mjs +26 -0
- package/locales/en-ca.d.mts +9 -0
- package/locales/en-ca.mjs +26 -0
- package/locales/en-gb.d.mts +11 -0
- package/locales/en-gb.mjs +29 -0
- package/locales/en-ie.d.mts +9 -0
- package/locales/en-ie.mjs +25 -0
- package/locales/en-il.d.mts +9 -0
- package/locales/en-il.mjs +27 -0
- package/locales/en-in.d.mts +9 -0
- package/locales/en-in.mjs +25 -0
- package/locales/en-nz.d.mts +9 -0
- package/locales/en-nz.mjs +27 -0
- package/locales/en-sg.d.mts +9 -0
- package/locales/en-sg.mjs +27 -0
- package/locales/en-tt.d.mts +9 -0
- package/locales/en-tt.mjs +27 -0
- package/locales/en-us.d.mts +9 -0
- package/locales/en-us.mjs +12 -0
- package/locales/en.d.mts +6 -0
- package/locales/en.mjs +117 -0
- package/locales/eo.d.mts +6 -0
- package/locales/eo.mjs +108 -0
- package/locales/es-do.d.mts +9 -0
- package/locales/es-do.mjs +25 -0
- package/locales/es-mx.d.mts +9 -0
- package/locales/es-mx.mjs +13 -0
- package/locales/es-pr.d.mts +9 -0
- package/locales/es-pr.mjs +16 -0
- package/locales/es-us.d.mts +9 -0
- package/locales/es-us.mjs +12 -0
- package/locales/es.d.mts +6 -0
- package/locales/es.mjs +118 -0
- package/locales/et.d.mts +6 -0
- package/locales/et.mjs +146 -0
- package/locales/eu.d.mts +6 -0
- package/locales/eu.mjs +108 -0
- package/locales/fa.d.mts +6 -0
- package/locales/fa.mjs +108 -0
- package/locales/fi.d.mts +6 -0
- package/locales/fi.mjs +171 -0
- package/locales/fil.d.mts +6 -0
- package/locales/fil.mjs +108 -0
- package/locales/fo.d.mts +6 -0
- package/locales/fo.mjs +108 -0
- package/locales/fr-ca.d.mts +9 -0
- package/locales/fr-ca.mjs +16 -0
- package/locales/fr-ch.d.mts +9 -0
- package/locales/fr-ch.mjs +16 -0
- package/locales/fr.d.mts +6 -0
- package/locales/fr.mjs +110 -0
- package/locales/fy.d.mts +6 -0
- package/locales/fy.mjs +108 -0
- package/locales/ga.d.mts +6 -0
- package/locales/ga.mjs +108 -0
- package/locales/gd.d.mts +6 -0
- package/locales/gd.mjs +108 -0
- package/locales/gl.d.mts +6 -0
- package/locales/gl.mjs +118 -0
- package/locales/gom-deva.d.mts +6 -0
- package/locales/gom-deva.mjs +148 -0
- package/locales/gom-latn.d.mts +6 -0
- package/locales/gom-latn.mjs +148 -0
- package/locales/gu.d.mts +6 -0
- package/locales/gu.mjs +108 -0
- package/locales/he.d.mts +6 -0
- package/locales/he.mjs +132 -0
- package/locales/hi.d.mts +6 -0
- package/locales/hi.mjs +124 -0
- package/locales/hr.d.mts +6 -0
- package/locales/hr.mjs +195 -0
- package/locales/ht.d.mts +6 -0
- package/locales/ht.mjs +108 -0
- package/locales/hu.d.mts +6 -0
- package/locales/hu.mjs +144 -0
- package/locales/hy-am.d.mts +6 -0
- package/locales/hy-am.mjs +126 -0
- package/locales/id.d.mts +6 -0
- package/locales/id.mjs +108 -0
- package/locales/is.d.mts +6 -0
- package/locales/is.mjs +167 -0
- package/locales/it-ch.d.mts +9 -0
- package/locales/it-ch.mjs +27 -0
- package/locales/it.d.mts +6 -0
- package/locales/it.mjs +121 -0
- package/locales/ja.d.mts +12 -0
- package/locales/ja.mjs +111 -0
- package/locales/jv.d.mts +6 -0
- package/locales/jv.mjs +108 -0
- package/locales/ka.d.mts +6 -0
- package/locales/ka.mjs +125 -0
- package/locales/kk.d.mts +6 -0
- package/locales/kk.mjs +108 -0
- package/locales/km.d.mts +6 -0
- package/locales/km.mjs +108 -0
- package/locales/kn.d.mts +6 -0
- package/locales/kn.mjs +108 -0
- package/locales/ko.d.mts +6 -0
- package/locales/ko.mjs +107 -0
- package/locales/ku.d.mts +6 -0
- package/locales/ku.mjs +121 -0
- package/locales/ky.d.mts +6 -0
- package/locales/ky.mjs +108 -0
- package/locales/lb.d.mts +6 -0
- package/locales/lb.mjs +169 -0
- package/locales/lo.d.mts +6 -0
- package/locales/lo.mjs +107 -0
- package/locales/lt.d.mts +6 -0
- package/locales/lt.mjs +108 -0
- package/locales/lv.d.mts +6 -0
- package/locales/lv.mjs +108 -0
- package/locales/me.d.mts +6 -0
- package/locales/me.mjs +129 -0
- package/locales/mi.d.mts +6 -0
- package/locales/mi.mjs +108 -0
- package/locales/mk.d.mts +6 -0
- package/locales/mk.mjs +119 -0
- package/locales/ml.d.mts +6 -0
- package/locales/ml.mjs +111 -0
- package/locales/mn.d.mts +6 -0
- package/locales/mn.mjs +127 -0
- package/locales/mr.d.mts +6 -0
- package/locales/mr.mjs +229 -0
- package/locales/ms-my.d.mts +9 -0
- package/locales/ms-my.mjs +12 -0
- package/locales/ms.d.mts +6 -0
- package/locales/ms.mjs +108 -0
- package/locales/mt.d.mts +6 -0
- package/locales/mt.mjs +108 -0
- package/locales/my.d.mts +6 -0
- package/locales/my.mjs +134 -0
- package/locales/nb.d.mts +6 -0
- package/locales/nb.mjs +108 -0
- package/locales/ne.d.mts +6 -0
- package/locales/ne.mjs +108 -0
- package/locales/nl-be.d.mts +9 -0
- package/locales/nl-be.mjs +16 -0
- package/locales/nl.d.mts +6 -0
- package/locales/nl.mjs +108 -0
- package/locales/nn.d.mts +6 -0
- package/locales/nn.mjs +108 -0
- package/locales/oc-lnc.d.mts +6 -0
- package/locales/oc-lnc.mjs +125 -0
- package/locales/pa-in.d.mts +6 -0
- package/locales/pa-in.mjs +125 -0
- package/locales/pl.d.mts +6 -0
- package/locales/pl.mjs +162 -0
- package/locales/pt-br.d.mts +9 -0
- package/locales/pt-br.mjs +51 -0
- package/locales/pt.d.mts +6 -0
- package/locales/pt.mjs +110 -0
- package/locales/rn.d.mts +6 -0
- package/locales/rn.mjs +108 -0
- package/locales/ro.d.mts +6 -0
- package/locales/ro.mjs +108 -0
- package/locales/ru.d.mts +12 -0
- package/locales/ru.mjs +237 -0
- package/locales/rw.d.mts +6 -0
- package/locales/rw.mjs +108 -0
- package/locales/sd.d.mts +6 -0
- package/locales/sd.mjs +108 -0
- package/locales/se.d.mts +6 -0
- package/locales/se.mjs +108 -0
- package/locales/si.d.mts +6 -0
- package/locales/si.mjs +108 -0
- package/locales/sk.d.mts +6 -0
- package/locales/sk.mjs +168 -0
- package/locales/sl.d.mts +6 -0
- package/locales/sl.mjs +177 -0
- package/locales/sq.d.mts +6 -0
- package/locales/sq.mjs +108 -0
- package/locales/sr-cyrl.d.mts +9 -0
- package/locales/sr-cyrl.mjs +174 -0
- package/locales/sr.d.mts +6 -0
- package/locales/sr.mjs +186 -0
- package/locales/ss.d.mts +6 -0
- package/locales/ss.mjs +110 -0
- package/locales/sv-fi.d.mts +9 -0
- package/locales/sv-fi.mjs +25 -0
- package/locales/sv.d.mts +6 -0
- package/locales/sv.mjs +111 -0
- package/locales/sw.d.mts +6 -0
- package/locales/sw.mjs +108 -0
- package/locales/ta.d.mts +6 -0
- package/locales/ta.mjs +139 -0
- package/locales/te.d.mts +6 -0
- package/locales/te.mjs +111 -0
- package/locales/tet.d.mts +6 -0
- package/locales/tet.mjs +111 -0
- package/locales/tg.d.mts +6 -0
- package/locales/tg.mjs +127 -0
- package/locales/th.d.mts +6 -0
- package/locales/th.mjs +108 -0
- package/locales/tk.d.mts +6 -0
- package/locales/tk.mjs +135 -0
- package/locales/tl-ph.d.mts +6 -0
- package/locales/tl-ph.mjs +108 -0
- package/locales/tlh.d.mts +6 -0
- package/locales/tlh.mjs +155 -0
- package/locales/tr.d.mts +6 -0
- package/locales/tr.mjs +135 -0
- package/locales/tzl.d.mts +6 -0
- package/locales/tzl.mjs +125 -0
- package/locales/tzm-latn.d.mts +9 -0
- package/locales/tzm-latn.mjs +68 -0
- package/locales/tzm.d.mts +6 -0
- package/locales/tzm.mjs +108 -0
- package/locales/ug-cn.d.mts +6 -0
- package/locales/ug-cn.mjs +113 -0
- package/locales/uk.d.mts +6 -0
- package/locales/uk.mjs +199 -0
- package/locales/ur.d.mts +6 -0
- package/locales/ur.mjs +110 -0
- package/locales/uz-latn.d.mts +9 -0
- package/locales/uz-latn.mjs +68 -0
- package/locales/uz.d.mts +6 -0
- package/locales/uz.mjs +108 -0
- package/locales/vi.d.mts +6 -0
- package/locales/vi.mjs +108 -0
- package/locales/x-pseudo.d.mts +6 -0
- package/locales/x-pseudo.mjs +111 -0
- package/locales/yo.d.mts +6 -0
- package/locales/yo.mjs +108 -0
- package/locales/zh-cn.d.mts +9 -0
- package/locales/zh-cn.mjs +12 -0
- package/locales/zh-hk.d.mts +9 -0
- package/locales/zh-hk.mjs +21 -0
- package/locales/zh-mo.d.mts +9 -0
- package/locales/zh-mo.mjs +21 -0
- package/locales/zh-tw.d.mts +9 -0
- package/locales/zh-tw.mjs +21 -0
- package/locales/zh.d.mts +12 -0
- package/locales/zh.mjs +129 -0
- package/package.json +61 -29
- package/plugins/advancedFormat/index.d.mts +6 -0
- package/plugins/advancedFormat/index.mjs +18 -0
- package/plugins/advancedParse/index.d.mts +6 -0
- package/plugins/advancedParse/index.mjs +407 -0
- package/plugins/calendar/index.d.mts +12 -0
- package/plugins/calendar/index.mjs +32 -0
- package/plugins/dayOfYear/index.d.mts +12 -0
- package/plugins/dayOfYear/index.mjs +11 -0
- package/plugins/duration/index.d.mts +78 -0
- package/plugins/duration/index.mjs +477 -0
- package/plugins/isBetween/index.d.mts +22 -0
- package/plugins/isBetween/index.mjs +15 -0
- package/plugins/isLeapYear/index.d.mts +11 -0
- package/plugins/isLeapYear/index.mjs +10 -0
- package/plugins/isSameOrAfter/index.d.mts +11 -0
- package/plugins/isSameOrAfter/index.mjs +9 -0
- package/plugins/isSameOrBefore/index.d.mts +11 -0
- package/plugins/isSameOrBefore/index.mjs +9 -0
- package/plugins/isToday/index.d.mts +11 -0
- package/plugins/isToday/index.mjs +11 -0
- package/plugins/isTomorrow/index.d.mts +11 -0
- package/plugins/isTomorrow/index.mjs +13 -0
- package/plugins/isYesterday/index.d.mts +11 -0
- package/plugins/isYesterday/index.mjs +13 -0
- package/plugins/isoWeek/index.d.mts +19 -0
- package/plugins/isoWeek/index.mjs +228 -0
- package/plugins/locale/index.d.mts +104 -0
- package/plugins/locale/index.mjs +141 -0
- package/plugins/localeData/index.d.mts +6 -0
- package/plugins/localeData/index.mjs +155 -0
- package/plugins/localizedFormat/index.d.mts +6 -0
- package/plugins/localizedFormat/index.mjs +83 -0
- package/plugins/localizedParse/index.d.mts +6 -0
- package/plugins/localizedParse/index.mjs +217 -0
- package/plugins/minMax/index.d.mts +12 -0
- package/plugins/minMax/index.mjs +21 -0
- package/plugins/objectSupport/index.d.mts +6 -0
- package/plugins/objectSupport/index.mjs +99 -0
- package/plugins/pluralGetSet/index.d.mts +18 -0
- package/plugins/pluralGetSet/index.mjs +15 -0
- package/plugins/quarterOfYear/index.d.mts +14 -0
- package/plugins/quarterOfYear/index.mjs +51 -0
- package/plugins/relativeTime/index.d.mts +47 -0
- package/plugins/relativeTime/index.mjs +187 -0
- package/plugins/timezone/index.d.mts +6 -0
- package/plugins/timezone/index.mjs +456 -0
- package/plugins/toArray/index.d.mts +11 -0
- package/plugins/toArray/index.mjs +17 -0
- package/plugins/toObject/index.d.mts +19 -0
- package/plugins/toObject/index.mjs +17 -0
- package/plugins/utc/index.d.mts +18 -0
- package/plugins/utc/index.mjs +192 -0
- package/plugins/week/index.d.mts +19 -0
- package/plugins/week/index.mjs +350 -0
- package/EsDay-KXQgnL1r.d.ts +0 -89
- package/chunk-MLKGABMK.js +0 -7
- package/chunk-NUV73YDM.js +0 -60
- package/chunk-SQBPUYUY.js +0 -140
- package/index.d.ts +0 -6
- package/index.js +0 -310
- package/locales/en.d.ts +0 -6
- package/locales/en.js +0 -1
- package/locales/zh.d.ts +0 -6
- package/locales/zh.js +0 -64
- package/plugins/customParseFormat/index.d.ts +0 -5
- package/plugins/customParseFormat/index.js +0 -159
- package/plugins/isToday/index.d.ts +0 -10
- package/plugins/isToday/index.js +0 -8
- package/plugins/locale/index.d.ts +0 -75
- package/plugins/locale/index.js +0 -70
- package/plugins/utc/index.d.ts +0 -22
- package/plugins/utc/index.js +0 -40
package/locales/bn.mjs
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
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
|
+
};
|
|
135
|
+
|
|
136
|
+
//#endregion
|
|
137
|
+
export { localeBn as default };
|
package/locales/bo.d.mts
ADDED
package/locales/bo.mjs
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
//#region src/locales/bo.ts
|
|
2
|
+
const localeBo = {
|
|
3
|
+
name: "bo",
|
|
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
|
+
dayOfMonthOrdinalParse: /\d{1,2}/,
|
|
60
|
+
ordinal: (n) => `${n}`,
|
|
61
|
+
weekStart: 1,
|
|
62
|
+
yearStart: 4,
|
|
63
|
+
formats: {
|
|
64
|
+
LT: "A h:mm",
|
|
65
|
+
LTS: "A h:mm:ss",
|
|
66
|
+
L: "DD/MM/YYYY",
|
|
67
|
+
LL: "D MMMM YYYY",
|
|
68
|
+
LLL: "D MMMM YYYY, A h:mm",
|
|
69
|
+
LLLL: "dddd, D MMMM YYYY, A h:mm",
|
|
70
|
+
l: "DD/MM/YYYY",
|
|
71
|
+
ll: "D MMMM YYYY",
|
|
72
|
+
lll: "D MMMM YYYY, A h:mm",
|
|
73
|
+
llll: "dddd, D MMMM YYYY, A h:mm"
|
|
74
|
+
},
|
|
75
|
+
calendar: {
|
|
76
|
+
sameDay: "[དི་རིང] LT",
|
|
77
|
+
nextDay: "[སང་ཉིན] LT",
|
|
78
|
+
nextWeek: "[བདུན་ཕྲག་རྗེས་མ], LT",
|
|
79
|
+
lastDay: "[ཁ་སང] LT",
|
|
80
|
+
lastWeek: "[བདུན་ཕྲག་མཐའ་མ] dddd, LT",
|
|
81
|
+
sameElse: "L"
|
|
82
|
+
},
|
|
83
|
+
relativeTime: {
|
|
84
|
+
future: "%s ལ་",
|
|
85
|
+
past: "%s སྔོན་ལ་",
|
|
86
|
+
s: "ཏོག་ཙམ་",
|
|
87
|
+
ss: "%d སྐར་ཆ།",
|
|
88
|
+
m: "སྐར་མ་གཅིག་",
|
|
89
|
+
mm: "སྐར་མ་ %d",
|
|
90
|
+
h: "ཆུ་ཚོད་གཅིག་",
|
|
91
|
+
hh: "ཆུ་ཚོད་ %d",
|
|
92
|
+
d: "ཉིན་གཅིག་",
|
|
93
|
+
dd: "ཉིན་ %d",
|
|
94
|
+
w: "གཟའ་འཁོར་གཅིག།",
|
|
95
|
+
ww: "བདུན་ཕྲག %d",
|
|
96
|
+
M: "ཟླ་བ་གཅིག་",
|
|
97
|
+
MM: "ཟླ་བ་ %d",
|
|
98
|
+
y: "ལོ་གཅིག་",
|
|
99
|
+
yy: "ལོ་ %d"
|
|
100
|
+
},
|
|
101
|
+
meridiem: (hour, _minute, isLowercase) => {
|
|
102
|
+
const m = hour < 12 ? "AM" : "PM";
|
|
103
|
+
return isLowercase ? m.toLowerCase() : m;
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
//#endregion
|
|
108
|
+
export { localeBo as default };
|
package/locales/br.d.mts
ADDED
package/locales/br.mjs
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
//#region src/locales/br.ts
|
|
2
|
+
function lastNumber(timeValue) {
|
|
3
|
+
if (timeValue > 9) return lastNumber(timeValue % 10);
|
|
4
|
+
return timeValue;
|
|
5
|
+
}
|
|
6
|
+
function softMutation(text) {
|
|
7
|
+
return {
|
|
8
|
+
m: "v",
|
|
9
|
+
b: "v",
|
|
10
|
+
d: "z"
|
|
11
|
+
}[text.charAt(0)] + text.substring(1);
|
|
12
|
+
}
|
|
13
|
+
function mutation(text, timeValue) {
|
|
14
|
+
if (timeValue === 2) return softMutation(text);
|
|
15
|
+
return text;
|
|
16
|
+
}
|
|
17
|
+
function relativeTimeWithMutation(timeValue, _withoutSuffix, key) {
|
|
18
|
+
return `${timeValue} ${mutation({
|
|
19
|
+
mm: "munutenn",
|
|
20
|
+
MM: "miz",
|
|
21
|
+
dd: "devezh"
|
|
22
|
+
}[key], timeValue)}`;
|
|
23
|
+
}
|
|
24
|
+
function specialMutationForYears(number) {
|
|
25
|
+
switch (lastNumber(number)) {
|
|
26
|
+
case 1:
|
|
27
|
+
case 3:
|
|
28
|
+
case 4:
|
|
29
|
+
case 5:
|
|
30
|
+
case 9: return `${number} bloaz`;
|
|
31
|
+
default: return `${number} vloaz`;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
const relativeTimeFormatStrings = {
|
|
35
|
+
s: "un nebeud segondennoù",
|
|
36
|
+
ss: "%d eilenn",
|
|
37
|
+
m: "ur vunutenn",
|
|
38
|
+
mm: relativeTimeWithMutation,
|
|
39
|
+
h: "un eur",
|
|
40
|
+
hh: "%d eur",
|
|
41
|
+
d: "un devezh",
|
|
42
|
+
dd: relativeTimeWithMutation,
|
|
43
|
+
w: "ur sizhun",
|
|
44
|
+
ww: "%d izhun",
|
|
45
|
+
M: "ur miz",
|
|
46
|
+
MM: relativeTimeWithMutation,
|
|
47
|
+
y: "ur bloaz",
|
|
48
|
+
yy: specialMutationForYears
|
|
49
|
+
};
|
|
50
|
+
const relativeTimeFormatter = (timeValue, withoutSuffix, token, _isFuture) => {
|
|
51
|
+
const format = relativeTimeFormatStrings[token];
|
|
52
|
+
if (typeof format === "function") return format(Number(timeValue), withoutSuffix, token);
|
|
53
|
+
return format.replace("%d", timeValue.toString());
|
|
54
|
+
};
|
|
55
|
+
const localeBr = {
|
|
56
|
+
name: "br",
|
|
57
|
+
weekdays: [
|
|
58
|
+
"Sul",
|
|
59
|
+
"Lun",
|
|
60
|
+
"Meurzh",
|
|
61
|
+
"Mercʼher",
|
|
62
|
+
"Yaou",
|
|
63
|
+
"Gwener",
|
|
64
|
+
"Sadorn"
|
|
65
|
+
],
|
|
66
|
+
weekdaysShort: [
|
|
67
|
+
"Sul",
|
|
68
|
+
"Lun",
|
|
69
|
+
"Meu",
|
|
70
|
+
"Mer",
|
|
71
|
+
"Yao",
|
|
72
|
+
"Gwe",
|
|
73
|
+
"Sad"
|
|
74
|
+
],
|
|
75
|
+
weekdaysMin: [
|
|
76
|
+
"Su",
|
|
77
|
+
"Lu",
|
|
78
|
+
"Me",
|
|
79
|
+
"Mer",
|
|
80
|
+
"Ya",
|
|
81
|
+
"Gw",
|
|
82
|
+
"Sa"
|
|
83
|
+
],
|
|
84
|
+
months: [
|
|
85
|
+
"Genver",
|
|
86
|
+
"Cʼhwevrer",
|
|
87
|
+
"Meurzh",
|
|
88
|
+
"Ebrel",
|
|
89
|
+
"Mae",
|
|
90
|
+
"Mezheven",
|
|
91
|
+
"Gouere",
|
|
92
|
+
"Eost",
|
|
93
|
+
"Gwengolo",
|
|
94
|
+
"Here",
|
|
95
|
+
"Du",
|
|
96
|
+
"Kerzu"
|
|
97
|
+
],
|
|
98
|
+
monthsShort: [
|
|
99
|
+
"Gen",
|
|
100
|
+
"Cʼhwe",
|
|
101
|
+
"Meu",
|
|
102
|
+
"Ebr",
|
|
103
|
+
"Mae",
|
|
104
|
+
"Eve",
|
|
105
|
+
"Gou",
|
|
106
|
+
"Eos",
|
|
107
|
+
"Gwe",
|
|
108
|
+
"Her",
|
|
109
|
+
"Du",
|
|
110
|
+
"Ker"
|
|
111
|
+
],
|
|
112
|
+
dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
|
|
113
|
+
ordinal: (n) => `${n}`,
|
|
114
|
+
weekStart: 1,
|
|
115
|
+
yearStart: 4,
|
|
116
|
+
formats: {
|
|
117
|
+
LT: "h[e]mm A",
|
|
118
|
+
LTS: "h[e]mm:ss A",
|
|
119
|
+
L: "DD/MM/YYYY",
|
|
120
|
+
LL: "D [a viz] MMMM YYYY",
|
|
121
|
+
LLL: "D [a viz] MMMM YYYY h[e]mm A",
|
|
122
|
+
LLLL: "dddd, D [a viz] MMMM YYYY h[e]mm A",
|
|
123
|
+
l: "DD/MM/YYYY",
|
|
124
|
+
ll: "D [a viz] MMMM YYYY",
|
|
125
|
+
lll: "D [a viz] MMMM YYYY h[e]mm A",
|
|
126
|
+
llll: "dddd, D [a viz] MMMM YYYY h[e]mm A"
|
|
127
|
+
},
|
|
128
|
+
calendar: {
|
|
129
|
+
sameDay: "[danas u] LT",
|
|
130
|
+
nextDay: "[sutra u] LT",
|
|
131
|
+
nextWeek() {
|
|
132
|
+
switch (this.day()) {
|
|
133
|
+
case 0: return "[u] [nedjelju] [u] LT";
|
|
134
|
+
case 3: return "[u] [srijedu] [u] LT";
|
|
135
|
+
case 6: return "[u] [subotu] [u] LT";
|
|
136
|
+
case 1:
|
|
137
|
+
case 2:
|
|
138
|
+
case 4:
|
|
139
|
+
case 5: return "[u] dddd [u] LT";
|
|
140
|
+
default: return "";
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
lastDay: "[jučer u] LT",
|
|
144
|
+
lastWeek() {
|
|
145
|
+
switch (this.day()) {
|
|
146
|
+
case 0:
|
|
147
|
+
case 3: return "[prošlu] dddd [u] LT";
|
|
148
|
+
case 6: return "[prošle] [subote] [u] LT";
|
|
149
|
+
case 1:
|
|
150
|
+
case 2:
|
|
151
|
+
case 4:
|
|
152
|
+
case 5: return "[prošli] dddd [u] LT";
|
|
153
|
+
default: return "";
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
sameElse: "L"
|
|
157
|
+
},
|
|
158
|
+
relativeTime: {
|
|
159
|
+
future: "a-benn %s",
|
|
160
|
+
past: "%s ʼzo",
|
|
161
|
+
s: relativeTimeFormatter,
|
|
162
|
+
ss: relativeTimeFormatter,
|
|
163
|
+
m: relativeTimeFormatter,
|
|
164
|
+
mm: relativeTimeFormatter,
|
|
165
|
+
h: relativeTimeFormatter,
|
|
166
|
+
hh: relativeTimeFormatter,
|
|
167
|
+
d: relativeTimeFormatter,
|
|
168
|
+
dd: relativeTimeFormatter,
|
|
169
|
+
w: relativeTimeFormatter,
|
|
170
|
+
ww: relativeTimeFormatter,
|
|
171
|
+
M: relativeTimeFormatter,
|
|
172
|
+
MM: relativeTimeFormatter,
|
|
173
|
+
y: relativeTimeFormatter,
|
|
174
|
+
yy: relativeTimeFormatter
|
|
175
|
+
},
|
|
176
|
+
meridiem: (hour, _minute, _isLowercase) => hour < 12 ? "a.m." : "g.m."
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
//#endregion
|
|
180
|
+
export { localeBr as default };
|
package/locales/bs.d.mts
ADDED
package/locales/bs.mjs
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
//#region src/locales/bs.ts
|
|
2
|
+
const localeBs = {
|
|
3
|
+
name: "bs",
|
|
4
|
+
weekdays: [
|
|
5
|
+
"nedjelja",
|
|
6
|
+
"ponedjeljak",
|
|
7
|
+
"utorak",
|
|
8
|
+
"srijeda",
|
|
9
|
+
"četvrtak",
|
|
10
|
+
"petak",
|
|
11
|
+
"subota"
|
|
12
|
+
],
|
|
13
|
+
months: [
|
|
14
|
+
"januar",
|
|
15
|
+
"februar",
|
|
16
|
+
"mart",
|
|
17
|
+
"april",
|
|
18
|
+
"maj",
|
|
19
|
+
"juni",
|
|
20
|
+
"juli",
|
|
21
|
+
"august",
|
|
22
|
+
"septembar",
|
|
23
|
+
"oktobar",
|
|
24
|
+
"novembar",
|
|
25
|
+
"decembar"
|
|
26
|
+
],
|
|
27
|
+
weekdaysShort: [
|
|
28
|
+
"ned.",
|
|
29
|
+
"pon.",
|
|
30
|
+
"uto.",
|
|
31
|
+
"sri.",
|
|
32
|
+
"čet.",
|
|
33
|
+
"pet.",
|
|
34
|
+
"sub."
|
|
35
|
+
],
|
|
36
|
+
monthsShort: [
|
|
37
|
+
"jan.",
|
|
38
|
+
"feb.",
|
|
39
|
+
"mar.",
|
|
40
|
+
"apr.",
|
|
41
|
+
"maj.",
|
|
42
|
+
"jun.",
|
|
43
|
+
"jul.",
|
|
44
|
+
"aug.",
|
|
45
|
+
"sep.",
|
|
46
|
+
"okt.",
|
|
47
|
+
"nov.",
|
|
48
|
+
"dec."
|
|
49
|
+
],
|
|
50
|
+
weekdaysMin: [
|
|
51
|
+
"ne",
|
|
52
|
+
"po",
|
|
53
|
+
"ut",
|
|
54
|
+
"sr",
|
|
55
|
+
"če",
|
|
56
|
+
"pe",
|
|
57
|
+
"su"
|
|
58
|
+
],
|
|
59
|
+
dayOfMonthOrdinalParse: /\d{1,2}/,
|
|
60
|
+
ordinal: (n) => `${n}`,
|
|
61
|
+
weekStart: 1,
|
|
62
|
+
yearStart: 4,
|
|
63
|
+
formats: {
|
|
64
|
+
LT: "H:mm",
|
|
65
|
+
LTS: "H:mm:ss",
|
|
66
|
+
L: "DD.MM.YYYY",
|
|
67
|
+
LL: "D. MMMM YYYY",
|
|
68
|
+
LLL: "D. MMMM YYYY H:mm",
|
|
69
|
+
LLLL: "dddd, D. MMMM YYYY H:mm",
|
|
70
|
+
l: "DD.MM.YYYY",
|
|
71
|
+
ll: "D. MMMM YYYY",
|
|
72
|
+
lll: "D. MMMM YYYY H:mm",
|
|
73
|
+
llll: "dddd, D. MMMM YYYY H:mm"
|
|
74
|
+
},
|
|
75
|
+
calendar: {
|
|
76
|
+
sameDay: "[danas u] LT",
|
|
77
|
+
nextDay: "[sutra u] LT",
|
|
78
|
+
nextWeek() {
|
|
79
|
+
switch (this.day()) {
|
|
80
|
+
case 0: return "[u] [nedjelju] [u] LT";
|
|
81
|
+
case 3: return "[u] [srijedu] [u] LT";
|
|
82
|
+
case 6: return "[u] [subotu] [u] LT";
|
|
83
|
+
case 1:
|
|
84
|
+
case 2:
|
|
85
|
+
case 4:
|
|
86
|
+
case 5: return "[u] dddd [u] LT";
|
|
87
|
+
default: return "";
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
lastDay: "[jučer u] LT",
|
|
91
|
+
lastWeek() {
|
|
92
|
+
switch (this.day()) {
|
|
93
|
+
case 0:
|
|
94
|
+
case 3: return "[prošlu] dddd [u] LT";
|
|
95
|
+
case 6: return "[prošle] [subote] [u] LT";
|
|
96
|
+
case 1:
|
|
97
|
+
case 2:
|
|
98
|
+
case 4:
|
|
99
|
+
case 5: return "[prošli] dddd [u] LT";
|
|
100
|
+
default: return "";
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
sameElse: "L"
|
|
104
|
+
},
|
|
105
|
+
relativeTime: {
|
|
106
|
+
future: "za %s",
|
|
107
|
+
past: "prije %s",
|
|
108
|
+
s: "par sekundi",
|
|
109
|
+
ss: "%d sekundi",
|
|
110
|
+
m: "minuta",
|
|
111
|
+
mm: "%d minuta",
|
|
112
|
+
h: "sat",
|
|
113
|
+
hh: "%d sati",
|
|
114
|
+
d: "dan",
|
|
115
|
+
dd: "%d dana",
|
|
116
|
+
w: "sedmica",
|
|
117
|
+
ww: "%d sedmice",
|
|
118
|
+
M: "mjesec",
|
|
119
|
+
MM: "%d mjeseci",
|
|
120
|
+
y: "godina",
|
|
121
|
+
yy: "%d godina"
|
|
122
|
+
},
|
|
123
|
+
meridiem: (hour, _minute, isLowercase) => {
|
|
124
|
+
const m = hour < 12 ? "AM" : "PM";
|
|
125
|
+
return isLowercase ? m.toLowerCase() : m;
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
//#endregion
|
|
130
|
+
export { localeBs as default };
|