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
package/locales/si.js
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
//#region src/locales/si.ts
|
|
2
|
+
const localeSi = {
|
|
3
|
+
name: "si",
|
|
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: 1,
|
|
61
|
+
yearStart: 4,
|
|
62
|
+
formats: {
|
|
63
|
+
LT: "a h:mm",
|
|
64
|
+
LTS: "a h:mm:ss",
|
|
65
|
+
L: "YYYY/MM/DD",
|
|
66
|
+
LL: "YYYY MMMM D",
|
|
67
|
+
LLL: "YYYY MMMM D, a h:mm",
|
|
68
|
+
LLLL: "YYYY MMMM D [වැනි] dddd, a h:mm:ss",
|
|
69
|
+
l: "YYYY/MM/DD",
|
|
70
|
+
ll: "YYYY MMMM D",
|
|
71
|
+
lll: "YYYY MMMM D, a h:mm",
|
|
72
|
+
llll: "YYYY MMMM D [වැනි] dddd, a h:mm:ss"
|
|
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",
|
|
93
|
+
M: "මාසය",
|
|
94
|
+
MM: "මාස %d",
|
|
95
|
+
y: "වසර",
|
|
96
|
+
yy: "වසර %d"
|
|
97
|
+
},
|
|
98
|
+
meridiem: (hour, _minute, isLowercase) => {
|
|
99
|
+
if (hour > 11) return isLowercase ? "ප.ව." : "පස් වරු";
|
|
100
|
+
return isLowercase ? "පෙ.ව." : "පෙර වරු";
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
var si_default = localeSi;
|
|
104
|
+
|
|
105
|
+
//#endregion
|
|
106
|
+
export { si_default as default };
|
package/locales/sk.d.ts
ADDED
package/locales/sk.js
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
//#region src/locales/sk.ts
|
|
2
|
+
const calendar = {
|
|
3
|
+
sameDay: "[dnes o] LT",
|
|
4
|
+
nextDay: "[zajtra o] LT",
|
|
5
|
+
nextWeek() {
|
|
6
|
+
switch (this.day()) {
|
|
7
|
+
case 0: return "[v nedeľu o] LT";
|
|
8
|
+
case 1:
|
|
9
|
+
case 2: return "[v] dddd [o] LT";
|
|
10
|
+
case 3: return "[v stredu o] LT";
|
|
11
|
+
case 4: return "[vo štvrtok o] LT";
|
|
12
|
+
case 5: return "[v piatok o] LT";
|
|
13
|
+
case 6: return "[v sobotu o] LT";
|
|
14
|
+
default: return "";
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
lastDay: "[včera o] LT",
|
|
18
|
+
lastWeek() {
|
|
19
|
+
switch (this.day()) {
|
|
20
|
+
case 0: return "[minulú nedeľu o] LT";
|
|
21
|
+
case 1:
|
|
22
|
+
case 2: return "[minulý] dddd [o] LT";
|
|
23
|
+
case 3: return "[minulú stredu o] LT";
|
|
24
|
+
case 4:
|
|
25
|
+
case 5: return "[minulý] dddd [o] LT";
|
|
26
|
+
case 6: return "[minulú sobotu o] LT";
|
|
27
|
+
default: return "";
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
sameElse: "L"
|
|
31
|
+
};
|
|
32
|
+
function usePlural(timeValue) {
|
|
33
|
+
return timeValue > 1 && timeValue < 5 && ~~(timeValue / 10) !== 1;
|
|
34
|
+
}
|
|
35
|
+
const relativeTimeWithPlural = (timeValue, withoutSuffix, range, isFuture) => {
|
|
36
|
+
const result = `${timeValue} `;
|
|
37
|
+
switch (range) {
|
|
38
|
+
case "s": return withoutSuffix || isFuture ? "pár sekúnd" : "pár sekundami";
|
|
39
|
+
case "ss":
|
|
40
|
+
if (withoutSuffix || isFuture) return `${result}${usePlural(+timeValue) ? "sekundy" : "sekúnd"}`;
|
|
41
|
+
return `${result}sekundami`;
|
|
42
|
+
case "m": return withoutSuffix ? "minúta" : isFuture ? "minútu" : "minútou";
|
|
43
|
+
case "mm":
|
|
44
|
+
if (withoutSuffix || isFuture) return `${result}${usePlural(+timeValue) ? "minúty" : "minút"}`;
|
|
45
|
+
return `${result}minútami`;
|
|
46
|
+
case "h": return withoutSuffix ? "hodina" : isFuture ? "hodinu" : "hodinou";
|
|
47
|
+
case "hh":
|
|
48
|
+
if (withoutSuffix || isFuture) return result + (usePlural(+timeValue) ? "hodiny" : "hodín");
|
|
49
|
+
return `${result}hodinami`;
|
|
50
|
+
case "d": return withoutSuffix || isFuture ? "deň" : "dňom";
|
|
51
|
+
case "dd":
|
|
52
|
+
if (withoutSuffix || isFuture) return result + (usePlural(+timeValue) ? "dni" : "dní");
|
|
53
|
+
return `${result}dňami`;
|
|
54
|
+
case "M": return withoutSuffix || isFuture ? "mesiac" : "mesiacom";
|
|
55
|
+
case "MM":
|
|
56
|
+
if (withoutSuffix || isFuture) return result + (usePlural(+timeValue) ? "mesiace" : "mesiacov");
|
|
57
|
+
return `${result}mesiacmi`;
|
|
58
|
+
case "y": return withoutSuffix || isFuture ? "rok" : "rokom";
|
|
59
|
+
case "yy":
|
|
60
|
+
if (withoutSuffix || isFuture) return result + (usePlural(+timeValue) ? "roky" : "rokov");
|
|
61
|
+
return `${result}rokmi`;
|
|
62
|
+
default: return "";
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
const localeSk = {
|
|
66
|
+
name: "sk",
|
|
67
|
+
weekdays: [
|
|
68
|
+
"nedeľa",
|
|
69
|
+
"pondelok",
|
|
70
|
+
"utorok",
|
|
71
|
+
"streda",
|
|
72
|
+
"štvrtok",
|
|
73
|
+
"piatok",
|
|
74
|
+
"sobota"
|
|
75
|
+
],
|
|
76
|
+
weekdaysShort: [
|
|
77
|
+
"ne",
|
|
78
|
+
"po",
|
|
79
|
+
"ut",
|
|
80
|
+
"st",
|
|
81
|
+
"št",
|
|
82
|
+
"pi",
|
|
83
|
+
"so"
|
|
84
|
+
],
|
|
85
|
+
weekdaysMin: [
|
|
86
|
+
"ne",
|
|
87
|
+
"po",
|
|
88
|
+
"ut",
|
|
89
|
+
"st",
|
|
90
|
+
"št",
|
|
91
|
+
"pi",
|
|
92
|
+
"so"
|
|
93
|
+
],
|
|
94
|
+
months: [
|
|
95
|
+
"január",
|
|
96
|
+
"február",
|
|
97
|
+
"marec",
|
|
98
|
+
"apríl",
|
|
99
|
+
"máj",
|
|
100
|
+
"jún",
|
|
101
|
+
"júl",
|
|
102
|
+
"august",
|
|
103
|
+
"september",
|
|
104
|
+
"október",
|
|
105
|
+
"november",
|
|
106
|
+
"december"
|
|
107
|
+
],
|
|
108
|
+
monthsShort: [
|
|
109
|
+
"jan",
|
|
110
|
+
"feb",
|
|
111
|
+
"mar",
|
|
112
|
+
"apr",
|
|
113
|
+
"máj",
|
|
114
|
+
"jún",
|
|
115
|
+
"júl",
|
|
116
|
+
"aug",
|
|
117
|
+
"sep",
|
|
118
|
+
"okt",
|
|
119
|
+
"nov",
|
|
120
|
+
"dec"
|
|
121
|
+
],
|
|
122
|
+
ordinal: (n) => `${n}.`,
|
|
123
|
+
weekStart: 1,
|
|
124
|
+
yearStart: 4,
|
|
125
|
+
formats: {
|
|
126
|
+
LT: "H:mm",
|
|
127
|
+
LTS: "H:mm:ss",
|
|
128
|
+
L: "DD.MM.YYYY",
|
|
129
|
+
LL: "D. MMMM YYYY",
|
|
130
|
+
LLL: "D. MMMM YYYY H:mm",
|
|
131
|
+
LLLL: "dddd D. MMMM YYYY H:mm",
|
|
132
|
+
l: "D. M. YYYY",
|
|
133
|
+
ll: "D. MMMM YYYY",
|
|
134
|
+
lll: "D. MMMM YYYY H:mm",
|
|
135
|
+
llll: "dddd D. MMMM YYYY H:mm"
|
|
136
|
+
},
|
|
137
|
+
calendar,
|
|
138
|
+
relativeTime: {
|
|
139
|
+
future: "za %s",
|
|
140
|
+
past: "pred %s",
|
|
141
|
+
s: relativeTimeWithPlural,
|
|
142
|
+
ss: relativeTimeWithPlural,
|
|
143
|
+
m: relativeTimeWithPlural,
|
|
144
|
+
mm: relativeTimeWithPlural,
|
|
145
|
+
h: relativeTimeWithPlural,
|
|
146
|
+
hh: relativeTimeWithPlural,
|
|
147
|
+
d: relativeTimeWithPlural,
|
|
148
|
+
dd: relativeTimeWithPlural,
|
|
149
|
+
M: relativeTimeWithPlural,
|
|
150
|
+
MM: relativeTimeWithPlural,
|
|
151
|
+
y: relativeTimeWithPlural,
|
|
152
|
+
yy: relativeTimeWithPlural
|
|
153
|
+
},
|
|
154
|
+
meridiem: (hour, _minute, isLowercase) => {
|
|
155
|
+
const m = hour < 12 ? "AM" : "PM";
|
|
156
|
+
return isLowercase ? m.toLowerCase() : m;
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
var sk_default = localeSk;
|
|
160
|
+
|
|
161
|
+
//#endregion
|
|
162
|
+
export { sk_default as default };
|
package/locales/sl.d.ts
ADDED
package/locales/sl.js
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
//#region src/locales/sl.ts
|
|
2
|
+
const calendar = {
|
|
3
|
+
sameDay: "[danes ob] LT",
|
|
4
|
+
nextDay: "[jutri ob] LT",
|
|
5
|
+
nextWeek() {
|
|
6
|
+
switch (this.day()) {
|
|
7
|
+
case 0: return "[v] [nedeljo] [ob] LT";
|
|
8
|
+
case 3: return "[v] [sredo] [ob] LT";
|
|
9
|
+
case 6: return "[v] [soboto] [ob] LT";
|
|
10
|
+
case 1:
|
|
11
|
+
case 2:
|
|
12
|
+
case 4:
|
|
13
|
+
case 5: return "[v] dddd [ob] LT";
|
|
14
|
+
default: return "";
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
lastDay: "[včeraj ob] LT",
|
|
18
|
+
lastWeek() {
|
|
19
|
+
switch (this.day()) {
|
|
20
|
+
case 0: return "[prejšnjo] [nedeljo] [ob] LT";
|
|
21
|
+
case 3: return "[prejšnjo] [sredo] [ob] LT";
|
|
22
|
+
case 6: return "[prejšnjo] [soboto] [ob] LT";
|
|
23
|
+
case 1:
|
|
24
|
+
case 2:
|
|
25
|
+
case 4:
|
|
26
|
+
case 5: return "[prejšnji] dddd [ob] LT";
|
|
27
|
+
default: return "";
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
sameElse: "L"
|
|
31
|
+
};
|
|
32
|
+
function dual(timeValue) {
|
|
33
|
+
return timeValue % 100 === 2;
|
|
34
|
+
}
|
|
35
|
+
function threeFour(timeValue) {
|
|
36
|
+
return timeValue % 100 === 3 || timeValue % 100 === 4;
|
|
37
|
+
}
|
|
38
|
+
const relativeTimeFormatter = (timeValue, withoutSuffix, token, isFuture) => {
|
|
39
|
+
const result = `${timeValue} `;
|
|
40
|
+
switch (token) {
|
|
41
|
+
case "s": return withoutSuffix || isFuture ? "nekaj sekund" : "nekaj sekundami";
|
|
42
|
+
case "ss":
|
|
43
|
+
if (+timeValue === 1) return `${result}${withoutSuffix ? "sekundo" : "sekundi"}`;
|
|
44
|
+
if (+timeValue === 2) return `${result}${withoutSuffix || isFuture ? "sekundi" : "sekundah"}`;
|
|
45
|
+
if (+timeValue < 5) return `${result}${withoutSuffix || isFuture ? "sekunde" : "sekundah"}`;
|
|
46
|
+
return `${result}sekund`;
|
|
47
|
+
case "m": return withoutSuffix ? "ena minuta" : "eno minuto";
|
|
48
|
+
case "mm":
|
|
49
|
+
if (dual(+timeValue)) return `${result}${withoutSuffix || isFuture ? "minuti" : "minutama"}`;
|
|
50
|
+
if (threeFour(+timeValue)) return `${result}${withoutSuffix || isFuture ? "minute" : "minutami"}`;
|
|
51
|
+
return `${result}${withoutSuffix || isFuture ? "minut" : "minutami"}`;
|
|
52
|
+
case "h": return withoutSuffix ? "ena ura" : "eno uro";
|
|
53
|
+
case "hh":
|
|
54
|
+
if (dual(+timeValue)) return `${result}${withoutSuffix || isFuture ? "uri" : "urama"}`;
|
|
55
|
+
if (threeFour(+timeValue)) return `${result}${withoutSuffix || isFuture ? "ure" : "urami"}`;
|
|
56
|
+
return `${result}${withoutSuffix || isFuture ? "ur" : "urami"}`;
|
|
57
|
+
case "d": return withoutSuffix || isFuture ? "en dan" : "enim dnem";
|
|
58
|
+
case "dd":
|
|
59
|
+
if (dual(+timeValue)) return `${result}${withoutSuffix || isFuture ? "dneva" : "dnevoma"}`;
|
|
60
|
+
return result + (withoutSuffix || isFuture ? "dni" : "dnevi");
|
|
61
|
+
case "M": return withoutSuffix || isFuture ? "en mesec" : "enim mesecem";
|
|
62
|
+
case "MM":
|
|
63
|
+
if (dual(+timeValue)) return `${result}${withoutSuffix || isFuture ? "meseca" : "mesecema"}`;
|
|
64
|
+
if (threeFour(+timeValue)) return `${result}${withoutSuffix || isFuture ? "mesece" : "meseci"}`;
|
|
65
|
+
return `${result}${withoutSuffix || isFuture ? "mesecev" : "meseci"}`;
|
|
66
|
+
case "y": return withoutSuffix || isFuture ? "eno leto" : "enim letom";
|
|
67
|
+
case "yy":
|
|
68
|
+
if (dual(+timeValue)) return `${result}${withoutSuffix || isFuture ? "leti" : "letoma"}`;
|
|
69
|
+
if (threeFour(+timeValue)) return `${result}${withoutSuffix || isFuture ? "leta" : "leti"}`;
|
|
70
|
+
return `${result}${withoutSuffix || isFuture ? "let" : "leti"}`;
|
|
71
|
+
default: return "";
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
const localeSl = {
|
|
75
|
+
name: "sl",
|
|
76
|
+
weekdays: [
|
|
77
|
+
"nedelja",
|
|
78
|
+
"ponedeljek",
|
|
79
|
+
"torek",
|
|
80
|
+
"sreda",
|
|
81
|
+
"četrtek",
|
|
82
|
+
"petek",
|
|
83
|
+
"sobota"
|
|
84
|
+
],
|
|
85
|
+
weekdaysShort: [
|
|
86
|
+
"ned.",
|
|
87
|
+
"pon.",
|
|
88
|
+
"tor.",
|
|
89
|
+
"sre.",
|
|
90
|
+
"čet.",
|
|
91
|
+
"pet.",
|
|
92
|
+
"sob."
|
|
93
|
+
],
|
|
94
|
+
weekdaysMin: [
|
|
95
|
+
"ne",
|
|
96
|
+
"po",
|
|
97
|
+
"to",
|
|
98
|
+
"sr",
|
|
99
|
+
"če",
|
|
100
|
+
"pe",
|
|
101
|
+
"so"
|
|
102
|
+
],
|
|
103
|
+
months: [
|
|
104
|
+
"januar",
|
|
105
|
+
"februar",
|
|
106
|
+
"marec",
|
|
107
|
+
"april",
|
|
108
|
+
"maj",
|
|
109
|
+
"junij",
|
|
110
|
+
"julij",
|
|
111
|
+
"avgust",
|
|
112
|
+
"september",
|
|
113
|
+
"oktober",
|
|
114
|
+
"november",
|
|
115
|
+
"december"
|
|
116
|
+
],
|
|
117
|
+
monthsShort: [
|
|
118
|
+
"jan.",
|
|
119
|
+
"feb.",
|
|
120
|
+
"mar.",
|
|
121
|
+
"apr.",
|
|
122
|
+
"maj.",
|
|
123
|
+
"jun.",
|
|
124
|
+
"jul.",
|
|
125
|
+
"avg.",
|
|
126
|
+
"sep.",
|
|
127
|
+
"okt.",
|
|
128
|
+
"nov.",
|
|
129
|
+
"dec."
|
|
130
|
+
],
|
|
131
|
+
ordinal: (n) => `${n}.`,
|
|
132
|
+
weekStart: 1,
|
|
133
|
+
yearStart: 1,
|
|
134
|
+
formats: {
|
|
135
|
+
LT: "H:mm",
|
|
136
|
+
LTS: "H:mm:ss",
|
|
137
|
+
L: "DD.MM.YYYY",
|
|
138
|
+
LL: "D. MMMM YYYY",
|
|
139
|
+
LLL: "D. MMMM YYYY H:mm",
|
|
140
|
+
LLLL: "dddd, D. MMMM YYYY H:mm",
|
|
141
|
+
l: "D. M. YYYY",
|
|
142
|
+
ll: "D. MMMM YYYY",
|
|
143
|
+
lll: "D. MMMM YYYY H:mm",
|
|
144
|
+
llll: "dddd, D. MMMM YYYY H:mm"
|
|
145
|
+
},
|
|
146
|
+
calendar,
|
|
147
|
+
relativeTime: {
|
|
148
|
+
future: "čez %s",
|
|
149
|
+
past: "pred %s",
|
|
150
|
+
s: relativeTimeFormatter,
|
|
151
|
+
ss: relativeTimeFormatter,
|
|
152
|
+
m: relativeTimeFormatter,
|
|
153
|
+
mm: relativeTimeFormatter,
|
|
154
|
+
h: relativeTimeFormatter,
|
|
155
|
+
hh: relativeTimeFormatter,
|
|
156
|
+
d: relativeTimeFormatter,
|
|
157
|
+
dd: relativeTimeFormatter,
|
|
158
|
+
M: relativeTimeFormatter,
|
|
159
|
+
MM: relativeTimeFormatter,
|
|
160
|
+
y: relativeTimeFormatter,
|
|
161
|
+
yy: relativeTimeFormatter
|
|
162
|
+
},
|
|
163
|
+
meridiem: (hour, _minute, isLowercase) => {
|
|
164
|
+
const m = hour < 12 ? "AM" : "PM";
|
|
165
|
+
return isLowercase ? m.toLowerCase() : m;
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
var sl_default = localeSl;
|
|
169
|
+
|
|
170
|
+
//#endregion
|
|
171
|
+
export { sl_default as default };
|
package/locales/sq.d.ts
ADDED
package/locales/sq.js
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
//#region src/locales/sq.ts
|
|
2
|
+
const localeSq = {
|
|
3
|
+
name: "sq",
|
|
4
|
+
weekdays: [
|
|
5
|
+
"E Diel",
|
|
6
|
+
"E Hënë",
|
|
7
|
+
"E Martë",
|
|
8
|
+
"E Mërkurë",
|
|
9
|
+
"E Enjte",
|
|
10
|
+
"E Premte",
|
|
11
|
+
"E Shtunë"
|
|
12
|
+
],
|
|
13
|
+
weekdaysShort: [
|
|
14
|
+
"Die",
|
|
15
|
+
"Hën",
|
|
16
|
+
"Mar",
|
|
17
|
+
"Mër",
|
|
18
|
+
"Enj",
|
|
19
|
+
"Pre",
|
|
20
|
+
"Sht"
|
|
21
|
+
],
|
|
22
|
+
weekdaysMin: [
|
|
23
|
+
"D",
|
|
24
|
+
"H",
|
|
25
|
+
"Ma",
|
|
26
|
+
"Më",
|
|
27
|
+
"E",
|
|
28
|
+
"P",
|
|
29
|
+
"Sh"
|
|
30
|
+
],
|
|
31
|
+
months: [
|
|
32
|
+
"Janar",
|
|
33
|
+
"Shkurt",
|
|
34
|
+
"Mars",
|
|
35
|
+
"Prill",
|
|
36
|
+
"Maj",
|
|
37
|
+
"Qershor",
|
|
38
|
+
"Korrik",
|
|
39
|
+
"Gusht",
|
|
40
|
+
"Shtator",
|
|
41
|
+
"Tetor",
|
|
42
|
+
"Nëntor",
|
|
43
|
+
"Dhjetor"
|
|
44
|
+
],
|
|
45
|
+
monthsShort: [
|
|
46
|
+
"Jan",
|
|
47
|
+
"Shk",
|
|
48
|
+
"Mar",
|
|
49
|
+
"Pri",
|
|
50
|
+
"Maj",
|
|
51
|
+
"Qer",
|
|
52
|
+
"Kor",
|
|
53
|
+
"Gus",
|
|
54
|
+
"Sht",
|
|
55
|
+
"Tet",
|
|
56
|
+
"Nën",
|
|
57
|
+
"Dhj"
|
|
58
|
+
],
|
|
59
|
+
ordinal: (n) => `${n}.`,
|
|
60
|
+
weekStart: 1,
|
|
61
|
+
yearStart: 4,
|
|
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: "[Sot në] LT",
|
|
76
|
+
nextDay: "[Nesër në] LT",
|
|
77
|
+
nextWeek: "dddd [në] LT",
|
|
78
|
+
lastDay: "[Dje në] LT",
|
|
79
|
+
lastWeek: "dddd [e kaluar në] LT",
|
|
80
|
+
sameElse: "L"
|
|
81
|
+
},
|
|
82
|
+
relativeTime: {
|
|
83
|
+
future: "në %s",
|
|
84
|
+
past: "%s më parë",
|
|
85
|
+
s: "disa sekonda",
|
|
86
|
+
ss: "%d sekonda",
|
|
87
|
+
m: "një minutë",
|
|
88
|
+
mm: "%d minuta",
|
|
89
|
+
h: "një orë",
|
|
90
|
+
hh: "%d orë",
|
|
91
|
+
d: "një ditë",
|
|
92
|
+
dd: "%d ditë",
|
|
93
|
+
M: "një muaj",
|
|
94
|
+
MM: "%d muaj",
|
|
95
|
+
y: "një vit",
|
|
96
|
+
yy: "%d vite"
|
|
97
|
+
},
|
|
98
|
+
meridiem: (hour, _minute, isLowercase) => {
|
|
99
|
+
const m = hour < 12 ? "AM" : "PM";
|
|
100
|
+
return isLowercase ? m.toLowerCase() : m;
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
var sq_default = localeSq;
|
|
104
|
+
|
|
105
|
+
//#endregion
|
|
106
|
+
export { sq_default as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "../chunks/DqhiVwLi.js";
|
|
2
|
+
import "../chunks/MtjcOKi-.js";
|
|
3
|
+
import { Locale } from "../chunks/St35qgL0.js";
|
|
4
|
+
|
|
5
|
+
//#region src/locales/sr-cyrl.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Serbian Cyrillic [sr-CYRL]
|
|
8
|
+
*/
|
|
9
|
+
declare const localeSrCyrl: Locale;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { localeSrCyrl as default };
|