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/br.js
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
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
|
+
const mutationTable = {
|
|
8
|
+
m: "v",
|
|
9
|
+
b: "v",
|
|
10
|
+
d: "z"
|
|
11
|
+
};
|
|
12
|
+
return mutationTable[text.charAt(0)] + text.substring(1);
|
|
13
|
+
}
|
|
14
|
+
function mutation(text, timeValue) {
|
|
15
|
+
if (timeValue === 2) return softMutation(text);
|
|
16
|
+
return text;
|
|
17
|
+
}
|
|
18
|
+
function relativeTimeWithMutation(timeValue, _withoutSuffix, key) {
|
|
19
|
+
const format = {
|
|
20
|
+
mm: "munutenn",
|
|
21
|
+
MM: "miz",
|
|
22
|
+
dd: "devezh"
|
|
23
|
+
};
|
|
24
|
+
return `${timeValue} ${mutation(format[key], timeValue)}`;
|
|
25
|
+
}
|
|
26
|
+
function specialMutationForYears(number) {
|
|
27
|
+
/* istanbul ignore next line */
|
|
28
|
+
switch (lastNumber(number)) {
|
|
29
|
+
case 1:
|
|
30
|
+
case 3:
|
|
31
|
+
case 4:
|
|
32
|
+
case 5:
|
|
33
|
+
case 9: return `${number} bloaz`;
|
|
34
|
+
default: return `${number} vloaz`;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const relativeTimeFormatStrings = {
|
|
38
|
+
s: "un nebeud segondennoù",
|
|
39
|
+
ss: "%d eilenn",
|
|
40
|
+
m: "ur vunutenn",
|
|
41
|
+
mm: relativeTimeWithMutation,
|
|
42
|
+
h: "un eur",
|
|
43
|
+
hh: "%d eur",
|
|
44
|
+
d: "un devezh",
|
|
45
|
+
dd: relativeTimeWithMutation,
|
|
46
|
+
M: "ur miz",
|
|
47
|
+
MM: relativeTimeWithMutation,
|
|
48
|
+
y: "ur bloaz",
|
|
49
|
+
yy: specialMutationForYears
|
|
50
|
+
};
|
|
51
|
+
const relativeTimeFormatter = (timeValue, withoutSuffix, token, _isFuture) => {
|
|
52
|
+
const format = relativeTimeFormatStrings[token];
|
|
53
|
+
if (typeof format === "function") return format(Number(timeValue), withoutSuffix, token);
|
|
54
|
+
return format.replace("%d", timeValue.toString());
|
|
55
|
+
};
|
|
56
|
+
const localeBr = {
|
|
57
|
+
name: "br",
|
|
58
|
+
weekdays: [
|
|
59
|
+
"Sul",
|
|
60
|
+
"Lun",
|
|
61
|
+
"Meurzh",
|
|
62
|
+
"Mercʼher",
|
|
63
|
+
"Yaou",
|
|
64
|
+
"Gwener",
|
|
65
|
+
"Sadorn"
|
|
66
|
+
],
|
|
67
|
+
weekdaysShort: [
|
|
68
|
+
"Sul",
|
|
69
|
+
"Lun",
|
|
70
|
+
"Meu",
|
|
71
|
+
"Mer",
|
|
72
|
+
"Yao",
|
|
73
|
+
"Gwe",
|
|
74
|
+
"Sad"
|
|
75
|
+
],
|
|
76
|
+
weekdaysMin: [
|
|
77
|
+
"Su",
|
|
78
|
+
"Lu",
|
|
79
|
+
"Me",
|
|
80
|
+
"Mer",
|
|
81
|
+
"Ya",
|
|
82
|
+
"Gw",
|
|
83
|
+
"Sa"
|
|
84
|
+
],
|
|
85
|
+
months: [
|
|
86
|
+
"Genver",
|
|
87
|
+
"Cʼhwevrer",
|
|
88
|
+
"Meurzh",
|
|
89
|
+
"Ebrel",
|
|
90
|
+
"Mae",
|
|
91
|
+
"Mezheven",
|
|
92
|
+
"Gouere",
|
|
93
|
+
"Eost",
|
|
94
|
+
"Gwengolo",
|
|
95
|
+
"Here",
|
|
96
|
+
"Du",
|
|
97
|
+
"Kerzu"
|
|
98
|
+
],
|
|
99
|
+
monthsShort: [
|
|
100
|
+
"Gen",
|
|
101
|
+
"Cʼhwe",
|
|
102
|
+
"Meu",
|
|
103
|
+
"Ebr",
|
|
104
|
+
"Mae",
|
|
105
|
+
"Eve",
|
|
106
|
+
"Gou",
|
|
107
|
+
"Eos",
|
|
108
|
+
"Gwe",
|
|
109
|
+
"Her",
|
|
110
|
+
"Du",
|
|
111
|
+
"Ker"
|
|
112
|
+
],
|
|
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
|
+
M: relativeTimeFormatter,
|
|
170
|
+
MM: relativeTimeFormatter,
|
|
171
|
+
y: relativeTimeFormatter,
|
|
172
|
+
yy: relativeTimeFormatter
|
|
173
|
+
},
|
|
174
|
+
meridiem: (hour, _minute, _isLowercase) => hour < 12 ? "a.m." : "g.m."
|
|
175
|
+
};
|
|
176
|
+
var br_default = localeBr;
|
|
177
|
+
|
|
178
|
+
//#endregion
|
|
179
|
+
export { br_default as default };
|
package/locales/bs.d.ts
ADDED
package/locales/bs.js
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
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
|
+
ordinal: (n) => `${n}`,
|
|
60
|
+
weekStart: 1,
|
|
61
|
+
yearStart: 4,
|
|
62
|
+
formats: {
|
|
63
|
+
LT: "H:mm",
|
|
64
|
+
LTS: "H:mm:ss",
|
|
65
|
+
L: "DD.MM.YYYY",
|
|
66
|
+
LL: "D. MMMM YYYY",
|
|
67
|
+
LLL: "D. MMMM YYYY H:mm",
|
|
68
|
+
LLLL: "dddd, D. MMMM YYYY H:mm",
|
|
69
|
+
l: "DD.MM.YYYY",
|
|
70
|
+
ll: "D. MMMM YYYY",
|
|
71
|
+
lll: "D. MMMM YYYY H:mm",
|
|
72
|
+
llll: "dddd, D. MMMM YYYY H:mm"
|
|
73
|
+
},
|
|
74
|
+
calendar: {
|
|
75
|
+
sameDay: "[danas u] LT",
|
|
76
|
+
nextDay: "[sutra u] LT",
|
|
77
|
+
nextWeek() {
|
|
78
|
+
switch (this.day()) {
|
|
79
|
+
case 0: return "[u] [nedjelju] [u] LT";
|
|
80
|
+
case 3: return "[u] [srijedu] [u] LT";
|
|
81
|
+
case 6: return "[u] [subotu] [u] LT";
|
|
82
|
+
case 1:
|
|
83
|
+
case 2:
|
|
84
|
+
case 4:
|
|
85
|
+
case 5: return "[u] dddd [u] LT";
|
|
86
|
+
default: return "";
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
lastDay: "[jučer u] LT",
|
|
90
|
+
lastWeek() {
|
|
91
|
+
switch (this.day()) {
|
|
92
|
+
case 0:
|
|
93
|
+
case 3: return "[prošlu] dddd [u] LT";
|
|
94
|
+
case 6: return "[prošle] [subote] [u] LT";
|
|
95
|
+
case 1:
|
|
96
|
+
case 2:
|
|
97
|
+
case 4:
|
|
98
|
+
case 5: return "[prošli] dddd [u] LT";
|
|
99
|
+
default: return "";
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
sameElse: "L"
|
|
103
|
+
},
|
|
104
|
+
relativeTime: {
|
|
105
|
+
future: "za %s",
|
|
106
|
+
past: "prije %s",
|
|
107
|
+
s: "par sekundi",
|
|
108
|
+
ss: "%d sekundi",
|
|
109
|
+
m: "minuta",
|
|
110
|
+
mm: "%d minuta",
|
|
111
|
+
h: "sat",
|
|
112
|
+
hh: "%d sati",
|
|
113
|
+
d: "dan",
|
|
114
|
+
dd: "%d dana",
|
|
115
|
+
M: "mjesec",
|
|
116
|
+
MM: "%d mjeseci",
|
|
117
|
+
y: "godina",
|
|
118
|
+
yy: "%d godina"
|
|
119
|
+
},
|
|
120
|
+
meridiem: (hour, _minute, isLowercase) => {
|
|
121
|
+
const m = hour < 12 ? "AM" : "PM";
|
|
122
|
+
return isLowercase ? m.toLowerCase() : m;
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
var bs_default = localeBs;
|
|
126
|
+
|
|
127
|
+
//#endregion
|
|
128
|
+
export { bs_default as default };
|
package/locales/ca.d.ts
ADDED
package/locales/ca.js
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
//#region src/locales/ca.ts
|
|
2
|
+
const monthFormat = [
|
|
3
|
+
"de gener",
|
|
4
|
+
"de febrer",
|
|
5
|
+
"de març",
|
|
6
|
+
`d'abril`,
|
|
7
|
+
"de maig",
|
|
8
|
+
"de juny",
|
|
9
|
+
"de juliol",
|
|
10
|
+
`d'agost`,
|
|
11
|
+
"de setembre",
|
|
12
|
+
`d'octubre`,
|
|
13
|
+
"de novembre",
|
|
14
|
+
"de desembre"
|
|
15
|
+
];
|
|
16
|
+
const monthStandalone = [
|
|
17
|
+
"gener",
|
|
18
|
+
"febrer",
|
|
19
|
+
"març",
|
|
20
|
+
"abril",
|
|
21
|
+
"maig",
|
|
22
|
+
"juny",
|
|
23
|
+
"juliol",
|
|
24
|
+
"agost",
|
|
25
|
+
"setembre",
|
|
26
|
+
"octubre",
|
|
27
|
+
"novembre",
|
|
28
|
+
"desembre"
|
|
29
|
+
];
|
|
30
|
+
const months = {
|
|
31
|
+
standalone: monthStandalone,
|
|
32
|
+
format: monthFormat,
|
|
33
|
+
isFormat: /D[oD]?(\s)+MMMM/
|
|
34
|
+
};
|
|
35
|
+
const localeCa = {
|
|
36
|
+
name: "ca",
|
|
37
|
+
weekdays: [
|
|
38
|
+
"diumenge",
|
|
39
|
+
"dilluns",
|
|
40
|
+
"dimarts",
|
|
41
|
+
"dimecres",
|
|
42
|
+
"dijous",
|
|
43
|
+
"divendres",
|
|
44
|
+
"dissabte"
|
|
45
|
+
],
|
|
46
|
+
weekdaysShort: [
|
|
47
|
+
"dg.",
|
|
48
|
+
"dl.",
|
|
49
|
+
"dt.",
|
|
50
|
+
"dc.",
|
|
51
|
+
"dj.",
|
|
52
|
+
"dv.",
|
|
53
|
+
"ds."
|
|
54
|
+
],
|
|
55
|
+
weekdaysMin: [
|
|
56
|
+
"dg",
|
|
57
|
+
"dl",
|
|
58
|
+
"dt",
|
|
59
|
+
"dc",
|
|
60
|
+
"dj",
|
|
61
|
+
"dv",
|
|
62
|
+
"ds"
|
|
63
|
+
],
|
|
64
|
+
months,
|
|
65
|
+
monthsShort: [
|
|
66
|
+
"gen.",
|
|
67
|
+
"febr.",
|
|
68
|
+
"març",
|
|
69
|
+
"abr.",
|
|
70
|
+
"maig",
|
|
71
|
+
"juny",
|
|
72
|
+
"jul.",
|
|
73
|
+
"ag.",
|
|
74
|
+
"set.",
|
|
75
|
+
"oct.",
|
|
76
|
+
"nov.",
|
|
77
|
+
"des."
|
|
78
|
+
],
|
|
79
|
+
ordinal: (n) => {
|
|
80
|
+
let ord;
|
|
81
|
+
if (n === 1 || n === 3) ord = "r";
|
|
82
|
+
else if (n === 2) ord = "n";
|
|
83
|
+
else if (n === 4) ord = "t";
|
|
84
|
+
else ord = "è";
|
|
85
|
+
return `${n}${ord}`;
|
|
86
|
+
},
|
|
87
|
+
weekStart: 1,
|
|
88
|
+
yearStart: 4,
|
|
89
|
+
formats: {
|
|
90
|
+
LT: "H:mm",
|
|
91
|
+
LTS: "H:mm:ss",
|
|
92
|
+
L: "DD/MM/YYYY",
|
|
93
|
+
LL: "D [de] MMMM [de] YYYY",
|
|
94
|
+
LLL: "D [de] MMMM [de] YYYY [a les] H:mm",
|
|
95
|
+
LLLL: "dddd D [de] MMMM [de] YYYY [a les] H:mm",
|
|
96
|
+
l: "DD/MM/YYYY",
|
|
97
|
+
ll: "D MMM YYYY",
|
|
98
|
+
lll: "D MMM YYYY, H:mm",
|
|
99
|
+
llll: "ddd D MMM YYYY, H:mm"
|
|
100
|
+
},
|
|
101
|
+
calendar: {
|
|
102
|
+
sameDay() {
|
|
103
|
+
return `[avui a ${this.hour() !== 1 ? "les" : "la"}] LT`;
|
|
104
|
+
},
|
|
105
|
+
nextDay() {
|
|
106
|
+
return `[demà a ${this.hour() !== 1 ? "les" : "la"}] LT`;
|
|
107
|
+
},
|
|
108
|
+
nextWeek() {
|
|
109
|
+
return `dddd [a ${this.hour() !== 1 ? "les" : "la"}] LT`;
|
|
110
|
+
},
|
|
111
|
+
lastDay() {
|
|
112
|
+
return `[ahir a ${this.hour() !== 1 ? "les" : "la"}] LT`;
|
|
113
|
+
},
|
|
114
|
+
lastWeek() {
|
|
115
|
+
return `[el] dddd [passat a ${this.hour() !== 1 ? "les" : "la"}] LT`;
|
|
116
|
+
},
|
|
117
|
+
sameElse: "L"
|
|
118
|
+
},
|
|
119
|
+
relativeTime: {
|
|
120
|
+
future: "d'aquí %s",
|
|
121
|
+
past: "fa %s",
|
|
122
|
+
s: "uns segons",
|
|
123
|
+
ss: "%d segons",
|
|
124
|
+
m: "un minut",
|
|
125
|
+
mm: "%d minuts",
|
|
126
|
+
h: "una hora",
|
|
127
|
+
hh: "%d hores",
|
|
128
|
+
d: "un dia",
|
|
129
|
+
dd: "%d dies",
|
|
130
|
+
M: "un mes",
|
|
131
|
+
MM: "%d mesos",
|
|
132
|
+
y: "un any",
|
|
133
|
+
yy: "%d anys"
|
|
134
|
+
},
|
|
135
|
+
meridiem: (hour, _minute, isLowercase) => {
|
|
136
|
+
const m = hour < 12 ? "AM" : "PM";
|
|
137
|
+
return isLowercase ? m.toLowerCase() : m;
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
var ca_default = localeCa;
|
|
141
|
+
|
|
142
|
+
//#endregion
|
|
143
|
+
export { ca_default as default };
|
package/locales/cs.d.ts
ADDED
package/locales/cs.js
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
//#region src/locales/cs.ts
|
|
2
|
+
const monthFormat = [
|
|
3
|
+
"ledna",
|
|
4
|
+
"února",
|
|
5
|
+
"března",
|
|
6
|
+
"dubna",
|
|
7
|
+
"května",
|
|
8
|
+
"června",
|
|
9
|
+
"července",
|
|
10
|
+
"srpna",
|
|
11
|
+
"září",
|
|
12
|
+
"října",
|
|
13
|
+
"listopadu",
|
|
14
|
+
"prosince"
|
|
15
|
+
];
|
|
16
|
+
const monthStandalone = [
|
|
17
|
+
"leden",
|
|
18
|
+
"únor",
|
|
19
|
+
"březen",
|
|
20
|
+
"duben",
|
|
21
|
+
"květen",
|
|
22
|
+
"červen",
|
|
23
|
+
"červenec",
|
|
24
|
+
"srpen",
|
|
25
|
+
"září",
|
|
26
|
+
"říjen",
|
|
27
|
+
"listopad",
|
|
28
|
+
"prosinec"
|
|
29
|
+
];
|
|
30
|
+
const months = {
|
|
31
|
+
standalone: monthStandalone,
|
|
32
|
+
format: monthFormat,
|
|
33
|
+
isFormat: /DD?[o.]?(\[[^[\]]*\]|\s)+MMMM/
|
|
34
|
+
};
|
|
35
|
+
const calendar = {
|
|
36
|
+
sameDay: "[dnes v] LT",
|
|
37
|
+
nextDay: "[zítra v] LT",
|
|
38
|
+
nextWeek() {
|
|
39
|
+
switch (this.day()) {
|
|
40
|
+
case 0: return "[v neděli v] LT";
|
|
41
|
+
case 1:
|
|
42
|
+
case 2: return "[v] dddd [v] LT";
|
|
43
|
+
case 3: return "[ve středu v] LT";
|
|
44
|
+
case 4: return "[ve čtvrtek v] LT";
|
|
45
|
+
case 5: return "[v pátek v] LT";
|
|
46
|
+
case 6: return "[v sobotu v] LT";
|
|
47
|
+
default: return "";
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
lastDay: "[včera v] LT",
|
|
51
|
+
lastWeek() {
|
|
52
|
+
switch (this.day()) {
|
|
53
|
+
case 0: return "[minulou neděli v] LT";
|
|
54
|
+
case 1:
|
|
55
|
+
case 2: return "[minulé] dddd [v] LT";
|
|
56
|
+
case 3: return "[minulou středu v] LT";
|
|
57
|
+
case 4:
|
|
58
|
+
case 5: return "[minulý] dddd [v] LT";
|
|
59
|
+
case 6: return "[minulou sobotu v] LT";
|
|
60
|
+
default: return "";
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
sameElse: "L"
|
|
64
|
+
};
|
|
65
|
+
function usePlural(timeValue) {
|
|
66
|
+
return timeValue > 1 && timeValue < 5;
|
|
67
|
+
}
|
|
68
|
+
const relativeTimeFormatter = (timeValue, withoutSuffix, token, isFuture) => {
|
|
69
|
+
const result = `${timeValue} `;
|
|
70
|
+
switch (token) {
|
|
71
|
+
case "s": return withoutSuffix || isFuture ? "pár sekund" : "pár sekundami";
|
|
72
|
+
case "ss":
|
|
73
|
+
if (withoutSuffix || isFuture) return result + (usePlural(+timeValue) ? "sekundy" : "sekund");
|
|
74
|
+
return `${result}sekundami`;
|
|
75
|
+
case "m": return withoutSuffix ? "minuta" : isFuture ? "minutu" : "minutou";
|
|
76
|
+
case "mm":
|
|
77
|
+
if (withoutSuffix || isFuture) return result + (usePlural(+timeValue) ? "minuty" : "minut");
|
|
78
|
+
return `${result}minutami`;
|
|
79
|
+
case "h": return withoutSuffix ? "hodina" : isFuture ? "hodinu" : "hodinou";
|
|
80
|
+
case "hh":
|
|
81
|
+
if (withoutSuffix || isFuture) return result + (usePlural(+timeValue) ? "hodiny" : "hodin");
|
|
82
|
+
return `${result}hodinami`;
|
|
83
|
+
case "d": return withoutSuffix || isFuture ? "den" : "dnem";
|
|
84
|
+
case "dd":
|
|
85
|
+
if (withoutSuffix || isFuture) return result + (usePlural(+timeValue) ? "dny" : "dní");
|
|
86
|
+
return `${result}dny`;
|
|
87
|
+
case "M": return withoutSuffix || isFuture ? "měsíc" : "měsícem";
|
|
88
|
+
case "MM":
|
|
89
|
+
if (withoutSuffix || isFuture) return result + (usePlural(+timeValue) ? "měsíce" : "měsíců");
|
|
90
|
+
return `${result}měsíci`;
|
|
91
|
+
case "y": return withoutSuffix || isFuture ? "rok" : "rokem";
|
|
92
|
+
case "yy":
|
|
93
|
+
if (withoutSuffix || isFuture) return result + (usePlural(+timeValue) ? "roky" : "let");
|
|
94
|
+
return `${result}lety`;
|
|
95
|
+
default: return "";
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
const localeCs = {
|
|
99
|
+
name: "cs",
|
|
100
|
+
weekdays: [
|
|
101
|
+
"neděle",
|
|
102
|
+
"pondělí",
|
|
103
|
+
"úterý",
|
|
104
|
+
"středa",
|
|
105
|
+
"čtvrtek",
|
|
106
|
+
"pátek",
|
|
107
|
+
"sobota"
|
|
108
|
+
],
|
|
109
|
+
weekdaysShort: [
|
|
110
|
+
"ne",
|
|
111
|
+
"po",
|
|
112
|
+
"út",
|
|
113
|
+
"st",
|
|
114
|
+
"čt",
|
|
115
|
+
"pá",
|
|
116
|
+
"so"
|
|
117
|
+
],
|
|
118
|
+
weekdaysMin: [
|
|
119
|
+
"ne",
|
|
120
|
+
"po",
|
|
121
|
+
"út",
|
|
122
|
+
"st",
|
|
123
|
+
"čt",
|
|
124
|
+
"pá",
|
|
125
|
+
"so"
|
|
126
|
+
],
|
|
127
|
+
months,
|
|
128
|
+
monthsShort: [
|
|
129
|
+
"led",
|
|
130
|
+
"úno",
|
|
131
|
+
"bře",
|
|
132
|
+
"dub",
|
|
133
|
+
"kvě",
|
|
134
|
+
"čvn",
|
|
135
|
+
"čvc",
|
|
136
|
+
"srp",
|
|
137
|
+
"zář",
|
|
138
|
+
"říj",
|
|
139
|
+
"lis",
|
|
140
|
+
"pro"
|
|
141
|
+
],
|
|
142
|
+
ordinal: (n) => `${n}.`,
|
|
143
|
+
weekStart: 1,
|
|
144
|
+
yearStart: 4,
|
|
145
|
+
formats: {
|
|
146
|
+
LT: "H:mm",
|
|
147
|
+
LTS: "H:mm:ss",
|
|
148
|
+
L: "DD.MM.YYYY",
|
|
149
|
+
LL: "Do MMMM YYYY",
|
|
150
|
+
LLL: "Do MMMM YYYY H:mm",
|
|
151
|
+
LLLL: "dddd Do MMMM YYYY H:mm",
|
|
152
|
+
l: "Do M. YYYY",
|
|
153
|
+
ll: "Do MMMM YYYY",
|
|
154
|
+
lll: "Do MMMM YYYY H:mm",
|
|
155
|
+
llll: "dddd Do MMMM YYYY H:mm"
|
|
156
|
+
},
|
|
157
|
+
calendar,
|
|
158
|
+
relativeTime: {
|
|
159
|
+
future: "za %s",
|
|
160
|
+
past: "před %s",
|
|
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
|
+
M: relativeTimeFormatter,
|
|
170
|
+
MM: relativeTimeFormatter,
|
|
171
|
+
y: relativeTimeFormatter,
|
|
172
|
+
yy: relativeTimeFormatter
|
|
173
|
+
},
|
|
174
|
+
meridiem: (hour, _minute, isLowercase) => {
|
|
175
|
+
const m = hour < 12 ? "AM" : "PM";
|
|
176
|
+
return isLowercase ? m.toLowerCase() : m;
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
var cs_default = localeCs;
|
|
180
|
+
|
|
181
|
+
//#endregion
|
|
182
|
+
export { cs_default as default };
|
package/locales/cv.d.ts
ADDED