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
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.mjs";
|
|
2
|
+
import localeSr from "./sr.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/sr-cyrl.ts
|
|
5
|
+
const localeSrCyrl = cloneLocale(localeSr);
|
|
6
|
+
const weekdays = [
|
|
7
|
+
"Недеља",
|
|
8
|
+
"Понедељак",
|
|
9
|
+
"Уторак",
|
|
10
|
+
"Среда",
|
|
11
|
+
"Четвртак",
|
|
12
|
+
"Петак",
|
|
13
|
+
"Субота"
|
|
14
|
+
];
|
|
15
|
+
const weekdaysShort = [
|
|
16
|
+
"Нед.",
|
|
17
|
+
"Пон.",
|
|
18
|
+
"Уто.",
|
|
19
|
+
"Сре.",
|
|
20
|
+
"Чет.",
|
|
21
|
+
"Пет.",
|
|
22
|
+
"Суб."
|
|
23
|
+
];
|
|
24
|
+
const weekdaysMin = [
|
|
25
|
+
"не",
|
|
26
|
+
"по",
|
|
27
|
+
"ут",
|
|
28
|
+
"ср",
|
|
29
|
+
"че",
|
|
30
|
+
"пе",
|
|
31
|
+
"су"
|
|
32
|
+
];
|
|
33
|
+
const months = [
|
|
34
|
+
"Јануар",
|
|
35
|
+
"Фебруар",
|
|
36
|
+
"Март",
|
|
37
|
+
"Април",
|
|
38
|
+
"Мај",
|
|
39
|
+
"Јун",
|
|
40
|
+
"Јул",
|
|
41
|
+
"Август",
|
|
42
|
+
"Септембар",
|
|
43
|
+
"Октобар",
|
|
44
|
+
"Новембар",
|
|
45
|
+
"Децембар"
|
|
46
|
+
];
|
|
47
|
+
const monthsShort = [
|
|
48
|
+
"Јан.",
|
|
49
|
+
"Феб.",
|
|
50
|
+
"Мар.",
|
|
51
|
+
"Апр.",
|
|
52
|
+
"Мај",
|
|
53
|
+
"Јун",
|
|
54
|
+
"Јул",
|
|
55
|
+
"Авг.",
|
|
56
|
+
"Сеп.",
|
|
57
|
+
"Окт.",
|
|
58
|
+
"Нов.",
|
|
59
|
+
"Дец."
|
|
60
|
+
];
|
|
61
|
+
const calendar = {
|
|
62
|
+
sameDay: "[данас у] LT",
|
|
63
|
+
nextDay: "[сутра у] LT",
|
|
64
|
+
nextWeek() {
|
|
65
|
+
switch (this.day()) {
|
|
66
|
+
case 0: return "[у] [недељу] [у] LT";
|
|
67
|
+
case 3: return "[у] [среду] [у] LT";
|
|
68
|
+
case 6: return "[у] [суботу] [у] LT";
|
|
69
|
+
case 1:
|
|
70
|
+
case 2:
|
|
71
|
+
case 4:
|
|
72
|
+
case 5: return "[у] dddd [у] LT";
|
|
73
|
+
default: return "";
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
lastDay: "[јуче у] LT",
|
|
77
|
+
lastWeek() {
|
|
78
|
+
return [
|
|
79
|
+
"[прошле] [недеље] [у] LT",
|
|
80
|
+
"[прошлог] [понедељка] [у] LT",
|
|
81
|
+
"[прошлог] [уторка] [у] LT",
|
|
82
|
+
"[прошле] [среде] [у] LT",
|
|
83
|
+
"[прошлог] [четвртка] [у] LT",
|
|
84
|
+
"[прошлог] [петка] [у] LT",
|
|
85
|
+
"[прошле] [суботе] [у] LT"
|
|
86
|
+
][this.day()];
|
|
87
|
+
},
|
|
88
|
+
sameElse: "L"
|
|
89
|
+
};
|
|
90
|
+
function plural(timeValue, wordKey) {
|
|
91
|
+
if (timeValue % 10 >= 1 && timeValue % 10 <= 4 && (timeValue % 100 < 10 || timeValue % 100 >= 20)) return timeValue % 10 === 1 ? wordKey[0] : wordKey[1];
|
|
92
|
+
return wordKey[2];
|
|
93
|
+
}
|
|
94
|
+
const relativeTimeFormatter = (timeValue, withoutSuffix, token, isFuture) => {
|
|
95
|
+
const wordKey = {
|
|
96
|
+
ss: [
|
|
97
|
+
"%d секунди",
|
|
98
|
+
"%d секунде",
|
|
99
|
+
"%d секунди"
|
|
100
|
+
],
|
|
101
|
+
m: ["један минут", "једног минута"],
|
|
102
|
+
mm: [
|
|
103
|
+
"%d минут",
|
|
104
|
+
"%d минута",
|
|
105
|
+
"%d минута"
|
|
106
|
+
],
|
|
107
|
+
h: ["један сат", "једног сата"],
|
|
108
|
+
hh: [
|
|
109
|
+
"%d сат",
|
|
110
|
+
"%d сата",
|
|
111
|
+
"%d сати"
|
|
112
|
+
],
|
|
113
|
+
d: ["један дан", "једног дана"],
|
|
114
|
+
dd: [
|
|
115
|
+
"%d дан",
|
|
116
|
+
"%d дана",
|
|
117
|
+
"%d дана"
|
|
118
|
+
],
|
|
119
|
+
w: ["један недељу", "једног недеља"],
|
|
120
|
+
ww: [
|
|
121
|
+
"%d недељу",
|
|
122
|
+
"%d недеља",
|
|
123
|
+
"%d недеља"
|
|
124
|
+
],
|
|
125
|
+
M: ["један месец", "једног месеца"],
|
|
126
|
+
MM: [
|
|
127
|
+
"%d месец",
|
|
128
|
+
"%d месеца",
|
|
129
|
+
"%d месеци"
|
|
130
|
+
],
|
|
131
|
+
y: ["једну годину", "једне године"],
|
|
132
|
+
yy: [
|
|
133
|
+
"%d годину",
|
|
134
|
+
"%d године",
|
|
135
|
+
"%d година"
|
|
136
|
+
]
|
|
137
|
+
}[token];
|
|
138
|
+
if (token.length === 1) {
|
|
139
|
+
if (token === "y" && withoutSuffix) return "једна година";
|
|
140
|
+
return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
|
|
141
|
+
}
|
|
142
|
+
const word = plural(+timeValue, wordKey);
|
|
143
|
+
if (token === "yy" && withoutSuffix && word === "%d годину") return `${timeValue} година`;
|
|
144
|
+
return word.replace("%d", timeValue.toString());
|
|
145
|
+
};
|
|
146
|
+
const relativeTime = {
|
|
147
|
+
future: "за %s",
|
|
148
|
+
past: "пре %s",
|
|
149
|
+
s: "неколико секунди",
|
|
150
|
+
ss: relativeTimeFormatter,
|
|
151
|
+
m: relativeTimeFormatter,
|
|
152
|
+
mm: relativeTimeFormatter,
|
|
153
|
+
h: relativeTimeFormatter,
|
|
154
|
+
hh: relativeTimeFormatter,
|
|
155
|
+
d: relativeTimeFormatter,
|
|
156
|
+
dd: relativeTimeFormatter,
|
|
157
|
+
w: relativeTimeFormatter,
|
|
158
|
+
ww: relativeTimeFormatter,
|
|
159
|
+
M: relativeTimeFormatter,
|
|
160
|
+
MM: relativeTimeFormatter,
|
|
161
|
+
y: relativeTimeFormatter,
|
|
162
|
+
yy: relativeTimeFormatter
|
|
163
|
+
};
|
|
164
|
+
setLocaleProperty(localeSrCyrl, "name", "sr-CYRL");
|
|
165
|
+
setLocaleProperty(localeSrCyrl, "weekdays", weekdays);
|
|
166
|
+
setLocaleProperty(localeSrCyrl, "weekdaysShort", weekdaysShort);
|
|
167
|
+
setLocaleProperty(localeSrCyrl, "weekdaysMin", weekdaysMin);
|
|
168
|
+
setLocaleProperty(localeSrCyrl, "months", months);
|
|
169
|
+
setLocaleProperty(localeSrCyrl, "monthsShort", monthsShort);
|
|
170
|
+
setLocaleProperty(localeSrCyrl, "calendar", calendar);
|
|
171
|
+
setLocaleProperty(localeSrCyrl, "relativeTime", relativeTime);
|
|
172
|
+
|
|
173
|
+
//#endregion
|
|
174
|
+
export { localeSrCyrl as default };
|
package/locales/sr.d.mts
ADDED
package/locales/sr.mjs
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
//#region src/locales/sr.ts
|
|
2
|
+
const calendar = {
|
|
3
|
+
sameDay: "[danas u] LT",
|
|
4
|
+
nextDay: "[sutra u] LT",
|
|
5
|
+
nextWeek() {
|
|
6
|
+
switch (this.day()) {
|
|
7
|
+
case 0: return "[u] [nedelju] [u] LT";
|
|
8
|
+
case 3: return "[u] [sredu] [u] LT";
|
|
9
|
+
case 6: return "[u] [subotu] [u] LT";
|
|
10
|
+
case 1:
|
|
11
|
+
case 2:
|
|
12
|
+
case 4:
|
|
13
|
+
case 5: return "[u] dddd [u] LT";
|
|
14
|
+
default: return "";
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
lastDay: "[juče u] LT",
|
|
18
|
+
lastWeek() {
|
|
19
|
+
return [
|
|
20
|
+
"[prošle] [nedelje] [u] LT",
|
|
21
|
+
"[prošlog] [ponedeljka] [u] LT",
|
|
22
|
+
"[prošlog] [utorka] [u] LT",
|
|
23
|
+
"[prošle] [srede] [u] LT",
|
|
24
|
+
"[prošlog] [četvrtka] [u] LT",
|
|
25
|
+
"[prošlog] [petka] [u] LT",
|
|
26
|
+
"[prošle] [subote] [u] LT"
|
|
27
|
+
][this.day()];
|
|
28
|
+
},
|
|
29
|
+
sameElse: "L"
|
|
30
|
+
};
|
|
31
|
+
function plural(timeValue, formats) {
|
|
32
|
+
if (timeValue % 10 >= 1 && timeValue % 10 <= 4 && (timeValue % 100 < 10 || timeValue % 100 >= 20)) return timeValue % 10 === 1 ? formats[0] : formats[1];
|
|
33
|
+
return formats[2];
|
|
34
|
+
}
|
|
35
|
+
const relativeTimeFormatter = (timeValue, withoutSuffix, token, isFuture) => {
|
|
36
|
+
const formatsForToken = {
|
|
37
|
+
ss: [
|
|
38
|
+
"sekunda",
|
|
39
|
+
"sekunde",
|
|
40
|
+
"sekundi"
|
|
41
|
+
],
|
|
42
|
+
m: ["jedan minut", "jednog minuta"],
|
|
43
|
+
mm: [
|
|
44
|
+
"%d minut",
|
|
45
|
+
"%d minuta",
|
|
46
|
+
"%d minuta"
|
|
47
|
+
],
|
|
48
|
+
h: ["jedan sat", "jednog sata"],
|
|
49
|
+
hh: [
|
|
50
|
+
"%d sat",
|
|
51
|
+
"%d sata",
|
|
52
|
+
"%d sati"
|
|
53
|
+
],
|
|
54
|
+
d: ["jedan dan", "jednog dana"],
|
|
55
|
+
dd: [
|
|
56
|
+
"%d dan",
|
|
57
|
+
"%d dana",
|
|
58
|
+
"%d dana"
|
|
59
|
+
],
|
|
60
|
+
w: ["јedan nedeљu", "јednoq nedeљa"],
|
|
61
|
+
ww: [
|
|
62
|
+
"%d dan",
|
|
63
|
+
"%d dana",
|
|
64
|
+
"%d dana"
|
|
65
|
+
],
|
|
66
|
+
M: ["jedan mesec", "jednog meseca"],
|
|
67
|
+
MM: [
|
|
68
|
+
"%d mesec",
|
|
69
|
+
"%d meseca",
|
|
70
|
+
"%d meseci"
|
|
71
|
+
],
|
|
72
|
+
y: ["jednu godinu", "jedne godine"],
|
|
73
|
+
yy: [
|
|
74
|
+
"%d godinu",
|
|
75
|
+
"%d godine",
|
|
76
|
+
"%d godina"
|
|
77
|
+
]
|
|
78
|
+
}[token];
|
|
79
|
+
if (token.length === 1) {
|
|
80
|
+
if (token === "y" && withoutSuffix) return "jedna godina";
|
|
81
|
+
return isFuture || withoutSuffix ? formatsForToken[0] : formatsForToken[1];
|
|
82
|
+
}
|
|
83
|
+
const format = plural(+timeValue, formatsForToken);
|
|
84
|
+
if (token === "yy" && withoutSuffix && format === "%d godinu") return `${timeValue} godina`;
|
|
85
|
+
return format.replace("%d", timeValue.toString());
|
|
86
|
+
};
|
|
87
|
+
const localeSr = {
|
|
88
|
+
name: "sr",
|
|
89
|
+
weekdays: [
|
|
90
|
+
"Nedelja",
|
|
91
|
+
"Ponedeljak",
|
|
92
|
+
"Utorak",
|
|
93
|
+
"Sreda",
|
|
94
|
+
"Četvrtak",
|
|
95
|
+
"Petak",
|
|
96
|
+
"Subota"
|
|
97
|
+
],
|
|
98
|
+
weekdaysShort: [
|
|
99
|
+
"Ned.",
|
|
100
|
+
"Pon.",
|
|
101
|
+
"Uto.",
|
|
102
|
+
"Sre.",
|
|
103
|
+
"Čet.",
|
|
104
|
+
"Pet.",
|
|
105
|
+
"Sub."
|
|
106
|
+
],
|
|
107
|
+
weekdaysMin: [
|
|
108
|
+
"ne",
|
|
109
|
+
"po",
|
|
110
|
+
"ut",
|
|
111
|
+
"sr",
|
|
112
|
+
"če",
|
|
113
|
+
"pe",
|
|
114
|
+
"su"
|
|
115
|
+
],
|
|
116
|
+
months: [
|
|
117
|
+
"Januar",
|
|
118
|
+
"Februar",
|
|
119
|
+
"Mart",
|
|
120
|
+
"April",
|
|
121
|
+
"Maj",
|
|
122
|
+
"Jun",
|
|
123
|
+
"Jul",
|
|
124
|
+
"Avgust",
|
|
125
|
+
"Septembar",
|
|
126
|
+
"Oktobar",
|
|
127
|
+
"Novembar",
|
|
128
|
+
"Decembar"
|
|
129
|
+
],
|
|
130
|
+
monthsShort: [
|
|
131
|
+
"Jan.",
|
|
132
|
+
"Feb.",
|
|
133
|
+
"Mar.",
|
|
134
|
+
"Apr.",
|
|
135
|
+
"Maj",
|
|
136
|
+
"Jun",
|
|
137
|
+
"Jul",
|
|
138
|
+
"Avg.",
|
|
139
|
+
"Sep.",
|
|
140
|
+
"Okt.",
|
|
141
|
+
"Nov.",
|
|
142
|
+
"Dec."
|
|
143
|
+
],
|
|
144
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
|
145
|
+
ordinal: (n) => `${n}.`,
|
|
146
|
+
weekStart: 1,
|
|
147
|
+
yearStart: 1,
|
|
148
|
+
formats: {
|
|
149
|
+
LT: "H:mm",
|
|
150
|
+
LTS: "H:mm:ss",
|
|
151
|
+
L: "D. M. YYYY.",
|
|
152
|
+
LL: "D. MMMM YYYY.",
|
|
153
|
+
LLL: "D. MMMM YYYY. H:mm",
|
|
154
|
+
LLLL: "dddd, D. MMMM YYYY. H:mm",
|
|
155
|
+
l: "D. M. YYYY.",
|
|
156
|
+
ll: "D. MMMM YYYY.",
|
|
157
|
+
lll: "D. MMMM YYYY. H:mm",
|
|
158
|
+
llll: "dddd, D. MMMM YYYY. H:mm"
|
|
159
|
+
},
|
|
160
|
+
calendar,
|
|
161
|
+
relativeTime: {
|
|
162
|
+
future: "za %s",
|
|
163
|
+
past: "pre %s",
|
|
164
|
+
s: "nekoliko sekundi",
|
|
165
|
+
ss: relativeTimeFormatter,
|
|
166
|
+
m: relativeTimeFormatter,
|
|
167
|
+
mm: relativeTimeFormatter,
|
|
168
|
+
h: relativeTimeFormatter,
|
|
169
|
+
hh: relativeTimeFormatter,
|
|
170
|
+
d: relativeTimeFormatter,
|
|
171
|
+
dd: relativeTimeFormatter,
|
|
172
|
+
w: relativeTimeFormatter,
|
|
173
|
+
ww: relativeTimeFormatter,
|
|
174
|
+
M: relativeTimeFormatter,
|
|
175
|
+
MM: relativeTimeFormatter,
|
|
176
|
+
y: relativeTimeFormatter,
|
|
177
|
+
yy: relativeTimeFormatter
|
|
178
|
+
},
|
|
179
|
+
meridiem: (hour, _minute, isLowercase) => {
|
|
180
|
+
const m = hour < 12 ? "AM" : "PM";
|
|
181
|
+
return isLowercase ? m.toLowerCase() : m;
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
//#endregion
|
|
186
|
+
export { localeSr as default };
|
package/locales/ss.d.mts
ADDED
package/locales/ss.mjs
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
//#region src/locales/ss.ts
|
|
2
|
+
const localeSs = {
|
|
3
|
+
name: "ss",
|
|
4
|
+
weekdays: [
|
|
5
|
+
"Lisontfo",
|
|
6
|
+
"Umsombuluko",
|
|
7
|
+
"Lesibili",
|
|
8
|
+
"Lesitsatfu",
|
|
9
|
+
"Lesine",
|
|
10
|
+
"Lesihlanu",
|
|
11
|
+
"Umgcibelo"
|
|
12
|
+
],
|
|
13
|
+
weekdaysShort: [
|
|
14
|
+
"Lis",
|
|
15
|
+
"Umb",
|
|
16
|
+
"Lsb",
|
|
17
|
+
"Les",
|
|
18
|
+
"Lsi",
|
|
19
|
+
"Lsh",
|
|
20
|
+
"Umg"
|
|
21
|
+
],
|
|
22
|
+
weekdaysMin: [
|
|
23
|
+
"Li",
|
|
24
|
+
"Us",
|
|
25
|
+
"Lb",
|
|
26
|
+
"Lt",
|
|
27
|
+
"Ls",
|
|
28
|
+
"Lh",
|
|
29
|
+
"Ug"
|
|
30
|
+
],
|
|
31
|
+
months: [
|
|
32
|
+
"Bhimbidvwane",
|
|
33
|
+
"Indlovana",
|
|
34
|
+
"Indlov'lenkhulu",
|
|
35
|
+
"Mabasa",
|
|
36
|
+
"Inkhwekhweti",
|
|
37
|
+
"Inhlaba",
|
|
38
|
+
"Kholwane",
|
|
39
|
+
"Ingci",
|
|
40
|
+
"Inyoni",
|
|
41
|
+
"Imphala",
|
|
42
|
+
"Lweti",
|
|
43
|
+
"Ingongoni"
|
|
44
|
+
],
|
|
45
|
+
monthsShort: [
|
|
46
|
+
"Bhi",
|
|
47
|
+
"Ina",
|
|
48
|
+
"Inu",
|
|
49
|
+
"Mab",
|
|
50
|
+
"Ink",
|
|
51
|
+
"Inh",
|
|
52
|
+
"Kho",
|
|
53
|
+
"Igc",
|
|
54
|
+
"Iny",
|
|
55
|
+
"Imp",
|
|
56
|
+
"Lwe",
|
|
57
|
+
"Igo"
|
|
58
|
+
],
|
|
59
|
+
dayOfMonthOrdinalParse: /\d{1,2}/,
|
|
60
|
+
ordinal: (n) => `${n}`,
|
|
61
|
+
weekStart: 1,
|
|
62
|
+
yearStart: 4,
|
|
63
|
+
formats: {
|
|
64
|
+
LT: "h:mm A",
|
|
65
|
+
LTS: "h:mm:ss A",
|
|
66
|
+
L: "DD/MM/YYYY",
|
|
67
|
+
LL: "D MMMM YYYY",
|
|
68
|
+
LLL: "D MMMM YYYY h:mm A",
|
|
69
|
+
LLLL: "dddd, D MMMM YYYY h:mm A",
|
|
70
|
+
l: "DD/MM/YYYY",
|
|
71
|
+
ll: "D MMMM YYYY",
|
|
72
|
+
lll: "D MMMM YYYY h:mm A",
|
|
73
|
+
llll: "dddd, D MMMM YYYY h:mm A"
|
|
74
|
+
},
|
|
75
|
+
calendar: {
|
|
76
|
+
sameDay: "[Namuhla nga] LT",
|
|
77
|
+
nextDay: "[Kusasa nga] LT",
|
|
78
|
+
nextWeek: "dddd [nga] LT",
|
|
79
|
+
lastDay: "[Itolo nga] LT",
|
|
80
|
+
lastWeek: "dddd [leliphelile] [nga] LT",
|
|
81
|
+
sameElse: "L"
|
|
82
|
+
},
|
|
83
|
+
relativeTime: {
|
|
84
|
+
future: "nga %s",
|
|
85
|
+
past: "wenteka nga %s",
|
|
86
|
+
s: "emizuzwana lomcane",
|
|
87
|
+
ss: "%d mzuzwana",
|
|
88
|
+
m: "umzuzu",
|
|
89
|
+
mm: "%d emizuzu",
|
|
90
|
+
h: "lihora",
|
|
91
|
+
hh: "%d emahora",
|
|
92
|
+
d: "lilanga",
|
|
93
|
+
dd: "%d emalanga",
|
|
94
|
+
w: "linye",
|
|
95
|
+
ww: "%d emaviki",
|
|
96
|
+
M: "inyanga",
|
|
97
|
+
MM: "%d tinyanga",
|
|
98
|
+
y: "umnyaka",
|
|
99
|
+
yy: "%d iminyaka"
|
|
100
|
+
},
|
|
101
|
+
meridiem: (hour, _minute, _isLowercase) => {
|
|
102
|
+
if (hour < 11) return "ekuseni";
|
|
103
|
+
if (hour < 15) return "emini";
|
|
104
|
+
if (hour < 19) return "entsambama";
|
|
105
|
+
return "ebusuku";
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
//#endregion
|
|
110
|
+
export { localeSs as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.mjs";
|
|
2
|
+
import localeSv from "./sv.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/sv-fi.ts
|
|
5
|
+
/**
|
|
6
|
+
* Finland Swedish [sv-FI]
|
|
7
|
+
*/
|
|
8
|
+
const localeSvFi = cloneLocale(localeSv);
|
|
9
|
+
const formats = {
|
|
10
|
+
LT: "HH.mm",
|
|
11
|
+
LTS: "HH.mm.ss",
|
|
12
|
+
L: "DD.MM.YYYY",
|
|
13
|
+
LL: "D. MMMM YYYY",
|
|
14
|
+
LLL: "D. MMMM YYYY, [kl.] HH.mm",
|
|
15
|
+
LLLL: "dddd, D. MMMM YYYY, [kl.] HH.mm",
|
|
16
|
+
l: "D.M.YYYY",
|
|
17
|
+
ll: "D. MMM YYYY",
|
|
18
|
+
lll: "D. MMM YYYY, [kl.] HH.mm",
|
|
19
|
+
llll: "ddd, D. MMM YYYY, [kl.] HH.mm"
|
|
20
|
+
};
|
|
21
|
+
setLocaleProperty(localeSvFi, "name", "sv-FI");
|
|
22
|
+
setLocaleProperty(localeSvFi, "formats", formats);
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { localeSvFi as default };
|
package/locales/sv.d.mts
ADDED
package/locales/sv.mjs
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
//#region src/locales/sv.ts
|
|
2
|
+
const localeSv = {
|
|
3
|
+
name: "sv",
|
|
4
|
+
weekdays: [
|
|
5
|
+
"söndag",
|
|
6
|
+
"måndag",
|
|
7
|
+
"tisdag",
|
|
8
|
+
"onsdag",
|
|
9
|
+
"torsdag",
|
|
10
|
+
"fredag",
|
|
11
|
+
"lördag"
|
|
12
|
+
],
|
|
13
|
+
weekdaysShort: [
|
|
14
|
+
"sön",
|
|
15
|
+
"mån",
|
|
16
|
+
"tis",
|
|
17
|
+
"ons",
|
|
18
|
+
"tor",
|
|
19
|
+
"fre",
|
|
20
|
+
"lör"
|
|
21
|
+
],
|
|
22
|
+
weekdaysMin: [
|
|
23
|
+
"sö",
|
|
24
|
+
"må",
|
|
25
|
+
"ti",
|
|
26
|
+
"on",
|
|
27
|
+
"to",
|
|
28
|
+
"fr",
|
|
29
|
+
"lö"
|
|
30
|
+
],
|
|
31
|
+
months: [
|
|
32
|
+
"januari",
|
|
33
|
+
"februari",
|
|
34
|
+
"mars",
|
|
35
|
+
"april",
|
|
36
|
+
"maj",
|
|
37
|
+
"juni",
|
|
38
|
+
"juli",
|
|
39
|
+
"augusti",
|
|
40
|
+
"september",
|
|
41
|
+
"oktober",
|
|
42
|
+
"november",
|
|
43
|
+
"december"
|
|
44
|
+
],
|
|
45
|
+
monthsShort: [
|
|
46
|
+
"jan",
|
|
47
|
+
"feb",
|
|
48
|
+
"mar",
|
|
49
|
+
"apr",
|
|
50
|
+
"maj",
|
|
51
|
+
"jun",
|
|
52
|
+
"jul",
|
|
53
|
+
"aug",
|
|
54
|
+
"sep",
|
|
55
|
+
"okt",
|
|
56
|
+
"nov",
|
|
57
|
+
"dec"
|
|
58
|
+
],
|
|
59
|
+
dayOfMonthOrdinalParse: /\d{1,2}(:e|:a)/,
|
|
60
|
+
ordinal: (n) => {
|
|
61
|
+
const lastDigit = n % 10;
|
|
62
|
+
return `${n}${lastDigit === 1 || lastDigit === 2 ? "a" : "e"}`;
|
|
63
|
+
},
|
|
64
|
+
weekStart: 1,
|
|
65
|
+
yearStart: 4,
|
|
66
|
+
formats: {
|
|
67
|
+
LT: "HH:mm",
|
|
68
|
+
LTS: "HH:mm:ss",
|
|
69
|
+
L: "YYYY-MM-DD",
|
|
70
|
+
LL: "D MMMM YYYY",
|
|
71
|
+
LLL: "D MMMM YYYY [kl.] HH:mm",
|
|
72
|
+
LLLL: "dddd D MMMM YYYY [kl.] HH:mm",
|
|
73
|
+
l: "YYYY-MM-DD",
|
|
74
|
+
ll: "D MMMM YYYY",
|
|
75
|
+
lll: "D MMM YYYY HH:mm",
|
|
76
|
+
llll: "ddd D MMM YYYY HH:mm"
|
|
77
|
+
},
|
|
78
|
+
calendar: {
|
|
79
|
+
sameDay: "[Idag] LT",
|
|
80
|
+
nextDay: "[Imorgon] LT",
|
|
81
|
+
lastDay: "[Igår] LT",
|
|
82
|
+
nextWeek: "[På] dddd LT",
|
|
83
|
+
lastWeek: "[I] dddd[s] LT",
|
|
84
|
+
sameElse: "L"
|
|
85
|
+
},
|
|
86
|
+
relativeTime: {
|
|
87
|
+
future: "om %s",
|
|
88
|
+
past: "för %s sedan",
|
|
89
|
+
s: "några sekunder",
|
|
90
|
+
ss: "%d sekunder",
|
|
91
|
+
m: "en minut",
|
|
92
|
+
mm: "%d minuter",
|
|
93
|
+
h: "en timme",
|
|
94
|
+
hh: "%d timmar",
|
|
95
|
+
d: "en dag",
|
|
96
|
+
dd: "%d dagar",
|
|
97
|
+
w: "en vecka",
|
|
98
|
+
ww: "%d veckor",
|
|
99
|
+
M: "en månad",
|
|
100
|
+
MM: "%d månader",
|
|
101
|
+
y: "ett år",
|
|
102
|
+
yy: "%d år"
|
|
103
|
+
},
|
|
104
|
+
meridiem: (hour, _minute, isLowercase) => {
|
|
105
|
+
const m = hour < 12 ? "AM" : "PM";
|
|
106
|
+
return isLowercase ? m.toLowerCase() : m;
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
//#endregion
|
|
111
|
+
export { localeSv as default };
|