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/af.mjs
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
//#region src/locales/af.ts
|
|
2
|
+
const localeAf = {
|
|
3
|
+
name: "af",
|
|
4
|
+
weekdays: [
|
|
5
|
+
"Sondag",
|
|
6
|
+
"Maandag",
|
|
7
|
+
"Dinsdag",
|
|
8
|
+
"Woensdag",
|
|
9
|
+
"Donderdag",
|
|
10
|
+
"Vrydag",
|
|
11
|
+
"Saterdag"
|
|
12
|
+
],
|
|
13
|
+
weekdaysShort: [
|
|
14
|
+
"Son",
|
|
15
|
+
"Maa",
|
|
16
|
+
"Din",
|
|
17
|
+
"Woe",
|
|
18
|
+
"Don",
|
|
19
|
+
"Vry",
|
|
20
|
+
"Sat"
|
|
21
|
+
],
|
|
22
|
+
weekdaysMin: [
|
|
23
|
+
"So",
|
|
24
|
+
"Ma",
|
|
25
|
+
"Di",
|
|
26
|
+
"Wo",
|
|
27
|
+
"Do",
|
|
28
|
+
"Vr",
|
|
29
|
+
"Sa"
|
|
30
|
+
],
|
|
31
|
+
months: [
|
|
32
|
+
"Januarie",
|
|
33
|
+
"Februarie",
|
|
34
|
+
"Maart",
|
|
35
|
+
"April",
|
|
36
|
+
"Mei",
|
|
37
|
+
"Junie",
|
|
38
|
+
"Julie",
|
|
39
|
+
"Augustus",
|
|
40
|
+
"September",
|
|
41
|
+
"Oktober",
|
|
42
|
+
"November",
|
|
43
|
+
"Desember"
|
|
44
|
+
],
|
|
45
|
+
monthsShort: [
|
|
46
|
+
"Jan",
|
|
47
|
+
"Feb",
|
|
48
|
+
"Mrt",
|
|
49
|
+
"Apr",
|
|
50
|
+
"Mei",
|
|
51
|
+
"Jun",
|
|
52
|
+
"Jul",
|
|
53
|
+
"Aug",
|
|
54
|
+
"Sep",
|
|
55
|
+
"Okt",
|
|
56
|
+
"Nov",
|
|
57
|
+
"Des"
|
|
58
|
+
],
|
|
59
|
+
dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
|
|
60
|
+
ordinal: (n) => `${n}`,
|
|
61
|
+
weekStart: 1,
|
|
62
|
+
yearStart: 4,
|
|
63
|
+
formats: {
|
|
64
|
+
LT: "HH:mm",
|
|
65
|
+
LTS: "HH:mm:ss",
|
|
66
|
+
L: "DD/MM/YYYY",
|
|
67
|
+
LL: "D MMMM YYYY",
|
|
68
|
+
LLL: "D MMMM YYYY HH:mm",
|
|
69
|
+
LLLL: "dddd, D MMMM YYYY HH:mm",
|
|
70
|
+
l: "DD/MM/YYYY",
|
|
71
|
+
ll: "D MMMM YYYY",
|
|
72
|
+
lll: "D MMMM YYYY HH:mm",
|
|
73
|
+
llll: "dddd, D MMMM YYYY HH:mm"
|
|
74
|
+
},
|
|
75
|
+
calendar: {
|
|
76
|
+
sameDay: "[Vandag om] LT",
|
|
77
|
+
nextDay: "[Môre om] LT",
|
|
78
|
+
nextWeek: "dddd [om] LT",
|
|
79
|
+
lastDay: "[Gister om] LT",
|
|
80
|
+
lastWeek: "[Laas] dddd [om] LT",
|
|
81
|
+
sameElse: "L"
|
|
82
|
+
},
|
|
83
|
+
relativeTime: {
|
|
84
|
+
future: "oor %s",
|
|
85
|
+
past: "%s gelede",
|
|
86
|
+
s: "n paar sekondes",
|
|
87
|
+
ss: "%d sekondes",
|
|
88
|
+
m: "n minuut",
|
|
89
|
+
mm: "%d minute",
|
|
90
|
+
h: "n uur",
|
|
91
|
+
hh: "%d ure",
|
|
92
|
+
d: "n dag",
|
|
93
|
+
dd: "%d dae",
|
|
94
|
+
w: "n week",
|
|
95
|
+
ww: "%d weke",
|
|
96
|
+
M: "n maand",
|
|
97
|
+
MM: "%d maande",
|
|
98
|
+
y: "n jaar",
|
|
99
|
+
yy: "%d jaar"
|
|
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 { localeAf as default };
|
package/locales/am.d.mts
ADDED
package/locales/am.mjs
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
//#region src/locales/am.ts
|
|
2
|
+
const localeAm = {
|
|
3
|
+
name: "am",
|
|
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: "HH:mm",
|
|
65
|
+
LTS: "HH:mm:ss",
|
|
66
|
+
L: "DD/MM/YYYY",
|
|
67
|
+
LL: "MMMM D ፣ YYYY",
|
|
68
|
+
LLL: "MMMM D ፣ YYYY HH:mm",
|
|
69
|
+
LLLL: "dddd ፣ MMMM D ፣ YYYY HH:mm",
|
|
70
|
+
l: "DD/MM/YYYY",
|
|
71
|
+
ll: "MMMM D ፣ YYYY",
|
|
72
|
+
lll: "MMMM D ፣ YYYY HH:mm",
|
|
73
|
+
llll: "dddd ፣ MMMM D ፣ YYYY HH:mm"
|
|
74
|
+
},
|
|
75
|
+
calendar: {
|
|
76
|
+
sameDay: "[Today at] LT",
|
|
77
|
+
nextDay: "[Tomorrow at] LT",
|
|
78
|
+
nextWeek: "dddd [at] LT",
|
|
79
|
+
lastDay: "[Yesterday at] LT",
|
|
80
|
+
lastWeek: "[Last] dddd [at] 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 { localeAm as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import locale from "./ar.mjs";
|
|
2
|
+
import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/ar-dz.ts
|
|
5
|
+
/**
|
|
6
|
+
* Arabic (Algeria) [ar-DZ]
|
|
7
|
+
*/
|
|
8
|
+
const localeArDz = cloneLocale(locale);
|
|
9
|
+
const months = [
|
|
10
|
+
"جانفي",
|
|
11
|
+
"فيفري",
|
|
12
|
+
"مارس",
|
|
13
|
+
"أفريل",
|
|
14
|
+
"ماي",
|
|
15
|
+
"جوان",
|
|
16
|
+
"جويلية",
|
|
17
|
+
"أوت",
|
|
18
|
+
"سبتمبر",
|
|
19
|
+
"أكتوبر",
|
|
20
|
+
"نوفمبر",
|
|
21
|
+
"ديسمبر"
|
|
22
|
+
];
|
|
23
|
+
setLocaleProperty(localeArDz, "name", "ar-DZ");
|
|
24
|
+
setLocaleProperty(localeArDz, "months", months);
|
|
25
|
+
setLocaleProperty(localeArDz, "monthsShort", months);
|
|
26
|
+
setLocaleProperty(localeArDz, "weekStart", 0);
|
|
27
|
+
setLocaleProperty(localeArDz, "yearStart", 4);
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
export { localeArDz as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import locale from "./ar.mjs";
|
|
2
|
+
import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/ar-iq.ts
|
|
5
|
+
/**
|
|
6
|
+
* Arabic (Iraq) [ar-IQ]
|
|
7
|
+
*/
|
|
8
|
+
const localeArIq = cloneLocale(locale);
|
|
9
|
+
setLocaleProperty(localeArIq, "name", "ar-IQ");
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { localeArIq as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import locale from "./ar.mjs";
|
|
2
|
+
import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/ar-kw.ts
|
|
5
|
+
/**
|
|
6
|
+
* Arabic (Kuwait) [ar-KW]
|
|
7
|
+
*/
|
|
8
|
+
const localeArKw = cloneLocale(locale);
|
|
9
|
+
const formats = structuredClone(localeArKw.formats);
|
|
10
|
+
formats.L = "DD/MM/YYYY";
|
|
11
|
+
formats.l = "DD/MM/YYYY";
|
|
12
|
+
const calendar = {
|
|
13
|
+
sameDay: "[اليوم على الساعة] LT",
|
|
14
|
+
nextDay: "[غدا على الساعة] LT",
|
|
15
|
+
nextWeek: "dddd [على الساعة] LT",
|
|
16
|
+
lastDay: "[أمس على الساعة] LT",
|
|
17
|
+
lastWeek: "dddd [على الساعة] LT",
|
|
18
|
+
sameElse: "L"
|
|
19
|
+
};
|
|
20
|
+
setLocaleProperty(localeArKw, "name", "ar-KW");
|
|
21
|
+
setLocaleProperty(localeArKw, "weekStart", 0);
|
|
22
|
+
setLocaleProperty(localeArKw, "formats", formats);
|
|
23
|
+
setLocaleProperty(localeArKw, "calendar", calendar);
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { localeArKw as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import locale from "./ar.mjs";
|
|
2
|
+
import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/ar-ly.ts
|
|
5
|
+
/**
|
|
6
|
+
* Arabic (Lybia) [ar-LY]
|
|
7
|
+
*/
|
|
8
|
+
const localeArLy = cloneLocale(locale);
|
|
9
|
+
setLocaleProperty(localeArLy, "name", "ar-LY");
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { localeArLy as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import locale from "./ar.mjs";
|
|
2
|
+
import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/ar-ma.ts
|
|
5
|
+
/**
|
|
6
|
+
* Arabic (Morocco) [ar-MA]
|
|
7
|
+
*/
|
|
8
|
+
const localeArMa = cloneLocale(locale);
|
|
9
|
+
const formats = structuredClone(localeArMa.formats);
|
|
10
|
+
formats.L = "DD/MM/YYYY";
|
|
11
|
+
formats.l = "DD/MM/YYYY";
|
|
12
|
+
const calendar = {
|
|
13
|
+
sameDay: "[اليوم على الساعة] LT",
|
|
14
|
+
nextDay: "[غدا على الساعة] LT",
|
|
15
|
+
nextWeek: "dddd [على الساعة] LT",
|
|
16
|
+
lastDay: "[أمس على الساعة] LT",
|
|
17
|
+
lastWeek: "dddd [على الساعة] LT",
|
|
18
|
+
sameElse: "L"
|
|
19
|
+
};
|
|
20
|
+
setLocaleProperty(localeArMa, "name", "ar-MA");
|
|
21
|
+
setLocaleProperty(localeArMa, "weekStart", 1);
|
|
22
|
+
setLocaleProperty(localeArMa, "yearStart", 4);
|
|
23
|
+
setLocaleProperty(localeArMa, "formats", formats);
|
|
24
|
+
setLocaleProperty(localeArMa, "calendar", calendar);
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
export { localeArMa as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import locale from "./ar.mjs";
|
|
2
|
+
import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/ar-sa.ts
|
|
5
|
+
/**
|
|
6
|
+
* Arabic (Saudi Arabia) [ar-SA]
|
|
7
|
+
*/
|
|
8
|
+
const localeArSa = cloneLocale(locale);
|
|
9
|
+
const formats = structuredClone(localeArSa.formats);
|
|
10
|
+
formats.L = "DD/MM/YYYY";
|
|
11
|
+
formats.l = "DD/MM/YYYY";
|
|
12
|
+
const calendar = {
|
|
13
|
+
sameDay: "[اليوم على الساعة] LT",
|
|
14
|
+
nextDay: "[غدا على الساعة] LT",
|
|
15
|
+
nextWeek: "dddd [على الساعة] LT",
|
|
16
|
+
lastDay: "[أمس على الساعة] LT",
|
|
17
|
+
lastWeek: "dddd [على الساعة] LT",
|
|
18
|
+
sameElse: "L"
|
|
19
|
+
};
|
|
20
|
+
setLocaleProperty(localeArSa, "name", "ar-SA");
|
|
21
|
+
setLocaleProperty(localeArSa, "weekStart", 0);
|
|
22
|
+
setLocaleProperty(localeArSa, "yearStart", 6);
|
|
23
|
+
setLocaleProperty(localeArSa, "formats", formats);
|
|
24
|
+
setLocaleProperty(localeArSa, "calendar", calendar);
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
export { localeArSa as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import locale from "./ar.mjs";
|
|
2
|
+
import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/ar-tn.ts
|
|
5
|
+
/**
|
|
6
|
+
* Arabic (Tunisia) [ar-TN]
|
|
7
|
+
*/
|
|
8
|
+
const localeArTn = cloneLocale(locale);
|
|
9
|
+
const formats = structuredClone(localeArTn.formats);
|
|
10
|
+
formats.L = "DD/MM/YYYY";
|
|
11
|
+
formats.l = "DD/MM/YYYY";
|
|
12
|
+
const calendar = {
|
|
13
|
+
sameDay: "[اليوم على الساعة] LT",
|
|
14
|
+
nextDay: "[غدا على الساعة] LT",
|
|
15
|
+
nextWeek: "dddd [على الساعة] LT",
|
|
16
|
+
lastDay: "[أمس على الساعة] LT",
|
|
17
|
+
lastWeek: "dddd [على الساعة] LT",
|
|
18
|
+
sameElse: "L"
|
|
19
|
+
};
|
|
20
|
+
setLocaleProperty(localeArTn, "name", "ar-TN");
|
|
21
|
+
setLocaleProperty(localeArTn, "weekStart", 1);
|
|
22
|
+
setLocaleProperty(localeArTn, "yearStart", 4);
|
|
23
|
+
setLocaleProperty(localeArTn, "formats", formats);
|
|
24
|
+
setLocaleProperty(localeArTn, "calendar", calendar);
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
export { localeArTn as default };
|
package/locales/ar.d.mts
ADDED
package/locales/ar.mjs
ADDED
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
//#region src/locales/ar.ts
|
|
2
|
+
const arabicToEnglishNumbersMap = {
|
|
3
|
+
"١": "1",
|
|
4
|
+
"٢": "2",
|
|
5
|
+
"٣": "3",
|
|
6
|
+
"٤": "4",
|
|
7
|
+
"٥": "5",
|
|
8
|
+
"٦": "6",
|
|
9
|
+
"٧": "7",
|
|
10
|
+
"٨": "8",
|
|
11
|
+
"٩": "9",
|
|
12
|
+
"٠": "0"
|
|
13
|
+
};
|
|
14
|
+
const englishToArabicNumbersMap = {
|
|
15
|
+
1: "١",
|
|
16
|
+
2: "٢",
|
|
17
|
+
3: "٣",
|
|
18
|
+
4: "٤",
|
|
19
|
+
5: "٥",
|
|
20
|
+
6: "٦",
|
|
21
|
+
7: "٧",
|
|
22
|
+
8: "٨",
|
|
23
|
+
9: "٩",
|
|
24
|
+
0: "٠"
|
|
25
|
+
};
|
|
26
|
+
const pluralForm = (value) => value === 0 ? 0 : value === 1 ? 1 : value === 2 ? 2 : value % 100 >= 3 && value % 100 <= 10 ? 3 : value % 100 >= 11 ? 4 : 5;
|
|
27
|
+
const plurals = {
|
|
28
|
+
s: [
|
|
29
|
+
"أقل من ثانية",
|
|
30
|
+
"ثانية واحدة",
|
|
31
|
+
["ثانيتان", "ثانيتين"],
|
|
32
|
+
"%d ثوان",
|
|
33
|
+
"%d ثانية",
|
|
34
|
+
"%d ثانية"
|
|
35
|
+
],
|
|
36
|
+
m: [
|
|
37
|
+
"أقل من دقيقة",
|
|
38
|
+
"دقيقة واحدة",
|
|
39
|
+
["دقيقتان", "دقيقتين"],
|
|
40
|
+
"%d دقائق",
|
|
41
|
+
"%d دقيقة",
|
|
42
|
+
"%d دقيقة"
|
|
43
|
+
],
|
|
44
|
+
h: [
|
|
45
|
+
"أقل من ساعة",
|
|
46
|
+
"ساعة واحدة",
|
|
47
|
+
["ساعتان", "ساعتين"],
|
|
48
|
+
"%d ساعات",
|
|
49
|
+
"%d ساعة",
|
|
50
|
+
"%d ساعة"
|
|
51
|
+
],
|
|
52
|
+
d: [
|
|
53
|
+
"أقل من يوم",
|
|
54
|
+
"يوم واحد",
|
|
55
|
+
["يومان", "يومين"],
|
|
56
|
+
"%d أيام",
|
|
57
|
+
"%d يومًا",
|
|
58
|
+
"%d يوم"
|
|
59
|
+
],
|
|
60
|
+
w: [
|
|
61
|
+
"أقل من اسبوع",
|
|
62
|
+
"أسبوع واحد",
|
|
63
|
+
["أسبوعان", "في أسبوعين"],
|
|
64
|
+
"%d أسابيع",
|
|
65
|
+
"%d أسبوعًا",
|
|
66
|
+
"%d أسبوع"
|
|
67
|
+
],
|
|
68
|
+
M: [
|
|
69
|
+
"أقل من شهر",
|
|
70
|
+
"شهر واحد",
|
|
71
|
+
["شهران", "شهرين"],
|
|
72
|
+
"%d أشهر",
|
|
73
|
+
"%d شهرا",
|
|
74
|
+
"%d شهر"
|
|
75
|
+
],
|
|
76
|
+
y: [
|
|
77
|
+
"أقل من عام",
|
|
78
|
+
"عام واحد",
|
|
79
|
+
["عامان", "عامين"],
|
|
80
|
+
"%d أعوام",
|
|
81
|
+
"%d عامًا",
|
|
82
|
+
"%d عام"
|
|
83
|
+
]
|
|
84
|
+
};
|
|
85
|
+
const pluralize = (unit) => (timeValue, withoutSuffix, _token, _isFuture) => {
|
|
86
|
+
const timeValueAsNumber = Number(timeValue);
|
|
87
|
+
const pluralFormToUse = pluralForm(timeValueAsNumber);
|
|
88
|
+
let plural = plurals[unit][pluralForm(timeValueAsNumber)];
|
|
89
|
+
if (pluralFormToUse === 2) plural = plural[withoutSuffix ? 0 : 1];
|
|
90
|
+
else plural = plural;
|
|
91
|
+
return plural.replace(/%d/i, `${timeValue}`);
|
|
92
|
+
};
|
|
93
|
+
const locale = {
|
|
94
|
+
name: "ar",
|
|
95
|
+
weekdays: [
|
|
96
|
+
"الأحد",
|
|
97
|
+
"الإثنين",
|
|
98
|
+
"الثلاثاء",
|
|
99
|
+
"الأربعاء",
|
|
100
|
+
"الخميس",
|
|
101
|
+
"الجمعة",
|
|
102
|
+
"السبت"
|
|
103
|
+
],
|
|
104
|
+
weekdaysShort: [
|
|
105
|
+
"أحد",
|
|
106
|
+
"إثنين",
|
|
107
|
+
"ثلاثاء",
|
|
108
|
+
"أربعاء",
|
|
109
|
+
"خميس",
|
|
110
|
+
"جمعة",
|
|
111
|
+
"سبت"
|
|
112
|
+
],
|
|
113
|
+
weekdaysMin: [
|
|
114
|
+
"ح",
|
|
115
|
+
"ن",
|
|
116
|
+
"ث",
|
|
117
|
+
"ر",
|
|
118
|
+
"خ",
|
|
119
|
+
"ج",
|
|
120
|
+
"س"
|
|
121
|
+
],
|
|
122
|
+
months: [
|
|
123
|
+
"يناير",
|
|
124
|
+
"فبراير",
|
|
125
|
+
"مارس",
|
|
126
|
+
"أبريل",
|
|
127
|
+
"مايو",
|
|
128
|
+
"يونيو",
|
|
129
|
+
"يوليو",
|
|
130
|
+
"أغسطس",
|
|
131
|
+
"سبتمبر",
|
|
132
|
+
"أكتوبر",
|
|
133
|
+
"نوفمبر",
|
|
134
|
+
"ديسمبر"
|
|
135
|
+
],
|
|
136
|
+
monthsShort: [
|
|
137
|
+
"يناير",
|
|
138
|
+
"فبراير",
|
|
139
|
+
"مارس",
|
|
140
|
+
"أبريل",
|
|
141
|
+
"مايو",
|
|
142
|
+
"يونيو",
|
|
143
|
+
"يوليو",
|
|
144
|
+
"أغسطس",
|
|
145
|
+
"سبتمبر",
|
|
146
|
+
"أكتوبر",
|
|
147
|
+
"نوفمبر",
|
|
148
|
+
"ديسمبر"
|
|
149
|
+
],
|
|
150
|
+
dayOfMonthOrdinalParse: /\d{1,2}/,
|
|
151
|
+
ordinal: (n) => `${n}`,
|
|
152
|
+
weekStart: 6,
|
|
153
|
+
yearStart: 1,
|
|
154
|
+
formats: {
|
|
155
|
+
LT: "HH:mm",
|
|
156
|
+
LTS: "HH:mm:ss",
|
|
157
|
+
L: "D/M/YYYY",
|
|
158
|
+
LL: "D MMMM YYYY",
|
|
159
|
+
LLL: "D MMMM YYYY HH:mm",
|
|
160
|
+
LLLL: "dddd D MMMM YYYY HH:mm",
|
|
161
|
+
l: "D/M/YYYY",
|
|
162
|
+
ll: "D MMMM YYYY",
|
|
163
|
+
lll: "D MMMM YYYY HH:mm",
|
|
164
|
+
llll: "dddd D MMMM YYYY HH:mm"
|
|
165
|
+
},
|
|
166
|
+
calendar: {
|
|
167
|
+
sameDay: "[اليوم عند الساعة] LT",
|
|
168
|
+
nextDay: "[غدًا عند الساعة] LT",
|
|
169
|
+
nextWeek: "dddd [عند الساعة] LT",
|
|
170
|
+
lastDay: "[أمس عند الساعة] LT",
|
|
171
|
+
lastWeek: "dddd [عند الساعة] LT",
|
|
172
|
+
sameElse: "L"
|
|
173
|
+
},
|
|
174
|
+
relativeTime: {
|
|
175
|
+
future: "بعد %s",
|
|
176
|
+
past: "منذ %s",
|
|
177
|
+
s: pluralize("s"),
|
|
178
|
+
ss: pluralize("s"),
|
|
179
|
+
m: pluralize("m"),
|
|
180
|
+
mm: pluralize("m"),
|
|
181
|
+
h: pluralize("h"),
|
|
182
|
+
hh: pluralize("h"),
|
|
183
|
+
d: pluralize("d"),
|
|
184
|
+
dd: pluralize("d"),
|
|
185
|
+
w: pluralize("w"),
|
|
186
|
+
ww: pluralize("w"),
|
|
187
|
+
M: pluralize("M"),
|
|
188
|
+
MM: pluralize("M"),
|
|
189
|
+
y: pluralize("y"),
|
|
190
|
+
yy: pluralize("y")
|
|
191
|
+
},
|
|
192
|
+
meridiem: (hour, _minute, _isLowercase) => hour > 12 ? "م" : "ص",
|
|
193
|
+
preParse: (dateString) => dateString.replace(/[١٢٣٤٥٦٧٨٩٠]/g, (match) => arabicToEnglishNumbersMap[match]).replace(/،/g, ","),
|
|
194
|
+
postFormat: (formattedDate) => formattedDate.replace(/\d/g, (match) => englishToArabicNumbersMap[Number(match)]).replace(/,/g, "،")
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
//#endregion
|
|
198
|
+
export { locale as default };
|