till download files, everything works
This commit is contained in:
1 parent
ce893a4185
commit
ed1a580b09
6050 files changed
+768543
-177
No files matched your search
+344
@@ -0,0 +1,344 @@
|
||||
"use strict";
|
||||
exports.formatDistance = void 0;
|
||||
|
||||
function isPluralType(val) {
|
||||
return val.one !== undefined;
|
||||
}
|
||||
|
||||
const formatDistanceLocale = {
|
||||
lessThanXSeconds: {
|
||||
present: {
|
||||
one: "manj kot {{count}} sekunda",
|
||||
two: "manj kot {{count}} sekundi",
|
||||
few: "manj kot {{count}} sekunde",
|
||||
other: "manj kot {{count}} sekund",
|
||||
},
|
||||
past: {
|
||||
one: "manj kot {{count}} sekundo",
|
||||
two: "manj kot {{count}} sekundama",
|
||||
few: "manj kot {{count}} sekundami",
|
||||
other: "manj kot {{count}} sekundami",
|
||||
},
|
||||
future: {
|
||||
one: "manj kot {{count}} sekundo",
|
||||
two: "manj kot {{count}} sekundi",
|
||||
few: "manj kot {{count}} sekunde",
|
||||
other: "manj kot {{count}} sekund",
|
||||
},
|
||||
},
|
||||
|
||||
xSeconds: {
|
||||
present: {
|
||||
one: "{{count}} sekunda",
|
||||
two: "{{count}} sekundi",
|
||||
few: "{{count}} sekunde",
|
||||
other: "{{count}} sekund",
|
||||
},
|
||||
past: {
|
||||
one: "{{count}} sekundo",
|
||||
two: "{{count}} sekundama",
|
||||
few: "{{count}} sekundami",
|
||||
other: "{{count}} sekundami",
|
||||
},
|
||||
future: {
|
||||
one: "{{count}} sekundo",
|
||||
two: "{{count}} sekundi",
|
||||
few: "{{count}} sekunde",
|
||||
other: "{{count}} sekund",
|
||||
},
|
||||
},
|
||||
|
||||
halfAMinute: "pol minute",
|
||||
|
||||
lessThanXMinutes: {
|
||||
present: {
|
||||
one: "manj kot {{count}} minuta",
|
||||
two: "manj kot {{count}} minuti",
|
||||
few: "manj kot {{count}} minute",
|
||||
other: "manj kot {{count}} minut",
|
||||
},
|
||||
past: {
|
||||
one: "manj kot {{count}} minuto",
|
||||
two: "manj kot {{count}} minutama",
|
||||
few: "manj kot {{count}} minutami",
|
||||
other: "manj kot {{count}} minutami",
|
||||
},
|
||||
future: {
|
||||
one: "manj kot {{count}} minuto",
|
||||
two: "manj kot {{count}} minuti",
|
||||
few: "manj kot {{count}} minute",
|
||||
other: "manj kot {{count}} minut",
|
||||
},
|
||||
},
|
||||
|
||||
xMinutes: {
|
||||
present: {
|
||||
one: "{{count}} minuta",
|
||||
two: "{{count}} minuti",
|
||||
few: "{{count}} minute",
|
||||
other: "{{count}} minut",
|
||||
},
|
||||
past: {
|
||||
one: "{{count}} minuto",
|
||||
two: "{{count}} minutama",
|
||||
few: "{{count}} minutami",
|
||||
other: "{{count}} minutami",
|
||||
},
|
||||
future: {
|
||||
one: "{{count}} minuto",
|
||||
two: "{{count}} minuti",
|
||||
few: "{{count}} minute",
|
||||
other: "{{count}} minut",
|
||||
},
|
||||
},
|
||||
|
||||
aboutXHours: {
|
||||
present: {
|
||||
one: "približno {{count}} ura",
|
||||
two: "približno {{count}} uri",
|
||||
few: "približno {{count}} ure",
|
||||
other: "približno {{count}} ur",
|
||||
},
|
||||
past: {
|
||||
one: "približno {{count}} uro",
|
||||
two: "približno {{count}} urama",
|
||||
few: "približno {{count}} urami",
|
||||
other: "približno {{count}} urami",
|
||||
},
|
||||
future: {
|
||||
one: "približno {{count}} uro",
|
||||
two: "približno {{count}} uri",
|
||||
few: "približno {{count}} ure",
|
||||
other: "približno {{count}} ur",
|
||||
},
|
||||
},
|
||||
|
||||
xHours: {
|
||||
present: {
|
||||
one: "{{count}} ura",
|
||||
two: "{{count}} uri",
|
||||
few: "{{count}} ure",
|
||||
other: "{{count}} ur",
|
||||
},
|
||||
past: {
|
||||
one: "{{count}} uro",
|
||||
two: "{{count}} urama",
|
||||
few: "{{count}} urami",
|
||||
other: "{{count}} urami",
|
||||
},
|
||||
future: {
|
||||
one: "{{count}} uro",
|
||||
two: "{{count}} uri",
|
||||
few: "{{count}} ure",
|
||||
other: "{{count}} ur",
|
||||
},
|
||||
},
|
||||
|
||||
xDays: {
|
||||
present: {
|
||||
one: "{{count}} dan",
|
||||
two: "{{count}} dni",
|
||||
few: "{{count}} dni",
|
||||
other: "{{count}} dni",
|
||||
},
|
||||
past: {
|
||||
one: "{{count}} dnem",
|
||||
two: "{{count}} dnevoma",
|
||||
few: "{{count}} dnevi",
|
||||
other: "{{count}} dnevi",
|
||||
},
|
||||
future: {
|
||||
one: "{{count}} dan",
|
||||
two: "{{count}} dni",
|
||||
few: "{{count}} dni",
|
||||
other: "{{count}} dni",
|
||||
},
|
||||
},
|
||||
|
||||
// no tenses for weeks?
|
||||
aboutXWeeks: {
|
||||
one: "približno {{count}} teden",
|
||||
two: "približno {{count}} tedna",
|
||||
few: "približno {{count}} tedne",
|
||||
other: "približno {{count}} tednov",
|
||||
},
|
||||
|
||||
// no tenses for weeks?
|
||||
xWeeks: {
|
||||
one: "{{count}} teden",
|
||||
two: "{{count}} tedna",
|
||||
few: "{{count}} tedne",
|
||||
other: "{{count}} tednov",
|
||||
},
|
||||
|
||||
aboutXMonths: {
|
||||
present: {
|
||||
one: "približno {{count}} mesec",
|
||||
two: "približno {{count}} meseca",
|
||||
few: "približno {{count}} mesece",
|
||||
other: "približno {{count}} mesecev",
|
||||
},
|
||||
past: {
|
||||
one: "približno {{count}} mesecem",
|
||||
two: "približno {{count}} mesecema",
|
||||
few: "približno {{count}} meseci",
|
||||
other: "približno {{count}} meseci",
|
||||
},
|
||||
future: {
|
||||
one: "približno {{count}} mesec",
|
||||
two: "približno {{count}} meseca",
|
||||
few: "približno {{count}} mesece",
|
||||
other: "približno {{count}} mesecev",
|
||||
},
|
||||
},
|
||||
|
||||
xMonths: {
|
||||
present: {
|
||||
one: "{{count}} mesec",
|
||||
two: "{{count}} meseca",
|
||||
few: "{{count}} meseci",
|
||||
other: "{{count}} mesecev",
|
||||
},
|
||||
past: {
|
||||
one: "{{count}} mesecem",
|
||||
two: "{{count}} mesecema",
|
||||
few: "{{count}} meseci",
|
||||
other: "{{count}} meseci",
|
||||
},
|
||||
future: {
|
||||
one: "{{count}} mesec",
|
||||
two: "{{count}} meseca",
|
||||
few: "{{count}} mesece",
|
||||
other: "{{count}} mesecev",
|
||||
},
|
||||
},
|
||||
|
||||
aboutXYears: {
|
||||
present: {
|
||||
one: "približno {{count}} leto",
|
||||
two: "približno {{count}} leti",
|
||||
few: "približno {{count}} leta",
|
||||
other: "približno {{count}} let",
|
||||
},
|
||||
past: {
|
||||
one: "približno {{count}} letom",
|
||||
two: "približno {{count}} letoma",
|
||||
few: "približno {{count}} leti",
|
||||
other: "približno {{count}} leti",
|
||||
},
|
||||
future: {
|
||||
one: "približno {{count}} leto",
|
||||
two: "približno {{count}} leti",
|
||||
few: "približno {{count}} leta",
|
||||
other: "približno {{count}} let",
|
||||
},
|
||||
},
|
||||
|
||||
xYears: {
|
||||
present: {
|
||||
one: "{{count}} leto",
|
||||
two: "{{count}} leti",
|
||||
few: "{{count}} leta",
|
||||
other: "{{count}} let",
|
||||
},
|
||||
past: {
|
||||
one: "{{count}} letom",
|
||||
two: "{{count}} letoma",
|
||||
few: "{{count}} leti",
|
||||
other: "{{count}} leti",
|
||||
},
|
||||
future: {
|
||||
one: "{{count}} leto",
|
||||
two: "{{count}} leti",
|
||||
few: "{{count}} leta",
|
||||
other: "{{count}} let",
|
||||
},
|
||||
},
|
||||
|
||||
overXYears: {
|
||||
present: {
|
||||
one: "več kot {{count}} leto",
|
||||
two: "več kot {{count}} leti",
|
||||
few: "več kot {{count}} leta",
|
||||
other: "več kot {{count}} let",
|
||||
},
|
||||
past: {
|
||||
one: "več kot {{count}} letom",
|
||||
two: "več kot {{count}} letoma",
|
||||
few: "več kot {{count}} leti",
|
||||
other: "več kot {{count}} leti",
|
||||
},
|
||||
future: {
|
||||
one: "več kot {{count}} leto",
|
||||
two: "več kot {{count}} leti",
|
||||
few: "več kot {{count}} leta",
|
||||
other: "več kot {{count}} let",
|
||||
},
|
||||
},
|
||||
|
||||
almostXYears: {
|
||||
present: {
|
||||
one: "skoraj {{count}} leto",
|
||||
two: "skoraj {{count}} leti",
|
||||
few: "skoraj {{count}} leta",
|
||||
other: "skoraj {{count}} let",
|
||||
},
|
||||
past: {
|
||||
one: "skoraj {{count}} letom",
|
||||
two: "skoraj {{count}} letoma",
|
||||
few: "skoraj {{count}} leti",
|
||||
other: "skoraj {{count}} leti",
|
||||
},
|
||||
future: {
|
||||
one: "skoraj {{count}} leto",
|
||||
two: "skoraj {{count}} leti",
|
||||
few: "skoraj {{count}} leta",
|
||||
other: "skoraj {{count}} let",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
function getFormFromCount(count) {
|
||||
switch (count % 100) {
|
||||
case 1:
|
||||
return "one";
|
||||
case 2:
|
||||
return "two";
|
||||
case 3:
|
||||
case 4:
|
||||
return "few";
|
||||
default:
|
||||
return "other";
|
||||
}
|
||||
}
|
||||
|
||||
const formatDistance = (token, count, options) => {
|
||||
let result = "";
|
||||
let tense = "present";
|
||||
|
||||
if (options?.addSuffix) {
|
||||
if (options.comparison && options.comparison > 0) {
|
||||
tense = "future";
|
||||
result = "čez ";
|
||||
} else {
|
||||
tense = "past";
|
||||
result = "pred ";
|
||||
}
|
||||
}
|
||||
|
||||
const tokenValue = formatDistanceLocale[token];
|
||||
|
||||
if (typeof tokenValue === "string") {
|
||||
result += tokenValue;
|
||||
} else {
|
||||
const form = getFormFromCount(count);
|
||||
if (isPluralType(tokenValue)) {
|
||||
result += tokenValue[form].replace("{{count}}", String(count));
|
||||
} else {
|
||||
result += tokenValue[tense][form].replace("{{count}}", String(count));
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
exports.formatDistance = formatDistance;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { FormatDistanceFn } from "../../types.js";
|
||||
export declare const formatDistance: FormatDistanceFn;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { FormatDistanceFn } from "../../types.js";
|
||||
export declare const formatDistance: FormatDistanceFn;
|
||||
+340
@@ -0,0 +1,340 @@
|
||||
function isPluralType(val) {
|
||||
return val.one !== undefined;
|
||||
}
|
||||
|
||||
const formatDistanceLocale = {
|
||||
lessThanXSeconds: {
|
||||
present: {
|
||||
one: "manj kot {{count}} sekunda",
|
||||
two: "manj kot {{count}} sekundi",
|
||||
few: "manj kot {{count}} sekunde",
|
||||
other: "manj kot {{count}} sekund",
|
||||
},
|
||||
past: {
|
||||
one: "manj kot {{count}} sekundo",
|
||||
two: "manj kot {{count}} sekundama",
|
||||
few: "manj kot {{count}} sekundami",
|
||||
other: "manj kot {{count}} sekundami",
|
||||
},
|
||||
future: {
|
||||
one: "manj kot {{count}} sekundo",
|
||||
two: "manj kot {{count}} sekundi",
|
||||
few: "manj kot {{count}} sekunde",
|
||||
other: "manj kot {{count}} sekund",
|
||||
},
|
||||
},
|
||||
|
||||
xSeconds: {
|
||||
present: {
|
||||
one: "{{count}} sekunda",
|
||||
two: "{{count}} sekundi",
|
||||
few: "{{count}} sekunde",
|
||||
other: "{{count}} sekund",
|
||||
},
|
||||
past: {
|
||||
one: "{{count}} sekundo",
|
||||
two: "{{count}} sekundama",
|
||||
few: "{{count}} sekundami",
|
||||
other: "{{count}} sekundami",
|
||||
},
|
||||
future: {
|
||||
one: "{{count}} sekundo",
|
||||
two: "{{count}} sekundi",
|
||||
few: "{{count}} sekunde",
|
||||
other: "{{count}} sekund",
|
||||
},
|
||||
},
|
||||
|
||||
halfAMinute: "pol minute",
|
||||
|
||||
lessThanXMinutes: {
|
||||
present: {
|
||||
one: "manj kot {{count}} minuta",
|
||||
two: "manj kot {{count}} minuti",
|
||||
few: "manj kot {{count}} minute",
|
||||
other: "manj kot {{count}} minut",
|
||||
},
|
||||
past: {
|
||||
one: "manj kot {{count}} minuto",
|
||||
two: "manj kot {{count}} minutama",
|
||||
few: "manj kot {{count}} minutami",
|
||||
other: "manj kot {{count}} minutami",
|
||||
},
|
||||
future: {
|
||||
one: "manj kot {{count}} minuto",
|
||||
two: "manj kot {{count}} minuti",
|
||||
few: "manj kot {{count}} minute",
|
||||
other: "manj kot {{count}} minut",
|
||||
},
|
||||
},
|
||||
|
||||
xMinutes: {
|
||||
present: {
|
||||
one: "{{count}} minuta",
|
||||
two: "{{count}} minuti",
|
||||
few: "{{count}} minute",
|
||||
other: "{{count}} minut",
|
||||
},
|
||||
past: {
|
||||
one: "{{count}} minuto",
|
||||
two: "{{count}} minutama",
|
||||
few: "{{count}} minutami",
|
||||
other: "{{count}} minutami",
|
||||
},
|
||||
future: {
|
||||
one: "{{count}} minuto",
|
||||
two: "{{count}} minuti",
|
||||
few: "{{count}} minute",
|
||||
other: "{{count}} minut",
|
||||
},
|
||||
},
|
||||
|
||||
aboutXHours: {
|
||||
present: {
|
||||
one: "približno {{count}} ura",
|
||||
two: "približno {{count}} uri",
|
||||
few: "približno {{count}} ure",
|
||||
other: "približno {{count}} ur",
|
||||
},
|
||||
past: {
|
||||
one: "približno {{count}} uro",
|
||||
two: "približno {{count}} urama",
|
||||
few: "približno {{count}} urami",
|
||||
other: "približno {{count}} urami",
|
||||
},
|
||||
future: {
|
||||
one: "približno {{count}} uro",
|
||||
two: "približno {{count}} uri",
|
||||
few: "približno {{count}} ure",
|
||||
other: "približno {{count}} ur",
|
||||
},
|
||||
},
|
||||
|
||||
xHours: {
|
||||
present: {
|
||||
one: "{{count}} ura",
|
||||
two: "{{count}} uri",
|
||||
few: "{{count}} ure",
|
||||
other: "{{count}} ur",
|
||||
},
|
||||
past: {
|
||||
one: "{{count}} uro",
|
||||
two: "{{count}} urama",
|
||||
few: "{{count}} urami",
|
||||
other: "{{count}} urami",
|
||||
},
|
||||
future: {
|
||||
one: "{{count}} uro",
|
||||
two: "{{count}} uri",
|
||||
few: "{{count}} ure",
|
||||
other: "{{count}} ur",
|
||||
},
|
||||
},
|
||||
|
||||
xDays: {
|
||||
present: {
|
||||
one: "{{count}} dan",
|
||||
two: "{{count}} dni",
|
||||
few: "{{count}} dni",
|
||||
other: "{{count}} dni",
|
||||
},
|
||||
past: {
|
||||
one: "{{count}} dnem",
|
||||
two: "{{count}} dnevoma",
|
||||
few: "{{count}} dnevi",
|
||||
other: "{{count}} dnevi",
|
||||
},
|
||||
future: {
|
||||
one: "{{count}} dan",
|
||||
two: "{{count}} dni",
|
||||
few: "{{count}} dni",
|
||||
other: "{{count}} dni",
|
||||
},
|
||||
},
|
||||
|
||||
// no tenses for weeks?
|
||||
aboutXWeeks: {
|
||||
one: "približno {{count}} teden",
|
||||
two: "približno {{count}} tedna",
|
||||
few: "približno {{count}} tedne",
|
||||
other: "približno {{count}} tednov",
|
||||
},
|
||||
|
||||
// no tenses for weeks?
|
||||
xWeeks: {
|
||||
one: "{{count}} teden",
|
||||
two: "{{count}} tedna",
|
||||
few: "{{count}} tedne",
|
||||
other: "{{count}} tednov",
|
||||
},
|
||||
|
||||
aboutXMonths: {
|
||||
present: {
|
||||
one: "približno {{count}} mesec",
|
||||
two: "približno {{count}} meseca",
|
||||
few: "približno {{count}} mesece",
|
||||
other: "približno {{count}} mesecev",
|
||||
},
|
||||
past: {
|
||||
one: "približno {{count}} mesecem",
|
||||
two: "približno {{count}} mesecema",
|
||||
few: "približno {{count}} meseci",
|
||||
other: "približno {{count}} meseci",
|
||||
},
|
||||
future: {
|
||||
one: "približno {{count}} mesec",
|
||||
two: "približno {{count}} meseca",
|
||||
few: "približno {{count}} mesece",
|
||||
other: "približno {{count}} mesecev",
|
||||
},
|
||||
},
|
||||
|
||||
xMonths: {
|
||||
present: {
|
||||
one: "{{count}} mesec",
|
||||
two: "{{count}} meseca",
|
||||
few: "{{count}} meseci",
|
||||
other: "{{count}} mesecev",
|
||||
},
|
||||
past: {
|
||||
one: "{{count}} mesecem",
|
||||
two: "{{count}} mesecema",
|
||||
few: "{{count}} meseci",
|
||||
other: "{{count}} meseci",
|
||||
},
|
||||
future: {
|
||||
one: "{{count}} mesec",
|
||||
two: "{{count}} meseca",
|
||||
few: "{{count}} mesece",
|
||||
other: "{{count}} mesecev",
|
||||
},
|
||||
},
|
||||
|
||||
aboutXYears: {
|
||||
present: {
|
||||
one: "približno {{count}} leto",
|
||||
two: "približno {{count}} leti",
|
||||
few: "približno {{count}} leta",
|
||||
other: "približno {{count}} let",
|
||||
},
|
||||
past: {
|
||||
one: "približno {{count}} letom",
|
||||
two: "približno {{count}} letoma",
|
||||
few: "približno {{count}} leti",
|
||||
other: "približno {{count}} leti",
|
||||
},
|
||||
future: {
|
||||
one: "približno {{count}} leto",
|
||||
two: "približno {{count}} leti",
|
||||
few: "približno {{count}} leta",
|
||||
other: "približno {{count}} let",
|
||||
},
|
||||
},
|
||||
|
||||
xYears: {
|
||||
present: {
|
||||
one: "{{count}} leto",
|
||||
two: "{{count}} leti",
|
||||
few: "{{count}} leta",
|
||||
other: "{{count}} let",
|
||||
},
|
||||
past: {
|
||||
one: "{{count}} letom",
|
||||
two: "{{count}} letoma",
|
||||
few: "{{count}} leti",
|
||||
other: "{{count}} leti",
|
||||
},
|
||||
future: {
|
||||
one: "{{count}} leto",
|
||||
two: "{{count}} leti",
|
||||
few: "{{count}} leta",
|
||||
other: "{{count}} let",
|
||||
},
|
||||
},
|
||||
|
||||
overXYears: {
|
||||
present: {
|
||||
one: "več kot {{count}} leto",
|
||||
two: "več kot {{count}} leti",
|
||||
few: "več kot {{count}} leta",
|
||||
other: "več kot {{count}} let",
|
||||
},
|
||||
past: {
|
||||
one: "več kot {{count}} letom",
|
||||
two: "več kot {{count}} letoma",
|
||||
few: "več kot {{count}} leti",
|
||||
other: "več kot {{count}} leti",
|
||||
},
|
||||
future: {
|
||||
one: "več kot {{count}} leto",
|
||||
two: "več kot {{count}} leti",
|
||||
few: "več kot {{count}} leta",
|
||||
other: "več kot {{count}} let",
|
||||
},
|
||||
},
|
||||
|
||||
almostXYears: {
|
||||
present: {
|
||||
one: "skoraj {{count}} leto",
|
||||
two: "skoraj {{count}} leti",
|
||||
few: "skoraj {{count}} leta",
|
||||
other: "skoraj {{count}} let",
|
||||
},
|
||||
past: {
|
||||
one: "skoraj {{count}} letom",
|
||||
two: "skoraj {{count}} letoma",
|
||||
few: "skoraj {{count}} leti",
|
||||
other: "skoraj {{count}} leti",
|
||||
},
|
||||
future: {
|
||||
one: "skoraj {{count}} leto",
|
||||
two: "skoraj {{count}} leti",
|
||||
few: "skoraj {{count}} leta",
|
||||
other: "skoraj {{count}} let",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
function getFormFromCount(count) {
|
||||
switch (count % 100) {
|
||||
case 1:
|
||||
return "one";
|
||||
case 2:
|
||||
return "two";
|
||||
case 3:
|
||||
case 4:
|
||||
return "few";
|
||||
default:
|
||||
return "other";
|
||||
}
|
||||
}
|
||||
|
||||
export const formatDistance = (token, count, options) => {
|
||||
let result = "";
|
||||
let tense = "present";
|
||||
|
||||
if (options?.addSuffix) {
|
||||
if (options.comparison && options.comparison > 0) {
|
||||
tense = "future";
|
||||
result = "čez ";
|
||||
} else {
|
||||
tense = "past";
|
||||
result = "pred ";
|
||||
}
|
||||
}
|
||||
|
||||
const tokenValue = formatDistanceLocale[token];
|
||||
|
||||
if (typeof tokenValue === "string") {
|
||||
result += tokenValue;
|
||||
} else {
|
||||
const form = getFormFromCount(count);
|
||||
if (isPluralType(tokenValue)) {
|
||||
result += tokenValue[form].replace("{{count}}", String(count));
|
||||
} else {
|
||||
result += tokenValue[tense][form].replace("{{count}}", String(count));
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
"use strict";
|
||||
exports.formatLong = void 0;
|
||||
var _index = require("../../_lib/buildFormatLongFn.cjs");
|
||||
|
||||
const dateFormats = {
|
||||
full: "EEEE, dd. MMMM y",
|
||||
long: "dd. MMMM y",
|
||||
medium: "d. MMM y",
|
||||
short: "d. MM. yy",
|
||||
};
|
||||
|
||||
const timeFormats = {
|
||||
full: "HH:mm:ss zzzz",
|
||||
long: "HH:mm:ss z",
|
||||
medium: "HH:mm:ss",
|
||||
short: "HH:mm",
|
||||
};
|
||||
|
||||
const dateTimeFormats = {
|
||||
full: "{{date}} {{time}}",
|
||||
long: "{{date}} {{time}}",
|
||||
medium: "{{date}} {{time}}",
|
||||
short: "{{date}} {{time}}",
|
||||
};
|
||||
|
||||
const formatLong = (exports.formatLong = {
|
||||
date: (0, _index.buildFormatLongFn)({
|
||||
formats: dateFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
|
||||
time: (0, _index.buildFormatLongFn)({
|
||||
formats: timeFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
|
||||
dateTime: (0, _index.buildFormatLongFn)({
|
||||
formats: dateTimeFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
});
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { FormatLong } from "../../types.js";
|
||||
export declare const formatLong: FormatLong;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { FormatLong } from "../../types.js";
|
||||
export declare const formatLong: FormatLong;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js";
|
||||
|
||||
const dateFormats = {
|
||||
full: "EEEE, dd. MMMM y",
|
||||
long: "dd. MMMM y",
|
||||
medium: "d. MMM y",
|
||||
short: "d. MM. yy",
|
||||
};
|
||||
|
||||
const timeFormats = {
|
||||
full: "HH:mm:ss zzzz",
|
||||
long: "HH:mm:ss z",
|
||||
medium: "HH:mm:ss",
|
||||
short: "HH:mm",
|
||||
};
|
||||
|
||||
const dateTimeFormats = {
|
||||
full: "{{date}} {{time}}",
|
||||
long: "{{date}} {{time}}",
|
||||
medium: "{{date}} {{time}}",
|
||||
short: "{{date}} {{time}}",
|
||||
};
|
||||
|
||||
export const formatLong = {
|
||||
date: buildFormatLongFn({
|
||||
formats: dateFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
|
||||
time: buildFormatLongFn({
|
||||
formats: timeFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
|
||||
dateTime: buildFormatLongFn({
|
||||
formats: dateTimeFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
};
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
"use strict";
|
||||
exports.formatRelative = void 0;
|
||||
|
||||
const formatRelativeLocale = {
|
||||
lastWeek: (date) => {
|
||||
const day = date.getDay();
|
||||
|
||||
switch (day) {
|
||||
case 0:
|
||||
return "'prejšnjo nedeljo ob' p";
|
||||
case 3:
|
||||
return "'prejšnjo sredo ob' p";
|
||||
case 6:
|
||||
return "'prejšnjo soboto ob' p";
|
||||
default:
|
||||
return "'prejšnji' EEEE 'ob' p";
|
||||
}
|
||||
},
|
||||
yesterday: "'včeraj ob' p",
|
||||
today: "'danes ob' p",
|
||||
tomorrow: "'jutri ob' p",
|
||||
nextWeek: (date) => {
|
||||
const day = date.getDay();
|
||||
|
||||
switch (day) {
|
||||
case 0:
|
||||
return "'naslednjo nedeljo ob' p";
|
||||
case 3:
|
||||
return "'naslednjo sredo ob' p";
|
||||
case 6:
|
||||
return "'naslednjo soboto ob' p";
|
||||
default:
|
||||
return "'naslednji' EEEE 'ob' p";
|
||||
}
|
||||
},
|
||||
other: "P",
|
||||
};
|
||||
|
||||
const formatRelative = (token, date, _baseDate, _options) => {
|
||||
const format = formatRelativeLocale[token];
|
||||
|
||||
if (typeof format === "function") {
|
||||
return format(date);
|
||||
}
|
||||
|
||||
return format;
|
||||
};
|
||||
exports.formatRelative = formatRelative;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { FormatRelativeFn } from "../../types.js";
|
||||
export declare const formatRelative: FormatRelativeFn;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { FormatRelativeFn } from "../../types.js";
|
||||
export declare const formatRelative: FormatRelativeFn;
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
const formatRelativeLocale = {
|
||||
lastWeek: (date) => {
|
||||
const day = date.getDay();
|
||||
|
||||
switch (day) {
|
||||
case 0:
|
||||
return "'prejšnjo nedeljo ob' p";
|
||||
case 3:
|
||||
return "'prejšnjo sredo ob' p";
|
||||
case 6:
|
||||
return "'prejšnjo soboto ob' p";
|
||||
default:
|
||||
return "'prejšnji' EEEE 'ob' p";
|
||||
}
|
||||
},
|
||||
yesterday: "'včeraj ob' p",
|
||||
today: "'danes ob' p",
|
||||
tomorrow: "'jutri ob' p",
|
||||
nextWeek: (date) => {
|
||||
const day = date.getDay();
|
||||
|
||||
switch (day) {
|
||||
case 0:
|
||||
return "'naslednjo nedeljo ob' p";
|
||||
case 3:
|
||||
return "'naslednjo sredo ob' p";
|
||||
case 6:
|
||||
return "'naslednjo soboto ob' p";
|
||||
default:
|
||||
return "'naslednji' EEEE 'ob' p";
|
||||
}
|
||||
},
|
||||
other: "P",
|
||||
};
|
||||
|
||||
export const formatRelative = (token, date, _baseDate, _options) => {
|
||||
const format = formatRelativeLocale[token];
|
||||
|
||||
if (typeof format === "function") {
|
||||
return format(date);
|
||||
}
|
||||
|
||||
return format;
|
||||
};
|
||||
+167
@@ -0,0 +1,167 @@
|
||||
"use strict";
|
||||
exports.localize = void 0;
|
||||
var _index = require("../../_lib/buildLocalizeFn.cjs");
|
||||
|
||||
const eraValues = {
|
||||
narrow: ["pr. n. št.", "po n. št."],
|
||||
abbreviated: ["pr. n. št.", "po n. št."],
|
||||
wide: ["pred našim štetjem", "po našem štetju"],
|
||||
};
|
||||
|
||||
const quarterValues = {
|
||||
narrow: ["1", "2", "3", "4"],
|
||||
abbreviated: ["1. čet.", "2. čet.", "3. čet.", "4. čet."],
|
||||
wide: ["1. četrtletje", "2. četrtletje", "3. četrtletje", "4. četrtletje"],
|
||||
};
|
||||
|
||||
const monthValues = {
|
||||
narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
|
||||
abbreviated: [
|
||||
"jan.",
|
||||
"feb.",
|
||||
"mar.",
|
||||
"apr.",
|
||||
"maj",
|
||||
"jun.",
|
||||
"jul.",
|
||||
"avg.",
|
||||
"sep.",
|
||||
"okt.",
|
||||
"nov.",
|
||||
"dec.",
|
||||
],
|
||||
|
||||
wide: [
|
||||
"januar",
|
||||
"februar",
|
||||
"marec",
|
||||
"april",
|
||||
"maj",
|
||||
"junij",
|
||||
"julij",
|
||||
"avgust",
|
||||
"september",
|
||||
"oktober",
|
||||
"november",
|
||||
"december",
|
||||
],
|
||||
};
|
||||
|
||||
const dayValues = {
|
||||
narrow: ["n", "p", "t", "s", "č", "p", "s"],
|
||||
short: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
||||
abbreviated: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
||||
|
||||
wide: [
|
||||
"nedelja",
|
||||
"ponedeljek",
|
||||
"torek",
|
||||
"sreda",
|
||||
"četrtek",
|
||||
"petek",
|
||||
"sobota",
|
||||
],
|
||||
};
|
||||
|
||||
const dayPeriodValues = {
|
||||
narrow: {
|
||||
am: "d",
|
||||
pm: "p",
|
||||
midnight: "24.00",
|
||||
noon: "12.00",
|
||||
morning: "j",
|
||||
afternoon: "p",
|
||||
evening: "v",
|
||||
night: "n",
|
||||
},
|
||||
abbreviated: {
|
||||
am: "dop.",
|
||||
pm: "pop.",
|
||||
midnight: "poln.",
|
||||
noon: "pold.",
|
||||
morning: "jut.",
|
||||
afternoon: "pop.",
|
||||
evening: "več.",
|
||||
night: "noč",
|
||||
},
|
||||
wide: {
|
||||
am: "dop.",
|
||||
pm: "pop.",
|
||||
midnight: "polnoč",
|
||||
noon: "poldne",
|
||||
morning: "jutro",
|
||||
afternoon: "popoldne",
|
||||
evening: "večer",
|
||||
night: "noč",
|
||||
},
|
||||
};
|
||||
|
||||
const formattingDayPeriodValues = {
|
||||
narrow: {
|
||||
am: "d",
|
||||
pm: "p",
|
||||
midnight: "24.00",
|
||||
noon: "12.00",
|
||||
morning: "zj",
|
||||
afternoon: "p",
|
||||
evening: "zv",
|
||||
night: "po",
|
||||
},
|
||||
abbreviated: {
|
||||
am: "dop.",
|
||||
pm: "pop.",
|
||||
midnight: "opoln.",
|
||||
noon: "opold.",
|
||||
morning: "zjut.",
|
||||
afternoon: "pop.",
|
||||
evening: "zveč.",
|
||||
night: "ponoči",
|
||||
},
|
||||
wide: {
|
||||
am: "dop.",
|
||||
pm: "pop.",
|
||||
midnight: "opolnoči",
|
||||
noon: "opoldne",
|
||||
morning: "zjutraj",
|
||||
afternoon: "popoldan",
|
||||
evening: "zvečer",
|
||||
night: "ponoči",
|
||||
},
|
||||
};
|
||||
|
||||
const ordinalNumber = (dirtyNumber, _options) => {
|
||||
const number = Number(dirtyNumber);
|
||||
return number + ".";
|
||||
};
|
||||
|
||||
const localize = (exports.localize = {
|
||||
ordinalNumber,
|
||||
|
||||
era: (0, _index.buildLocalizeFn)({
|
||||
values: eraValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
quarter: (0, _index.buildLocalizeFn)({
|
||||
values: quarterValues,
|
||||
defaultWidth: "wide",
|
||||
argumentCallback: (quarter) => quarter - 1,
|
||||
}),
|
||||
|
||||
month: (0, _index.buildLocalizeFn)({
|
||||
values: monthValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
day: (0, _index.buildLocalizeFn)({
|
||||
values: dayValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
dayPeriod: (0, _index.buildLocalizeFn)({
|
||||
values: dayPeriodValues,
|
||||
defaultWidth: "wide",
|
||||
formattingValues: formattingDayPeriodValues,
|
||||
defaultFormattingWidth: "wide",
|
||||
}),
|
||||
});
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { Localize } from "../../types.js";
|
||||
export declare const localize: Localize;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { Localize } from "../../types.js";
|
||||
export declare const localize: Localize;
|
||||
+165
@@ -0,0 +1,165 @@
|
||||
import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js";
|
||||
|
||||
const eraValues = {
|
||||
narrow: ["pr. n. št.", "po n. št."],
|
||||
abbreviated: ["pr. n. št.", "po n. št."],
|
||||
wide: ["pred našim štetjem", "po našem štetju"],
|
||||
};
|
||||
|
||||
const quarterValues = {
|
||||
narrow: ["1", "2", "3", "4"],
|
||||
abbreviated: ["1. čet.", "2. čet.", "3. čet.", "4. čet."],
|
||||
wide: ["1. četrtletje", "2. četrtletje", "3. četrtletje", "4. četrtletje"],
|
||||
};
|
||||
|
||||
const monthValues = {
|
||||
narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
|
||||
abbreviated: [
|
||||
"jan.",
|
||||
"feb.",
|
||||
"mar.",
|
||||
"apr.",
|
||||
"maj",
|
||||
"jun.",
|
||||
"jul.",
|
||||
"avg.",
|
||||
"sep.",
|
||||
"okt.",
|
||||
"nov.",
|
||||
"dec.",
|
||||
],
|
||||
|
||||
wide: [
|
||||
"januar",
|
||||
"februar",
|
||||
"marec",
|
||||
"april",
|
||||
"maj",
|
||||
"junij",
|
||||
"julij",
|
||||
"avgust",
|
||||
"september",
|
||||
"oktober",
|
||||
"november",
|
||||
"december",
|
||||
],
|
||||
};
|
||||
|
||||
const dayValues = {
|
||||
narrow: ["n", "p", "t", "s", "č", "p", "s"],
|
||||
short: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
||||
abbreviated: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
||||
|
||||
wide: [
|
||||
"nedelja",
|
||||
"ponedeljek",
|
||||
"torek",
|
||||
"sreda",
|
||||
"četrtek",
|
||||
"petek",
|
||||
"sobota",
|
||||
],
|
||||
};
|
||||
|
||||
const dayPeriodValues = {
|
||||
narrow: {
|
||||
am: "d",
|
||||
pm: "p",
|
||||
midnight: "24.00",
|
||||
noon: "12.00",
|
||||
morning: "j",
|
||||
afternoon: "p",
|
||||
evening: "v",
|
||||
night: "n",
|
||||
},
|
||||
abbreviated: {
|
||||
am: "dop.",
|
||||
pm: "pop.",
|
||||
midnight: "poln.",
|
||||
noon: "pold.",
|
||||
morning: "jut.",
|
||||
afternoon: "pop.",
|
||||
evening: "več.",
|
||||
night: "noč",
|
||||
},
|
||||
wide: {
|
||||
am: "dop.",
|
||||
pm: "pop.",
|
||||
midnight: "polnoč",
|
||||
noon: "poldne",
|
||||
morning: "jutro",
|
||||
afternoon: "popoldne",
|
||||
evening: "večer",
|
||||
night: "noč",
|
||||
},
|
||||
};
|
||||
|
||||
const formattingDayPeriodValues = {
|
||||
narrow: {
|
||||
am: "d",
|
||||
pm: "p",
|
||||
midnight: "24.00",
|
||||
noon: "12.00",
|
||||
morning: "zj",
|
||||
afternoon: "p",
|
||||
evening: "zv",
|
||||
night: "po",
|
||||
},
|
||||
abbreviated: {
|
||||
am: "dop.",
|
||||
pm: "pop.",
|
||||
midnight: "opoln.",
|
||||
noon: "opold.",
|
||||
morning: "zjut.",
|
||||
afternoon: "pop.",
|
||||
evening: "zveč.",
|
||||
night: "ponoči",
|
||||
},
|
||||
wide: {
|
||||
am: "dop.",
|
||||
pm: "pop.",
|
||||
midnight: "opolnoči",
|
||||
noon: "opoldne",
|
||||
morning: "zjutraj",
|
||||
afternoon: "popoldan",
|
||||
evening: "zvečer",
|
||||
night: "ponoči",
|
||||
},
|
||||
};
|
||||
|
||||
const ordinalNumber = (dirtyNumber, _options) => {
|
||||
const number = Number(dirtyNumber);
|
||||
return number + ".";
|
||||
};
|
||||
|
||||
export const localize = {
|
||||
ordinalNumber,
|
||||
|
||||
era: buildLocalizeFn({
|
||||
values: eraValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
quarter: buildLocalizeFn({
|
||||
values: quarterValues,
|
||||
defaultWidth: "wide",
|
||||
argumentCallback: (quarter) => quarter - 1,
|
||||
}),
|
||||
|
||||
month: buildLocalizeFn({
|
||||
values: monthValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
day: buildLocalizeFn({
|
||||
values: dayValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
dayPeriod: buildLocalizeFn({
|
||||
values: dayPeriodValues,
|
||||
defaultWidth: "wide",
|
||||
formattingValues: formattingDayPeriodValues,
|
||||
defaultFormattingWidth: "wide",
|
||||
}),
|
||||
};
|
||||
+160
@@ -0,0 +1,160 @@
|
||||
"use strict";
|
||||
exports.match = void 0;
|
||||
|
||||
var _index = require("../../_lib/buildMatchFn.cjs");
|
||||
var _index2 = require("../../_lib/buildMatchPatternFn.cjs");
|
||||
|
||||
const matchOrdinalNumberPattern = /^(\d+)\./i;
|
||||
const parseOrdinalNumberPattern = /\d+/i;
|
||||
|
||||
const matchEraPatterns = {
|
||||
abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i,
|
||||
wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i,
|
||||
};
|
||||
const parseEraPatterns = {
|
||||
any: [/^pr/i, /^(po|na[sš]em)/i],
|
||||
};
|
||||
|
||||
const matchQuarterPatterns = {
|
||||
narrow: /^[1234]/i,
|
||||
abbreviated: /^[1234]\.\s?[čc]et\.?/i,
|
||||
wide: /^[1234]\. [čc]etrtletje/i,
|
||||
};
|
||||
const parseQuarterPatterns = {
|
||||
any: [/1/i, /2/i, /3/i, /4/i],
|
||||
};
|
||||
|
||||
const matchMonthPatterns = {
|
||||
narrow: /^[jfmasond]/i,
|
||||
abbreviated:
|
||||
/^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,
|
||||
wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i,
|
||||
};
|
||||
const parseMonthPatterns = {
|
||||
narrow: [
|
||||
/^j/i,
|
||||
/^f/i,
|
||||
/^m/i,
|
||||
/^a/i,
|
||||
/^m/i,
|
||||
/^j/i,
|
||||
/^j/i,
|
||||
/^a/i,
|
||||
/^s/i,
|
||||
/^o/i,
|
||||
/^n/i,
|
||||
/^d/i,
|
||||
],
|
||||
|
||||
abbreviated: [
|
||||
/^ja/i,
|
||||
/^fe/i,
|
||||
/^mar/i,
|
||||
/^ap/i,
|
||||
/^maj/i,
|
||||
/^jun/i,
|
||||
/^jul/i,
|
||||
/^av/i,
|
||||
/^s/i,
|
||||
/^o/i,
|
||||
/^n/i,
|
||||
/^d/i,
|
||||
],
|
||||
|
||||
wide: [
|
||||
/^ja/i,
|
||||
/^fe/i,
|
||||
/^mar/i,
|
||||
/^ap/i,
|
||||
/^maj/i,
|
||||
/^jun/i,
|
||||
/^jul/i,
|
||||
/^av/i,
|
||||
/^s/i,
|
||||
/^o/i,
|
||||
/^n/i,
|
||||
/^d/i,
|
||||
],
|
||||
};
|
||||
|
||||
const matchDayPatterns = {
|
||||
narrow: /^[nptsčc]/i,
|
||||
short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
||||
abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
||||
wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i,
|
||||
};
|
||||
const parseDayPatterns = {
|
||||
narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cč]/i, /^p/i, /^s/i],
|
||||
any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cč]/i, /^pe/i, /^so/i],
|
||||
};
|
||||
|
||||
const matchDayPeriodPatterns = {
|
||||
narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,
|
||||
any: /^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i,
|
||||
};
|
||||
const parseDayPeriodPatterns = {
|
||||
narrow: {
|
||||
am: /^d/i,
|
||||
pm: /^p/i,
|
||||
midnight: /^24/i,
|
||||
noon: /^12/i,
|
||||
morning: /^(z?j)/i,
|
||||
afternoon: /^p/i,
|
||||
evening: /^(z?v)/i,
|
||||
night: /^(n|po)/i,
|
||||
},
|
||||
any: {
|
||||
am: /^dop\./i,
|
||||
pm: /^pop\./i,
|
||||
midnight: /^o?poln/i,
|
||||
noon: /^o?pold/i,
|
||||
morning: /j/i,
|
||||
afternoon: /^pop\./i,
|
||||
evening: /^z?ve/i,
|
||||
night: /(po)?no/i,
|
||||
},
|
||||
};
|
||||
|
||||
const match = (exports.match = {
|
||||
ordinalNumber: (0, _index2.buildMatchPatternFn)({
|
||||
matchPattern: matchOrdinalNumberPattern,
|
||||
parsePattern: parseOrdinalNumberPattern,
|
||||
valueCallback: (value) => parseInt(value, 10),
|
||||
}),
|
||||
|
||||
era: (0, _index.buildMatchFn)({
|
||||
matchPatterns: matchEraPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseEraPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
|
||||
quarter: (0, _index.buildMatchFn)({
|
||||
matchPatterns: matchQuarterPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseQuarterPatterns,
|
||||
defaultParseWidth: "any",
|
||||
valueCallback: (index) => index + 1,
|
||||
}),
|
||||
|
||||
month: (0, _index.buildMatchFn)({
|
||||
matchPatterns: matchMonthPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseMonthPatterns,
|
||||
defaultParseWidth: "wide",
|
||||
}),
|
||||
|
||||
day: (0, _index.buildMatchFn)({
|
||||
matchPatterns: matchDayPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseDayPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
|
||||
dayPeriod: (0, _index.buildMatchFn)({
|
||||
matchPatterns: matchDayPeriodPatterns,
|
||||
defaultMatchWidth: "any",
|
||||
parsePatterns: parseDayPeriodPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
});
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { Match } from "../../types.js";
|
||||
export declare const match: Match;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { Match } from "../../types.js";
|
||||
export declare const match: Match;
|
||||
+157
@@ -0,0 +1,157 @@
|
||||
import { buildMatchFn } from "../../_lib/buildMatchFn.js";
|
||||
import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js";
|
||||
|
||||
const matchOrdinalNumberPattern = /^(\d+)\./i;
|
||||
const parseOrdinalNumberPattern = /\d+/i;
|
||||
|
||||
const matchEraPatterns = {
|
||||
abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i,
|
||||
wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i,
|
||||
};
|
||||
const parseEraPatterns = {
|
||||
any: [/^pr/i, /^(po|na[sš]em)/i],
|
||||
};
|
||||
|
||||
const matchQuarterPatterns = {
|
||||
narrow: /^[1234]/i,
|
||||
abbreviated: /^[1234]\.\s?[čc]et\.?/i,
|
||||
wide: /^[1234]\. [čc]etrtletje/i,
|
||||
};
|
||||
const parseQuarterPatterns = {
|
||||
any: [/1/i, /2/i, /3/i, /4/i],
|
||||
};
|
||||
|
||||
const matchMonthPatterns = {
|
||||
narrow: /^[jfmasond]/i,
|
||||
abbreviated:
|
||||
/^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,
|
||||
wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i,
|
||||
};
|
||||
const parseMonthPatterns = {
|
||||
narrow: [
|
||||
/^j/i,
|
||||
/^f/i,
|
||||
/^m/i,
|
||||
/^a/i,
|
||||
/^m/i,
|
||||
/^j/i,
|
||||
/^j/i,
|
||||
/^a/i,
|
||||
/^s/i,
|
||||
/^o/i,
|
||||
/^n/i,
|
||||
/^d/i,
|
||||
],
|
||||
|
||||
abbreviated: [
|
||||
/^ja/i,
|
||||
/^fe/i,
|
||||
/^mar/i,
|
||||
/^ap/i,
|
||||
/^maj/i,
|
||||
/^jun/i,
|
||||
/^jul/i,
|
||||
/^av/i,
|
||||
/^s/i,
|
||||
/^o/i,
|
||||
/^n/i,
|
||||
/^d/i,
|
||||
],
|
||||
|
||||
wide: [
|
||||
/^ja/i,
|
||||
/^fe/i,
|
||||
/^mar/i,
|
||||
/^ap/i,
|
||||
/^maj/i,
|
||||
/^jun/i,
|
||||
/^jul/i,
|
||||
/^av/i,
|
||||
/^s/i,
|
||||
/^o/i,
|
||||
/^n/i,
|
||||
/^d/i,
|
||||
],
|
||||
};
|
||||
|
||||
const matchDayPatterns = {
|
||||
narrow: /^[nptsčc]/i,
|
||||
short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
||||
abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
||||
wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i,
|
||||
};
|
||||
const parseDayPatterns = {
|
||||
narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cč]/i, /^p/i, /^s/i],
|
||||
any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cč]/i, /^pe/i, /^so/i],
|
||||
};
|
||||
|
||||
const matchDayPeriodPatterns = {
|
||||
narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,
|
||||
any: /^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i,
|
||||
};
|
||||
const parseDayPeriodPatterns = {
|
||||
narrow: {
|
||||
am: /^d/i,
|
||||
pm: /^p/i,
|
||||
midnight: /^24/i,
|
||||
noon: /^12/i,
|
||||
morning: /^(z?j)/i,
|
||||
afternoon: /^p/i,
|
||||
evening: /^(z?v)/i,
|
||||
night: /^(n|po)/i,
|
||||
},
|
||||
any: {
|
||||
am: /^dop\./i,
|
||||
pm: /^pop\./i,
|
||||
midnight: /^o?poln/i,
|
||||
noon: /^o?pold/i,
|
||||
morning: /j/i,
|
||||
afternoon: /^pop\./i,
|
||||
evening: /^z?ve/i,
|
||||
night: /(po)?no/i,
|
||||
},
|
||||
};
|
||||
|
||||
export const match = {
|
||||
ordinalNumber: buildMatchPatternFn({
|
||||
matchPattern: matchOrdinalNumberPattern,
|
||||
parsePattern: parseOrdinalNumberPattern,
|
||||
valueCallback: (value) => parseInt(value, 10),
|
||||
}),
|
||||
|
||||
era: buildMatchFn({
|
||||
matchPatterns: matchEraPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseEraPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
|
||||
quarter: buildMatchFn({
|
||||
matchPatterns: matchQuarterPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseQuarterPatterns,
|
||||
defaultParseWidth: "any",
|
||||
valueCallback: (index) => index + 1,
|
||||
}),
|
||||
|
||||
month: buildMatchFn({
|
||||
matchPatterns: matchMonthPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseMonthPatterns,
|
||||
defaultParseWidth: "wide",
|
||||
}),
|
||||
|
||||
day: buildMatchFn({
|
||||
matchPatterns: matchDayPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseDayPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
|
||||
dayPeriod: buildMatchFn({
|
||||
matchPatterns: matchDayPeriodPatterns,
|
||||
defaultMatchWidth: "any",
|
||||
parsePatterns: parseDayPeriodPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
};
|
||||
+806
@@ -0,0 +1,806 @@
|
||||
(() => {
|
||||
var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(obj, key, value) {key = _toPropertyKey(key);if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : String(i);}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}var __defProp = Object.defineProperty;
|
||||
var __export = function __export(target, all) {
|
||||
for (var name in all)
|
||||
__defProp(target, name, {
|
||||
get: all[name],
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
set: function set(newValue) {return all[name] = function () {return newValue;};}
|
||||
});
|
||||
};
|
||||
|
||||
// lib/locale/sl/_lib/formatDistance.js
|
||||
function isPluralType(val) {
|
||||
return val.one !== undefined;
|
||||
}
|
||||
function getFormFromCount(count) {
|
||||
switch (count % 100) {
|
||||
case 1:
|
||||
return "one";
|
||||
case 2:
|
||||
return "two";
|
||||
case 3:
|
||||
case 4:
|
||||
return "few";
|
||||
default:
|
||||
return "other";
|
||||
}
|
||||
}
|
||||
var formatDistanceLocale = {
|
||||
lessThanXSeconds: {
|
||||
present: {
|
||||
one: "manj kot {{count}} sekunda",
|
||||
two: "manj kot {{count}} sekundi",
|
||||
few: "manj kot {{count}} sekunde",
|
||||
other: "manj kot {{count}} sekund"
|
||||
},
|
||||
past: {
|
||||
one: "manj kot {{count}} sekundo",
|
||||
two: "manj kot {{count}} sekundama",
|
||||
few: "manj kot {{count}} sekundami",
|
||||
other: "manj kot {{count}} sekundami"
|
||||
},
|
||||
future: {
|
||||
one: "manj kot {{count}} sekundo",
|
||||
two: "manj kot {{count}} sekundi",
|
||||
few: "manj kot {{count}} sekunde",
|
||||
other: "manj kot {{count}} sekund"
|
||||
}
|
||||
},
|
||||
xSeconds: {
|
||||
present: {
|
||||
one: "{{count}} sekunda",
|
||||
two: "{{count}} sekundi",
|
||||
few: "{{count}} sekunde",
|
||||
other: "{{count}} sekund"
|
||||
},
|
||||
past: {
|
||||
one: "{{count}} sekundo",
|
||||
two: "{{count}} sekundama",
|
||||
few: "{{count}} sekundami",
|
||||
other: "{{count}} sekundami"
|
||||
},
|
||||
future: {
|
||||
one: "{{count}} sekundo",
|
||||
two: "{{count}} sekundi",
|
||||
few: "{{count}} sekunde",
|
||||
other: "{{count}} sekund"
|
||||
}
|
||||
},
|
||||
halfAMinute: "pol minute",
|
||||
lessThanXMinutes: {
|
||||
present: {
|
||||
one: "manj kot {{count}} minuta",
|
||||
two: "manj kot {{count}} minuti",
|
||||
few: "manj kot {{count}} minute",
|
||||
other: "manj kot {{count}} minut"
|
||||
},
|
||||
past: {
|
||||
one: "manj kot {{count}} minuto",
|
||||
two: "manj kot {{count}} minutama",
|
||||
few: "manj kot {{count}} minutami",
|
||||
other: "manj kot {{count}} minutami"
|
||||
},
|
||||
future: {
|
||||
one: "manj kot {{count}} minuto",
|
||||
two: "manj kot {{count}} minuti",
|
||||
few: "manj kot {{count}} minute",
|
||||
other: "manj kot {{count}} minut"
|
||||
}
|
||||
},
|
||||
xMinutes: {
|
||||
present: {
|
||||
one: "{{count}} minuta",
|
||||
two: "{{count}} minuti",
|
||||
few: "{{count}} minute",
|
||||
other: "{{count}} minut"
|
||||
},
|
||||
past: {
|
||||
one: "{{count}} minuto",
|
||||
two: "{{count}} minutama",
|
||||
few: "{{count}} minutami",
|
||||
other: "{{count}} minutami"
|
||||
},
|
||||
future: {
|
||||
one: "{{count}} minuto",
|
||||
two: "{{count}} minuti",
|
||||
few: "{{count}} minute",
|
||||
other: "{{count}} minut"
|
||||
}
|
||||
},
|
||||
aboutXHours: {
|
||||
present: {
|
||||
one: "pribli\u017Eno {{count}} ura",
|
||||
two: "pribli\u017Eno {{count}} uri",
|
||||
few: "pribli\u017Eno {{count}} ure",
|
||||
other: "pribli\u017Eno {{count}} ur"
|
||||
},
|
||||
past: {
|
||||
one: "pribli\u017Eno {{count}} uro",
|
||||
two: "pribli\u017Eno {{count}} urama",
|
||||
few: "pribli\u017Eno {{count}} urami",
|
||||
other: "pribli\u017Eno {{count}} urami"
|
||||
},
|
||||
future: {
|
||||
one: "pribli\u017Eno {{count}} uro",
|
||||
two: "pribli\u017Eno {{count}} uri",
|
||||
few: "pribli\u017Eno {{count}} ure",
|
||||
other: "pribli\u017Eno {{count}} ur"
|
||||
}
|
||||
},
|
||||
xHours: {
|
||||
present: {
|
||||
one: "{{count}} ura",
|
||||
two: "{{count}} uri",
|
||||
few: "{{count}} ure",
|
||||
other: "{{count}} ur"
|
||||
},
|
||||
past: {
|
||||
one: "{{count}} uro",
|
||||
two: "{{count}} urama",
|
||||
few: "{{count}} urami",
|
||||
other: "{{count}} urami"
|
||||
},
|
||||
future: {
|
||||
one: "{{count}} uro",
|
||||
two: "{{count}} uri",
|
||||
few: "{{count}} ure",
|
||||
other: "{{count}} ur"
|
||||
}
|
||||
},
|
||||
xDays: {
|
||||
present: {
|
||||
one: "{{count}} dan",
|
||||
two: "{{count}} dni",
|
||||
few: "{{count}} dni",
|
||||
other: "{{count}} dni"
|
||||
},
|
||||
past: {
|
||||
one: "{{count}} dnem",
|
||||
two: "{{count}} dnevoma",
|
||||
few: "{{count}} dnevi",
|
||||
other: "{{count}} dnevi"
|
||||
},
|
||||
future: {
|
||||
one: "{{count}} dan",
|
||||
two: "{{count}} dni",
|
||||
few: "{{count}} dni",
|
||||
other: "{{count}} dni"
|
||||
}
|
||||
},
|
||||
aboutXWeeks: {
|
||||
one: "pribli\u017Eno {{count}} teden",
|
||||
two: "pribli\u017Eno {{count}} tedna",
|
||||
few: "pribli\u017Eno {{count}} tedne",
|
||||
other: "pribli\u017Eno {{count}} tednov"
|
||||
},
|
||||
xWeeks: {
|
||||
one: "{{count}} teden",
|
||||
two: "{{count}} tedna",
|
||||
few: "{{count}} tedne",
|
||||
other: "{{count}} tednov"
|
||||
},
|
||||
aboutXMonths: {
|
||||
present: {
|
||||
one: "pribli\u017Eno {{count}} mesec",
|
||||
two: "pribli\u017Eno {{count}} meseca",
|
||||
few: "pribli\u017Eno {{count}} mesece",
|
||||
other: "pribli\u017Eno {{count}} mesecev"
|
||||
},
|
||||
past: {
|
||||
one: "pribli\u017Eno {{count}} mesecem",
|
||||
two: "pribli\u017Eno {{count}} mesecema",
|
||||
few: "pribli\u017Eno {{count}} meseci",
|
||||
other: "pribli\u017Eno {{count}} meseci"
|
||||
},
|
||||
future: {
|
||||
one: "pribli\u017Eno {{count}} mesec",
|
||||
two: "pribli\u017Eno {{count}} meseca",
|
||||
few: "pribli\u017Eno {{count}} mesece",
|
||||
other: "pribli\u017Eno {{count}} mesecev"
|
||||
}
|
||||
},
|
||||
xMonths: {
|
||||
present: {
|
||||
one: "{{count}} mesec",
|
||||
two: "{{count}} meseca",
|
||||
few: "{{count}} meseci",
|
||||
other: "{{count}} mesecev"
|
||||
},
|
||||
past: {
|
||||
one: "{{count}} mesecem",
|
||||
two: "{{count}} mesecema",
|
||||
few: "{{count}} meseci",
|
||||
other: "{{count}} meseci"
|
||||
},
|
||||
future: {
|
||||
one: "{{count}} mesec",
|
||||
two: "{{count}} meseca",
|
||||
few: "{{count}} mesece",
|
||||
other: "{{count}} mesecev"
|
||||
}
|
||||
},
|
||||
aboutXYears: {
|
||||
present: {
|
||||
one: "pribli\u017Eno {{count}} leto",
|
||||
two: "pribli\u017Eno {{count}} leti",
|
||||
few: "pribli\u017Eno {{count}} leta",
|
||||
other: "pribli\u017Eno {{count}} let"
|
||||
},
|
||||
past: {
|
||||
one: "pribli\u017Eno {{count}} letom",
|
||||
two: "pribli\u017Eno {{count}} letoma",
|
||||
few: "pribli\u017Eno {{count}} leti",
|
||||
other: "pribli\u017Eno {{count}} leti"
|
||||
},
|
||||
future: {
|
||||
one: "pribli\u017Eno {{count}} leto",
|
||||
two: "pribli\u017Eno {{count}} leti",
|
||||
few: "pribli\u017Eno {{count}} leta",
|
||||
other: "pribli\u017Eno {{count}} let"
|
||||
}
|
||||
},
|
||||
xYears: {
|
||||
present: {
|
||||
one: "{{count}} leto",
|
||||
two: "{{count}} leti",
|
||||
few: "{{count}} leta",
|
||||
other: "{{count}} let"
|
||||
},
|
||||
past: {
|
||||
one: "{{count}} letom",
|
||||
two: "{{count}} letoma",
|
||||
few: "{{count}} leti",
|
||||
other: "{{count}} leti"
|
||||
},
|
||||
future: {
|
||||
one: "{{count}} leto",
|
||||
two: "{{count}} leti",
|
||||
few: "{{count}} leta",
|
||||
other: "{{count}} let"
|
||||
}
|
||||
},
|
||||
overXYears: {
|
||||
present: {
|
||||
one: "ve\u010D kot {{count}} leto",
|
||||
two: "ve\u010D kot {{count}} leti",
|
||||
few: "ve\u010D kot {{count}} leta",
|
||||
other: "ve\u010D kot {{count}} let"
|
||||
},
|
||||
past: {
|
||||
one: "ve\u010D kot {{count}} letom",
|
||||
two: "ve\u010D kot {{count}} letoma",
|
||||
few: "ve\u010D kot {{count}} leti",
|
||||
other: "ve\u010D kot {{count}} leti"
|
||||
},
|
||||
future: {
|
||||
one: "ve\u010D kot {{count}} leto",
|
||||
two: "ve\u010D kot {{count}} leti",
|
||||
few: "ve\u010D kot {{count}} leta",
|
||||
other: "ve\u010D kot {{count}} let"
|
||||
}
|
||||
},
|
||||
almostXYears: {
|
||||
present: {
|
||||
one: "skoraj {{count}} leto",
|
||||
two: "skoraj {{count}} leti",
|
||||
few: "skoraj {{count}} leta",
|
||||
other: "skoraj {{count}} let"
|
||||
},
|
||||
past: {
|
||||
one: "skoraj {{count}} letom",
|
||||
two: "skoraj {{count}} letoma",
|
||||
few: "skoraj {{count}} leti",
|
||||
other: "skoraj {{count}} leti"
|
||||
},
|
||||
future: {
|
||||
one: "skoraj {{count}} leto",
|
||||
two: "skoraj {{count}} leti",
|
||||
few: "skoraj {{count}} leta",
|
||||
other: "skoraj {{count}} let"
|
||||
}
|
||||
}
|
||||
};
|
||||
var formatDistance = function formatDistance(token, count, options) {
|
||||
var result = "";
|
||||
var tense = "present";
|
||||
if (options !== null && options !== void 0 && options.addSuffix) {
|
||||
if (options.comparison && options.comparison > 0) {
|
||||
tense = "future";
|
||||
result = "\u010Dez ";
|
||||
} else {
|
||||
tense = "past";
|
||||
result = "pred ";
|
||||
}
|
||||
}
|
||||
var tokenValue = formatDistanceLocale[token];
|
||||
if (typeof tokenValue === "string") {
|
||||
result += tokenValue;
|
||||
} else {
|
||||
var form = getFormFromCount(count);
|
||||
if (isPluralType(tokenValue)) {
|
||||
result += tokenValue[form].replace("{{count}}", String(count));
|
||||
} else {
|
||||
result += tokenValue[tense][form].replace("{{count}}", String(count));
|
||||
}
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
// lib/locale/_lib/buildFormatLongFn.js
|
||||
function buildFormatLongFn(args) {
|
||||
return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
var width = options.width ? String(options.width) : args.defaultWidth;
|
||||
var format = args.formats[width] || args.formats[args.defaultWidth];
|
||||
return format;
|
||||
};
|
||||
}
|
||||
|
||||
// lib/locale/sl/_lib/formatLong.js
|
||||
var dateFormats = {
|
||||
full: "EEEE, dd. MMMM y",
|
||||
long: "dd. MMMM y",
|
||||
medium: "d. MMM y",
|
||||
short: "d. MM. yy"
|
||||
};
|
||||
var timeFormats = {
|
||||
full: "HH:mm:ss zzzz",
|
||||
long: "HH:mm:ss z",
|
||||
medium: "HH:mm:ss",
|
||||
short: "HH:mm"
|
||||
};
|
||||
var dateTimeFormats = {
|
||||
full: "{{date}} {{time}}",
|
||||
long: "{{date}} {{time}}",
|
||||
medium: "{{date}} {{time}}",
|
||||
short: "{{date}} {{time}}"
|
||||
};
|
||||
var formatLong = {
|
||||
date: buildFormatLongFn({
|
||||
formats: dateFormats,
|
||||
defaultWidth: "full"
|
||||
}),
|
||||
time: buildFormatLongFn({
|
||||
formats: timeFormats,
|
||||
defaultWidth: "full"
|
||||
}),
|
||||
dateTime: buildFormatLongFn({
|
||||
formats: dateTimeFormats,
|
||||
defaultWidth: "full"
|
||||
})
|
||||
};
|
||||
|
||||
// lib/locale/sl/_lib/formatRelative.js
|
||||
var formatRelativeLocale = {
|
||||
lastWeek: function lastWeek(date) {
|
||||
var day = date.getDay();
|
||||
switch (day) {
|
||||
case 0:
|
||||
return "'prej\u0161njo nedeljo ob' p";
|
||||
case 3:
|
||||
return "'prej\u0161njo sredo ob' p";
|
||||
case 6:
|
||||
return "'prej\u0161njo soboto ob' p";
|
||||
default:
|
||||
return "'prej\u0161nji' EEEE 'ob' p";
|
||||
}
|
||||
},
|
||||
yesterday: "'v\u010Deraj ob' p",
|
||||
today: "'danes ob' p",
|
||||
tomorrow: "'jutri ob' p",
|
||||
nextWeek: function nextWeek(date) {
|
||||
var day = date.getDay();
|
||||
switch (day) {
|
||||
case 0:
|
||||
return "'naslednjo nedeljo ob' p";
|
||||
case 3:
|
||||
return "'naslednjo sredo ob' p";
|
||||
case 6:
|
||||
return "'naslednjo soboto ob' p";
|
||||
default:
|
||||
return "'naslednji' EEEE 'ob' p";
|
||||
}
|
||||
},
|
||||
other: "P"
|
||||
};
|
||||
var formatRelative = function formatRelative(token, date, _baseDate, _options) {
|
||||
var format = formatRelativeLocale[token];
|
||||
if (typeof format === "function") {
|
||||
return format(date);
|
||||
}
|
||||
return format;
|
||||
};
|
||||
|
||||
// lib/locale/_lib/buildLocalizeFn.js
|
||||
function buildLocalizeFn(args) {
|
||||
return function (value, options) {
|
||||
var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone";
|
||||
var valuesArray;
|
||||
if (context === "formatting" && args.formattingValues) {
|
||||
var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
|
||||
var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
|
||||
valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
|
||||
} else {
|
||||
var _defaultWidth = args.defaultWidth;
|
||||
var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
|
||||
valuesArray = args.values[_width] || args.values[_defaultWidth];
|
||||
}
|
||||
var index = args.argumentCallback ? args.argumentCallback(value) : value;
|
||||
return valuesArray[index];
|
||||
};
|
||||
}
|
||||
|
||||
// lib/locale/sl/_lib/localize.js
|
||||
var eraValues = {
|
||||
narrow: ["pr. n. \u0161t.", "po n. \u0161t."],
|
||||
abbreviated: ["pr. n. \u0161t.", "po n. \u0161t."],
|
||||
wide: ["pred na\u0161im \u0161tetjem", "po na\u0161em \u0161tetju"]
|
||||
};
|
||||
var quarterValues = {
|
||||
narrow: ["1", "2", "3", "4"],
|
||||
abbreviated: ["1. \u010Det.", "2. \u010Det.", "3. \u010Det.", "4. \u010Det."],
|
||||
wide: ["1. \u010Detrtletje", "2. \u010Detrtletje", "3. \u010Detrtletje", "4. \u010Detrtletje"]
|
||||
};
|
||||
var monthValues = {
|
||||
narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
|
||||
abbreviated: [
|
||||
"jan.",
|
||||
"feb.",
|
||||
"mar.",
|
||||
"apr.",
|
||||
"maj",
|
||||
"jun.",
|
||||
"jul.",
|
||||
"avg.",
|
||||
"sep.",
|
||||
"okt.",
|
||||
"nov.",
|
||||
"dec."],
|
||||
|
||||
wide: [
|
||||
"januar",
|
||||
"februar",
|
||||
"marec",
|
||||
"april",
|
||||
"maj",
|
||||
"junij",
|
||||
"julij",
|
||||
"avgust",
|
||||
"september",
|
||||
"oktober",
|
||||
"november",
|
||||
"december"]
|
||||
|
||||
};
|
||||
var dayValues = {
|
||||
narrow: ["n", "p", "t", "s", "\u010D", "p", "s"],
|
||||
short: ["ned.", "pon.", "tor.", "sre.", "\u010Det.", "pet.", "sob."],
|
||||
abbreviated: ["ned.", "pon.", "tor.", "sre.", "\u010Det.", "pet.", "sob."],
|
||||
wide: [
|
||||
"nedelja",
|
||||
"ponedeljek",
|
||||
"torek",
|
||||
"sreda",
|
||||
"\u010Detrtek",
|
||||
"petek",
|
||||
"sobota"]
|
||||
|
||||
};
|
||||
var dayPeriodValues = {
|
||||
narrow: {
|
||||
am: "d",
|
||||
pm: "p",
|
||||
midnight: "24.00",
|
||||
noon: "12.00",
|
||||
morning: "j",
|
||||
afternoon: "p",
|
||||
evening: "v",
|
||||
night: "n"
|
||||
},
|
||||
abbreviated: {
|
||||
am: "dop.",
|
||||
pm: "pop.",
|
||||
midnight: "poln.",
|
||||
noon: "pold.",
|
||||
morning: "jut.",
|
||||
afternoon: "pop.",
|
||||
evening: "ve\u010D.",
|
||||
night: "no\u010D"
|
||||
},
|
||||
wide: {
|
||||
am: "dop.",
|
||||
pm: "pop.",
|
||||
midnight: "polno\u010D",
|
||||
noon: "poldne",
|
||||
morning: "jutro",
|
||||
afternoon: "popoldne",
|
||||
evening: "ve\u010Der",
|
||||
night: "no\u010D"
|
||||
}
|
||||
};
|
||||
var formattingDayPeriodValues = {
|
||||
narrow: {
|
||||
am: "d",
|
||||
pm: "p",
|
||||
midnight: "24.00",
|
||||
noon: "12.00",
|
||||
morning: "zj",
|
||||
afternoon: "p",
|
||||
evening: "zv",
|
||||
night: "po"
|
||||
},
|
||||
abbreviated: {
|
||||
am: "dop.",
|
||||
pm: "pop.",
|
||||
midnight: "opoln.",
|
||||
noon: "opold.",
|
||||
morning: "zjut.",
|
||||
afternoon: "pop.",
|
||||
evening: "zve\u010D.",
|
||||
night: "pono\u010Di"
|
||||
},
|
||||
wide: {
|
||||
am: "dop.",
|
||||
pm: "pop.",
|
||||
midnight: "opolno\u010Di",
|
||||
noon: "opoldne",
|
||||
morning: "zjutraj",
|
||||
afternoon: "popoldan",
|
||||
evening: "zve\u010Der",
|
||||
night: "pono\u010Di"
|
||||
}
|
||||
};
|
||||
var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
|
||||
var number = Number(dirtyNumber);
|
||||
return number + ".";
|
||||
};
|
||||
var localize = {
|
||||
ordinalNumber: ordinalNumber,
|
||||
era: buildLocalizeFn({
|
||||
values: eraValues,
|
||||
defaultWidth: "wide"
|
||||
}),
|
||||
quarter: buildLocalizeFn({
|
||||
values: quarterValues,
|
||||
defaultWidth: "wide",
|
||||
argumentCallback: function argumentCallback(quarter) {return quarter - 1;}
|
||||
}),
|
||||
month: buildLocalizeFn({
|
||||
values: monthValues,
|
||||
defaultWidth: "wide"
|
||||
}),
|
||||
day: buildLocalizeFn({
|
||||
values: dayValues,
|
||||
defaultWidth: "wide"
|
||||
}),
|
||||
dayPeriod: buildLocalizeFn({
|
||||
values: dayPeriodValues,
|
||||
defaultWidth: "wide",
|
||||
formattingValues: formattingDayPeriodValues,
|
||||
defaultFormattingWidth: "wide"
|
||||
})
|
||||
};
|
||||
|
||||
// lib/locale/_lib/buildMatchFn.js
|
||||
function buildMatchFn(args) {
|
||||
return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
var width = options.width;
|
||||
var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
|
||||
var matchResult = string.match(matchPattern);
|
||||
if (!matchResult) {
|
||||
return null;
|
||||
}
|
||||
var matchedString = matchResult[0];
|
||||
var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
|
||||
var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);});
|
||||
var value;
|
||||
value = args.valueCallback ? args.valueCallback(key) : key;
|
||||
value = options.valueCallback ? options.valueCallback(value) : value;
|
||||
var rest = string.slice(matchedString.length);
|
||||
return { value: value, rest: rest };
|
||||
};
|
||||
}
|
||||
function findKey(object, predicate) {
|
||||
for (var key in object) {
|
||||
if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) {
|
||||
return key;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
function findIndex(array, predicate) {
|
||||
for (var key = 0; key < array.length; key++) {
|
||||
if (predicate(array[key])) {
|
||||
return key;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// lib/locale/_lib/buildMatchPatternFn.js
|
||||
function buildMatchPatternFn(args) {
|
||||
return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
var matchResult = string.match(args.matchPattern);
|
||||
if (!matchResult)
|
||||
return null;
|
||||
var matchedString = matchResult[0];
|
||||
var parseResult = string.match(args.parsePattern);
|
||||
if (!parseResult)
|
||||
return null;
|
||||
var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
|
||||
value = options.valueCallback ? options.valueCallback(value) : value;
|
||||
var rest = string.slice(matchedString.length);
|
||||
return { value: value, rest: rest };
|
||||
};
|
||||
}
|
||||
|
||||
// lib/locale/sl/_lib/match.js
|
||||
var matchOrdinalNumberPattern = /^(\d+)\./i;
|
||||
var parseOrdinalNumberPattern = /\d+/i;
|
||||
var matchEraPatterns = {
|
||||
abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i,
|
||||
wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i
|
||||
};
|
||||
var parseEraPatterns = {
|
||||
any: [/^pr/i, /^(po|na[sš]em)/i]
|
||||
};
|
||||
var matchQuarterPatterns = {
|
||||
narrow: /^[1234]/i,
|
||||
abbreviated: /^[1234]\.\s?[čc]et\.?/i,
|
||||
wide: /^[1234]\. [čc]etrtletje/i
|
||||
};
|
||||
var parseQuarterPatterns = {
|
||||
any: [/1/i, /2/i, /3/i, /4/i]
|
||||
};
|
||||
var matchMonthPatterns = {
|
||||
narrow: /^[jfmasond]/i,
|
||||
abbreviated: /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,
|
||||
wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i
|
||||
};
|
||||
var parseMonthPatterns = {
|
||||
narrow: [
|
||||
/^j/i,
|
||||
/^f/i,
|
||||
/^m/i,
|
||||
/^a/i,
|
||||
/^m/i,
|
||||
/^j/i,
|
||||
/^j/i,
|
||||
/^a/i,
|
||||
/^s/i,
|
||||
/^o/i,
|
||||
/^n/i,
|
||||
/^d/i],
|
||||
|
||||
abbreviated: [
|
||||
/^ja/i,
|
||||
/^fe/i,
|
||||
/^mar/i,
|
||||
/^ap/i,
|
||||
/^maj/i,
|
||||
/^jun/i,
|
||||
/^jul/i,
|
||||
/^av/i,
|
||||
/^s/i,
|
||||
/^o/i,
|
||||
/^n/i,
|
||||
/^d/i],
|
||||
|
||||
wide: [
|
||||
/^ja/i,
|
||||
/^fe/i,
|
||||
/^mar/i,
|
||||
/^ap/i,
|
||||
/^maj/i,
|
||||
/^jun/i,
|
||||
/^jul/i,
|
||||
/^av/i,
|
||||
/^s/i,
|
||||
/^o/i,
|
||||
/^n/i,
|
||||
/^d/i]
|
||||
|
||||
};
|
||||
var matchDayPatterns = {
|
||||
narrow: /^[nptsčc]/i,
|
||||
short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
||||
abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
||||
wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i
|
||||
};
|
||||
var parseDayPatterns = {
|
||||
narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cč]/i, /^p/i, /^s/i],
|
||||
any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cč]/i, /^pe/i, /^so/i]
|
||||
};
|
||||
var matchDayPeriodPatterns = {
|
||||
narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,
|
||||
any: /^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i
|
||||
};
|
||||
var parseDayPeriodPatterns = {
|
||||
narrow: {
|
||||
am: /^d/i,
|
||||
pm: /^p/i,
|
||||
midnight: /^24/i,
|
||||
noon: /^12/i,
|
||||
morning: /^(z?j)/i,
|
||||
afternoon: /^p/i,
|
||||
evening: /^(z?v)/i,
|
||||
night: /^(n|po)/i
|
||||
},
|
||||
any: {
|
||||
am: /^dop\./i,
|
||||
pm: /^pop\./i,
|
||||
midnight: /^o?poln/i,
|
||||
noon: /^o?pold/i,
|
||||
morning: /j/i,
|
||||
afternoon: /^pop\./i,
|
||||
evening: /^z?ve/i,
|
||||
night: /(po)?no/i
|
||||
}
|
||||
};
|
||||
var match = {
|
||||
ordinalNumber: buildMatchPatternFn({
|
||||
matchPattern: matchOrdinalNumberPattern,
|
||||
parsePattern: parseOrdinalNumberPattern,
|
||||
valueCallback: function valueCallback(value) {return parseInt(value, 10);}
|
||||
}),
|
||||
era: buildMatchFn({
|
||||
matchPatterns: matchEraPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseEraPatterns,
|
||||
defaultParseWidth: "any"
|
||||
}),
|
||||
quarter: buildMatchFn({
|
||||
matchPatterns: matchQuarterPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseQuarterPatterns,
|
||||
defaultParseWidth: "any",
|
||||
valueCallback: function valueCallback(index) {return index + 1;}
|
||||
}),
|
||||
month: buildMatchFn({
|
||||
matchPatterns: matchMonthPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseMonthPatterns,
|
||||
defaultParseWidth: "wide"
|
||||
}),
|
||||
day: buildMatchFn({
|
||||
matchPatterns: matchDayPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseDayPatterns,
|
||||
defaultParseWidth: "any"
|
||||
}),
|
||||
dayPeriod: buildMatchFn({
|
||||
matchPatterns: matchDayPeriodPatterns,
|
||||
defaultMatchWidth: "any",
|
||||
parsePatterns: parseDayPeriodPatterns,
|
||||
defaultParseWidth: "any"
|
||||
})
|
||||
};
|
||||
|
||||
// lib/locale/sl.js
|
||||
var sl = {
|
||||
code: "sl",
|
||||
formatDistance: formatDistance,
|
||||
formatLong: formatLong,
|
||||
formatRelative: formatRelative,
|
||||
localize: localize,
|
||||
match: match,
|
||||
options: {
|
||||
weekStartsOn: 1,
|
||||
firstWeekContainsDate: 1
|
||||
}
|
||||
};
|
||||
|
||||
// lib/locale/sl/cdn.js
|
||||
window.dateFns = _objectSpread(_objectSpread({},
|
||||
window.dateFns), {}, {
|
||||
locale: _objectSpread(_objectSpread({}, (_window$dateFns =
|
||||
window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, {
|
||||
sl: sl }) });
|
||||
|
||||
|
||||
|
||||
//# debugId=2E2BB7293682F67664756E2164756E21
|
||||
|
||||
//# sourceMappingURL=cdn.js.map
|
||||
})();
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"cdn.js","names":["__defProp","Object","defineProperty","__export","target","all","name","get","enumerable","configurable","set","newValue","isPluralType","val","one","undefined","getFormFromCount","count","formatDistanceLocale","lessThanXSeconds","present","two","few","other","past","future","xSeconds","halfAMinute","lessThanXMinutes","xMinutes","aboutXHours","xHours","xDays","aboutXWeeks","xWeeks","aboutXMonths","xMonths","aboutXYears","xYears","overXYears","almostXYears","formatDistance","token","options","result","tense","addSuffix","comparison","tokenValue","form","replace","String","buildFormatLongFn","args","arguments","length","width","defaultWidth","format","formats","dateFormats","full","long","medium","short","timeFormats","dateTimeFormats","formatLong","date","time","dateTime","formatRelativeLocale","lastWeek","day","getDay","yesterday","today","tomorrow","nextWeek","formatRelative","_baseDate","_options","buildLocalizeFn","value","context","valuesArray","formattingValues","defaultFormattingWidth","values","index","argumentCallback","eraValues","narrow","abbreviated","wide","quarterValues","monthValues","dayValues","dayPeriodValues","am","pm","midnight","noon","morning","afternoon","evening","night","formattingDayPeriodValues","ordinalNumber","dirtyNumber","number","Number","localize","era","quarter","month","dayPeriod","buildMatchFn","string","matchPattern","matchPatterns","defaultMatchWidth","matchResult","match","matchedString","parsePatterns","defaultParseWidth","key","Array","isArray","findIndex","pattern","test","findKey","valueCallback","rest","slice","object","predicate","prototype","hasOwnProperty","call","array","buildMatchPatternFn","parseResult","parsePattern","matchOrdinalNumberPattern","parseOrdinalNumberPattern","matchEraPatterns","parseEraPatterns","any","matchQuarterPatterns","parseQuarterPatterns","matchMonthPatterns","parseMonthPatterns","matchDayPatterns","parseDayPatterns","matchDayPeriodPatterns","parseDayPeriodPatterns","parseInt","sl","code","weekStartsOn","firstWeekContainsDate","window","dateFns","_objectSpread","locale","_window$dateFns"],"sources":["cdn.js"],"sourcesContent":["var __defProp = Object.defineProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, {\n get: all[name],\n enumerable: true,\n configurable: true,\n set: (newValue) => all[name] = () => newValue\n });\n};\n\n// lib/locale/sl/_lib/formatDistance.js\nfunction isPluralType(val) {\n return val.one !== undefined;\n}\nfunction getFormFromCount(count) {\n switch (count % 100) {\n case 1:\n return \"one\";\n case 2:\n return \"two\";\n case 3:\n case 4:\n return \"few\";\n default:\n return \"other\";\n }\n}\nvar formatDistanceLocale = {\n lessThanXSeconds: {\n present: {\n one: \"manj kot {{count}} sekunda\",\n two: \"manj kot {{count}} sekundi\",\n few: \"manj kot {{count}} sekunde\",\n other: \"manj kot {{count}} sekund\"\n },\n past: {\n one: \"manj kot {{count}} sekundo\",\n two: \"manj kot {{count}} sekundama\",\n few: \"manj kot {{count}} sekundami\",\n other: \"manj kot {{count}} sekundami\"\n },\n future: {\n one: \"manj kot {{count}} sekundo\",\n two: \"manj kot {{count}} sekundi\",\n few: \"manj kot {{count}} sekunde\",\n other: \"manj kot {{count}} sekund\"\n }\n },\n xSeconds: {\n present: {\n one: \"{{count}} sekunda\",\n two: \"{{count}} sekundi\",\n few: \"{{count}} sekunde\",\n other: \"{{count}} sekund\"\n },\n past: {\n one: \"{{count}} sekundo\",\n two: \"{{count}} sekundama\",\n few: \"{{count}} sekundami\",\n other: \"{{count}} sekundami\"\n },\n future: {\n one: \"{{count}} sekundo\",\n two: \"{{count}} sekundi\",\n few: \"{{count}} sekunde\",\n other: \"{{count}} sekund\"\n }\n },\n halfAMinute: \"pol minute\",\n lessThanXMinutes: {\n present: {\n one: \"manj kot {{count}} minuta\",\n two: \"manj kot {{count}} minuti\",\n few: \"manj kot {{count}} minute\",\n other: \"manj kot {{count}} minut\"\n },\n past: {\n one: \"manj kot {{count}} minuto\",\n two: \"manj kot {{count}} minutama\",\n few: \"manj kot {{count}} minutami\",\n other: \"manj kot {{count}} minutami\"\n },\n future: {\n one: \"manj kot {{count}} minuto\",\n two: \"manj kot {{count}} minuti\",\n few: \"manj kot {{count}} minute\",\n other: \"manj kot {{count}} minut\"\n }\n },\n xMinutes: {\n present: {\n one: \"{{count}} minuta\",\n two: \"{{count}} minuti\",\n few: \"{{count}} minute\",\n other: \"{{count}} minut\"\n },\n past: {\n one: \"{{count}} minuto\",\n two: \"{{count}} minutama\",\n few: \"{{count}} minutami\",\n other: \"{{count}} minutami\"\n },\n future: {\n one: \"{{count}} minuto\",\Line truncated
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
(()=>{var A;function I(G){return I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},I(G)}function x(G,H){var J=Object.keys(G);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(G);H&&(X=X.filter(function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable})),J.push.apply(J,X)}return J}function T(G){for(var H=1;H<arguments.length;H++){var J=arguments[H]!=null?arguments[H]:{};H%2?x(Object(J),!0).forEach(function(X){E(G,X,J[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(J)):x(Object(J)).forEach(function(X){Object.defineProperty(G,X,Object.getOwnPropertyDescriptor(J,X))})}return G}function E(G,H,J){if(H=N(H),H in G)Object.defineProperty(G,H,{value:J,enumerable:!0,configurable:!0,writable:!0});else G[H]=J;return G}function N(G){var H=z(G,"string");return I(H)=="symbol"?H:String(H)}function z(G,H){if(I(G)!="object"||!G)return G;var J=G[Symbol.toPrimitive];if(J!==void 0){var X=J.call(G,H||"default");if(I(X)!="object")return X;throw new TypeError("@@toPrimitive must return a primitive value.")}return(H==="string"?String:Number)(G)}var W=Object.defineProperty,YG=function G(H,J){for(var X in J)W(H,X,{get:J[X],enumerable:!0,configurable:!0,set:function Z(Y){return J[X]=function(){return Y}}})};function D(G){return G.one!==void 0}function S(G){switch(G%100){case 1:return"one";case 2:return"two";case 3:case 4:return"few";default:return"other"}}var M={lessThanXSeconds:{present:{one:"manj kot {{count}} sekunda",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"},past:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundama",few:"manj kot {{count}} sekundami",other:"manj kot {{count}} sekundami"},future:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"}},xSeconds:{present:{one:"{{count}} sekunda",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"},past:{one:"{{count}} sekundo",two:"{{count}} sekundama",few:"{{count}} sekundami",other:"{{count}} sekundami"},future:{one:"{{count}} sekundo",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"}},halfAMinute:"pol minute",lessThanXMinutes:{present:{one:"manj kot {{count}} minuta",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"},past:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minutama",few:"manj kot {{count}} minutami",other:"manj kot {{count}} minutami"},future:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"}},xMinutes:{present:{one:"{{count}} minuta",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"},past:{one:"{{count}} minuto",two:"{{count}} minutama",few:"{{count}} minutami",other:"{{count}} minutami"},future:{one:"{{count}} minuto",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"}},aboutXHours:{present:{one:"pribli\u017Eno {{count}} ura",two:"pribli\u017Eno {{count}} uri",few:"pribli\u017Eno {{count}} ure",other:"pribli\u017Eno {{count}} ur"},past:{one:"pribli\u017Eno {{count}} uro",two:"pribli\u017Eno {{count}} urama",few:"pribli\u017Eno {{count}} urami",other:"pribli\u017Eno {{count}} urami"},future:{one:"pribli\u017Eno {{count}} uro",two:"pribli\u017Eno {{count}} uri",few:"pribli\u017Eno {{count}} ure",other:"pribli\u017Eno {{count}} ur"}},xHours:{present:{one:"{{count}} ura",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"},past:{one:"{{count}} uro",two:"{{count}} urama",few:"{{count}} urami",other:"{{count}} urami"},future:{one:"{{count}} uro",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"}},xDays:{present:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"},past:{one:"{{count}} dnem",two:"{{count}} dnevoma",few:"{{count}} dnevi",other:"{{count}} dnevi"},future:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"}},aboutXWeeks:{one:"pribli\u017Eno {{count}} teden",two:"pribli\u017Eno {{count}} tedna",few:"pribli\u017Eno {{count}} tedne",other:"pribli\u017Eno {{count}} tednov"},xWeeks:{one:"{{count}} teden",two:"{{count}} tedna",few:"{{count}} tedne",other:"{{count}} tednov"},aboutXMonths:{present:{one:"pribli\u017Eno {{count}} mesec",two:"pribli\u017Eno {{count}} meseca",few:"pribli\u017Eno {{count}} mesece",other:"pribli\u017Eno {{count}} mesecev"},past:{one:"pribli\u017Eno {{count}} mesecem",two:"pribli\u017Eno {{count}} mesecema",few:"pribli\u017Eno {{count}} meseci",other:"pribli\u017Eno {{count}} meseci"},future:{one:"pribli\u017Eno {{count}} mesec",two:"pribli\u017Eno {{count}} meseca",few:"pribli\u017Eno {{count}} mesece",other:"pribli\u017Eno {{count}} mesecev"}},xMonths:{present:{one:"{Line truncated
|
||||
|
||||
//# debugId=102152910A5BC61E64756E2164756E21
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["lib/locale/sl/cdn.js"],
|
||||
"sourcesContent": [
|
||||
"(() => {\nvar _window$dateFns;function _typeof(o) {\"@babel/helpers - typeof\";return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(obj, key, value) {key = _toPropertyKey(key);if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toPropertyKey(t) {var i = _toPrimitive(t, \"string\");return \"symbol\" == _typeof(i) ? i : String(i);}function _toPrimitive(t, r) {if (\"object\" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || \"default\");if (\"object\" != _typeof(i)) return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\");}return (\"string\" === r ? String : Number)(t);}var __defProp = Object.defineProperty;\nvar __export = function __export(target, all) {\n for (var name in all)\n __defProp(target, name, {\n get: all[name],\n enumerable: true,\n configurable: true,\n set: function set(newValue) {return all[name] = function () {return newValue;};}\n });\n};\n\n// lib/locale/sl/_lib/formatDistance.js\nfunction isPluralType(val) {\n return val.one !== undefined;\n}\nfunction getFormFromCount(count) {\n switch (count % 100) {\n case 1:\n return \"one\";\n case 2:\n return \"two\";\n case 3:\n case 4:\n return \"few\";\n default:\n return \"other\";\n }\n}\nvar formatDistanceLocale = {\n lessThanXSeconds: {\n present: {\n one: \"manj kot {{count}} sekunda\",\n two: \"manj kot {{count}} sekundi\",\n few: \"manj kot {{count}} sekunde\",\n other: \"manj kot {{count}} sekund\"\n },\n past: {\n one: \"manj kot {{count}} sekundo\",\n two: \"manj kot {{count}} sekundama\",\n few: \"manj kot {{count}} sekundami\",\n other: \"manj kot {{count}} sekundami\"\n },\n future: {\n one: \"manj kot {{count}} sekundo\",\n two: \"manj kot {{count}} sekundi\",\n few: \"manj kot {{count}} sekunde\",\n other: \"manj kot {{count}} sekund\"\n }\n },\n xSeconds: {\n present: {\n one: \"{{count}} sekunda\",\n two: \"{{count}} sekundi\",\n few: \"{{count}} sekunde\",\n other: \"{{count}} sekund\"\n },\n past: {\n one: \"{{count}} sekundo\",\n two: \"{{count}} sekundama\",\n few: \"{{count}} sekundami\",\n other: \"{{count}} sekundami\"\n },\n future: {\n one: \"{{count}} sekundo\",\n two: \"{{count}} sekundi\",\n few: \"{{count}} sekunde\",\n other: \"{{count}} sekund\"\n }\n },\n halfAMinute: \"pol minute\",\n lessThanXMinutes: {\n present: {\n one: \"manj kot {{count}} minuta\",\n two: \"manj kot {{count}} minuti\",\n few: \"manj kot {{count}} minute\",\n other: \"manj kot {{count}} minut\"\n },\n past: {\n one: \"manj kot {{count}} minuto\",\n two: \"manj kot {{count}} minutama\",\n few: \"manj kot {{count}} minutami\",\n other: \"manj kot {{count}} minutami\"\n },\n future: {\n one: \"manj kot {{count}} minuto\",\n two: \"manj kot {{count}} minuti\",\n few: \"manj kot {{count}} minute\",\n other: \"manj kot {{count}} minut\"\n }\n },\n xMinutes: {\n present: {\n one: \"{{count}} minuta\",\n two: \"{{count}} minuti\",\n few: \"{{count}} minute\",\n other: \"{{count}} minut\"\n },\n past: {\n one: \"{{count}} minuto\",\n two: \"{{count}} minutama\",\n few: \"{{count}} minutami\",\n other: \"{{count}} minutami\"\n },\n future: {\n one: \"{{count}} minuto\",\n two: \"{{count}} minuti\",\n few: \"{{count}} minute\",\n other: \"{{count}} minut\"\n }\n },\n aboutXHours: {\n present: {\n one: \"pribli\\u017Eno {{count}} ura\",\n two: \"pribli\\u017Eno {{count}} uri\",\n few: \"pribli\\u017Eno {{count}} ure\",\n other: \"pribli\\u017Eno {{count}} ur\"\n },\n past: {\n one: \"pribli\\u017Eno {{count}} uro\",\n two: \"pribli\\u017Eno {{count}} uraLine truncated
|
||||
],
|
||||
"mappings": "AAAA,CAAC,IAAM,CACP,IAAI,EAAgB,SAAS,CAAO,CAAC,EAAG,CAA2B,OAAO,SAA+B,QAArB,mBAAkD,OAAO,UAA1B,iBAA8C,CAAC,EAAG,CAAC,cAAc,WAAe,CAAC,EAAG,CAAC,OAAO,UAA0B,QAArB,YAA+B,EAAE,cAAgB,QAAU,IAAM,OAAO,UAAY,gBAAkB,GAAK,EAAQ,CAAC,EAAG,SAAS,CAAO,CAAC,EAAG,EAAG,CAAC,IAAI,EAAI,OAAO,KAAK,CAAC,EAAE,GAAI,OAAO,sBAAuB,CAAC,IAAI,EAAI,OAAO,sBAAsB,CAAC,EAAE,IAAM,EAAI,EAAE,eAAgB,CAAC,EAAG,CAAC,OAAO,OAAO,yBAAyB,EAAG,CAAC,EAAE,WAAY,GAAI,EAAE,KAAK,MAAM,EAAG,CAAC,EAAG,OAAO,EAAG,SAAS,CAAa,CAAC,EAAG,CAAC,QAAS,EAAI,EAAG,EAAI,UAAU,OAAQ,IAAK,CAAC,IAAI,EAAY,UAAU,IAAlB,KAAuB,UAAU,GAAK,CAAC,EAAE,EAAI,EAAI,EAAQ,OAAO,CAAC,EAAG,EAAE,EAAE,gBAAiB,CAAC,EAAG,CAAC,EAAgB,EAAG,EAAG,EAAE,EAAE,EAAG,EAAI,OAAO,0BAA4B,OAAO,iBAAiB,EAAG,OAAO,0BAA0B,CAAC,CAAC,EAAI,EAAQ,OAAO,CAAC,CAAC,EAAE,gBAAiB,CAAC,EAAG,CAAC,OAAO,eAAe,EAAG,EAAG,OAAO,yBAAyB,EAAG,CAAC,CAAC,EAAG,EAAG,OAAO,EAAG,SAAS,CAAe,CAAC,EAAK,EAAK,EAAO,CAA2B,GAA1B,EAAM,EAAe,CAAG,EAAM,KAAO,EAAM,OAAO,eAAe,EAAK,EAAK,CAAE,MAAO,EAAO,WAAY,GAAM,aAAc,GAAM,SAAU,EAAK,CAAC,MAAU,GAAI,GAAO,EAAO,OAAO,EAAK,SAAS,CAAc,CAAC,EAAG,CAAC,IAAI,EAAI,EAAa,EAAG,QAAQ,EAAE,OAAmB,EAAQ,CAAC,GAArB,SAAyB,EAAI,OAAO,CAAC,EAAG,SAAS,CAAY,CAAC,EAAG,EAAG,CAAC,GAAgB,EAAQ,CAAC,GAArB,WAA2B,EAAG,OAAO,EAAE,IAAI,EAAI,EAAE,OAAO,aAAa,GAAe,IAAN,OAAS,CAAC,IAAI,EAAI,EAAE,KAAK,EAAG,GAAK,SAAS,EAAE,GAAgB,EAAQ,CAAC,GAArB,SAAwB,OAAO,EAAE,MAAM,IAAI,UAAU,8CAA8C,EAAG,OAAqB,IAAb,SAAiB,OAAS,QAAQ,CAAC,EAAG,IAAI,EAAY,OAAO,eACroD,YAAoB,CAAQ,CAAC,EAAQ,EAAK,CAC5C,QAAS,KAAQ,EACjB,EAAU,EAAQ,EAAM,CACtB,IAAK,EAAI,GACT,WAAY,GACZ,aAAc,GACd,aAAc,CAAG,CAAC,EAAU,CAAC,OAAO,EAAI,WAAiB,EAAG,CAAC,OAAO,GACtE,CAAC,GAIH,SAAS,CAAY,CAAC,EAAK,CACzB,OAAO,EAAI,MAAQ,OAErB,SAAS,CAAgB,CAAC,EAAO,CAC/B,OAAQ,EAAQ,SACT,GACH,MAAO,UACJ,GACH,MAAO,UACJ,OACA,GACH,MAAO,cAEP,MAAO,SAGb,IAAI,EAAuB,CACzB,iBAAkB,CAChB,QAAS,CACP,IAAK,6BACL,IAAK,6BACL,IAAK,6BACL,MAAO,2BACT,EACA,KAAM,CACJ,IAAK,6BACL,IAAK,+BACL,IAAK,+BACL,MAAO,8BACT,EACA,OAAQ,CACN,IAAK,6BACL,IAAK,6BACL,IAAK,6BACL,MAAO,2BACT,CACF,EACA,SAAU,CACR,QAAS,CACP,IAAK,oBACL,IAAK,oBACL,IAAK,oBACL,MAAO,kBACT,EACA,KAAM,CACJ,IAAK,oBACL,IAAK,sBACL,IAAK,sBACL,MAAO,qBACT,EACA,OAAQ,CACN,IAAK,oBACL,IAAK,oBACL,IAAK,oBACL,MAAO,kBACT,CACF,EACA,YAAa,aACb,iBAAkB,CAChB,QAAS,CACP,IAAK,4BACL,IAAK,4BACL,IAAK,4BACL,MAAO,0BACT,EACA,KAAM,CACJ,IAAK,4BACL,IAAK,8BACL,IAAK,8BACL,MAAO,6BACT,EACA,OAAQ,CACN,IAAK,4BACL,IAAK,4BACL,IAAK,4BACL,MAAO,0BACT,CACF,EACA,SAAU,CACR,QAAS,CACP,IAAK,mBACL,IAAK,mBACL,IAAK,mBACL,MAAO,iBACT,EACA,KAAM,CACJ,IAAK,mBACL,IAAK,qBACL,IAAK,qBACL,MAAO,oBACT,EACA,OAAQ,CACN,IAAK,mBACL,IAAK,mBACL,IAAK,mBACL,MAAO,iBACT,CACF,EACA,YAAa,CACX,QAAS,CACP,IAAK,+BACL,IAAK,+BACL,IAAK,+BACL,MAAO,6BACT,EACA,KAAM,CACJ,IAAK,+BACL,IAAK,iCACL,IAAK,iCACL,MAAO,gCACT,EACA,OAAQ,CACN,IAAK,+BACL,IAAK,+BACL,IAAK,+BACL,MAAO,6BACT,CACF,EACA,OAAQ,CACN,QAAS,CACP,IAAK,gBACL,IAAK,gBACL,IAAK,gBACL,MAAO,cACT,EACA,KAAM,CACJ,IAAK,gBACL,IAAK,kBACL,IAAK,kBACL,MAAO,iBACT,EACA,OAAQ,CACN,IAAK,gBACL,IAAK,gBACL,IAAK,gBACL,MAAO,cACT,CACF,EACA,MAAO,CACL,QAAS,CACP,IAAK,gBACL,IAAK,gBACL,IAAK,gBACL,MAAO,eACT,EACA,KAAM,CACJ,IAAK,iBACL,IAAK,oBACL,IAAK,kBACL,MAAO,iBACT,EACA,OAAQ,CACN,IAAK,gBACL,IAAK,gBACL,IAAK,gBACL,MAAO,eACT,CACF,EACA,YAAa,CACX,IAAK,iCACL,IAAK,iCACL,IAAK,iCACL,MAAO,iCACT,EACA,OAAQ,CACN,IAAK,kBACL,IAAK,kBACL,IAAK,kBACL,MAAO,kBACT,EACA,aAAc,CACZ,QAAS,CACP,IAAK,iCACL,IAAK,kCACL,IAAK,kCACL,MAAO,kCACT,EACA,KAAM,CACJ,IAAK,mCACL,IAAK,oCACL,IAAK,kCACL,MAAO,iCACT,EACA,OAAQ,CACN,IAAK,iCACL,IAAK,kCACL,IAAK,kCACL,MAAO,kCACT,CACF,EACA,QAAS,CACP,QAAS,CACP,IAAK,kBACL,IAAK,mBACL,IAAK,mBACL,MAAO,mBACT,EACA,KAAM,CACJ,IAAK,oBACL,IAAK,qBACL,IAAK,mBACL,MAAO,kBACT,EACA,OAAQ,CACN,IAAK,kBACL,IAAK,mBACL,IAAK,mBACL,MAAO,mBACT,CACF,EACA,YAAa,CACX,QAAS,CACP,IAAK,gCACL,IAAK,gCACL,IAAK,gCACL,MAAO,8BACT,EACA,KAAM,CACJ,IAAK,iCACL,IAAK,kCACL,IAAK,gCACL,MAAO,+BACT,EACA,OAAQ,CACN,IAAK,gCACL,IAAK,gCACL,IAAK,gCACL,MAAO,8BACT,CACF,EACA,OAAQ,CACN,QAAS,CACP,IAAK,iBACL,IAAK,iBACL,IAAK,iBACL,MAAO,eACT,EACA,KAAM,CACJ,IAAK,kBACL,IAAK,mBACL,IAAK,iBACL,MAAO,gBACT,EACA,OAAQ,CACN,IAAK,iBACL,IAAK,iBACL,IAAK,iBACL,MAAO,eACT,CACF,EACA,WAAY,CACV,QAAS,CACP,IAAK,8BACL,IAAK,8BACL,IAAK,8BACL,MAAO,4BACT,EACA,KAAM,CACJ,IAAK,+BACL,IAAK,gCACL,IAAK,8BACL,MAAO,6BACT,EACA,OAAQ,CACN,IAAK,8BACL,IAAK,8BACL,IAAK,8BACL,MAAO,4BACT,CACF,EACA,aAAc,CACZ,QAAS,CACP,IAAK,wBACL,IAAK,wBACL,IAAK,wBACL,MAAO,sBACT,EACA,KAAM,CACJ,IAAK,yBACL,IAAK,0BACL,IAAK,wBACL,MAAO,uBACT,EACA,OAAQ,CACN,IAAK,wBACL,IAAK,wBACL,IAAK,wBACL,MAAO,sBACT,CACF,CACF,EACI,WAA0B,CAAc,CAAC,EAAO,EAAO,EAAS,CAClE,IAAI,EAAS,GACT,EAAQ,UACZ,GAAI,IAAY,MAAQ,IAAiB,QAAK,EAAQ,UACpD,GAAI,EAAQ,YAAc,EAAQ,WAAa,EAC7C,EAAQ,SACR,EAAS,gBAET,GAAQ,OACR,EAAS,QAGb,IAAI,EAAa,EAAqB,GACtC,UAAW,IAAe,SACxB,GAAU,MACL,CACL,IAAI,EAAO,EAAiB,CAAK,EACjC,GAAI,EAAa,CAAU,EACzB,GAAU,EAAW,GAAM,QAAQ,YAAa,OAAO,CAAK,CAAC,MAE7D,IAAU,EAAW,GAAO,GAAM,QAAQ,YAAa,OAAO,CAAK,CAAC,EAGxE,OAAO,GAIT,SAAS,CAAiB,CAAC,EAAM,CAC/B,eAAgB,EAAG,CAAC,IAAI,EAAU,UAAU,OAAS,GAAK,UAAU,KAAO,OAAY,UAAU,GAAK,CAAC,EACjG,EAAQ,EAAQ,MAAQ,OAAO,EAAQ,KAAK,EAAI,EAAK,aACrD,EAAS,EAAK,QAAQ,IAAU,EAAK,QAAQ,EAAK,cACtD,OAAO,GAKX,IAAI,EAAc,CAChB,KAAM,mBACN,KAAM,aACN,OAAQ,WALine truncated
|
||||
"debugId": "102152910A5BC61E64756E2164756E21",
|
||||
"names": []
|
||||
}
|
||||
Reference in new issue
Block a user