init 3
This commit is contained in:
39
node_modules/date-fns/locale/bs/_lib/formatLong.mjs
generated
vendored
Normal file
39
node_modules/date-fns/locale/bs/_lib/formatLong.mjs
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.mjs";
|
||||
|
||||
const dateFormats = {
|
||||
full: "EEEE, d. MMMM yyyy.",
|
||||
long: "d. MMMM yyyy.",
|
||||
medium: "d. MMM yy.",
|
||||
short: "dd. 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}} 'u' {{time}}",
|
||||
long: "{{date}} 'u' {{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",
|
||||
}),
|
||||
};
|
||||
44
node_modules/date-fns/locale/bs/_lib/formatRelative.js
generated
vendored
Normal file
44
node_modules/date-fns/locale/bs/_lib/formatRelative.js
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
"use strict";
|
||||
exports.formatRelative = void 0;
|
||||
|
||||
const formatRelativeLocale = {
|
||||
lastWeek: (date) => {
|
||||
switch (date.getDay()) {
|
||||
case 0:
|
||||
return "'prošle nedjelje u' p";
|
||||
case 3:
|
||||
return "'prošle srijede u' p";
|
||||
case 6:
|
||||
return "'prošle subote u' p";
|
||||
default:
|
||||
return "'prošli' EEEE 'u' p";
|
||||
}
|
||||
},
|
||||
yesterday: "'juče u' p",
|
||||
today: "'danas u' p",
|
||||
tomorrow: "'sutra u' p",
|
||||
nextWeek: (date) => {
|
||||
switch (date.getDay()) {
|
||||
case 0:
|
||||
return "'sljedeće nedjelje u' p";
|
||||
case 3:
|
||||
return "'sljedeću srijedu u' p";
|
||||
case 6:
|
||||
return "'sljedeću subotu u' p";
|
||||
default:
|
||||
return "'sljedeći' EEEE 'u' 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;
|
||||
229
node_modules/date-fns/locale/bs/_lib/localize.js
generated
vendored
Normal file
229
node_modules/date-fns/locale/bs/_lib/localize.js
generated
vendored
Normal file
@@ -0,0 +1,229 @@
|
||||
"use strict";
|
||||
exports.localize = void 0;
|
||||
var _index = require("../../_lib/buildLocalizeFn.js");
|
||||
|
||||
const eraValues = {
|
||||
narrow: ["pr.n.e.", "AD"],
|
||||
abbreviated: ["pr. Hr.", "po. Hr."],
|
||||
wide: ["Prije Hrista", "Poslije Hrista"],
|
||||
};
|
||||
|
||||
const quarterValues = {
|
||||
narrow: ["1.", "2.", "3.", "4."],
|
||||
abbreviated: ["1. kv.", "2. kv.", "3. kv.", "4. kv."],
|
||||
wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"],
|
||||
};
|
||||
|
||||
const monthValues = {
|
||||
narrow: [
|
||||
"1.",
|
||||
"2.",
|
||||
"3.",
|
||||
"4.",
|
||||
"5.",
|
||||
"6.",
|
||||
"7.",
|
||||
"8.",
|
||||
"9.",
|
||||
"10.",
|
||||
"11.",
|
||||
"12.",
|
||||
],
|
||||
|
||||
abbreviated: [
|
||||
"jan",
|
||||
"feb",
|
||||
"mar",
|
||||
"apr",
|
||||
"maj",
|
||||
"jun",
|
||||
"jul",
|
||||
"avg",
|
||||
"sep",
|
||||
"okt",
|
||||
"nov",
|
||||
"dec",
|
||||
],
|
||||
|
||||
wide: [
|
||||
"januar",
|
||||
"februar",
|
||||
"mart",
|
||||
"april",
|
||||
"maj",
|
||||
"juni",
|
||||
"juli",
|
||||
"avgust",
|
||||
"septembar",
|
||||
"oktobar",
|
||||
"novembar",
|
||||
"decembar",
|
||||
],
|
||||
};
|
||||
|
||||
const formattingMonthValues = {
|
||||
narrow: [
|
||||
"1.",
|
||||
"2.",
|
||||
"3.",
|
||||
"4.",
|
||||
"5.",
|
||||
"6.",
|
||||
"7.",
|
||||
"8.",
|
||||
"9.",
|
||||
"10.",
|
||||
"11.",
|
||||
"12.",
|
||||
],
|
||||
|
||||
abbreviated: [
|
||||
"jan",
|
||||
"feb",
|
||||
"mar",
|
||||
"apr",
|
||||
"maj",
|
||||
"jun",
|
||||
"jul",
|
||||
"avg",
|
||||
"sep",
|
||||
"okt",
|
||||
"nov",
|
||||
"dec",
|
||||
],
|
||||
|
||||
wide: [
|
||||
"januar",
|
||||
"februar",
|
||||
"mart",
|
||||
"april",
|
||||
"maj",
|
||||
"juni",
|
||||
"juli",
|
||||
"avgust",
|
||||
"septembar",
|
||||
"oktobar",
|
||||
"novembar",
|
||||
"decembar",
|
||||
],
|
||||
};
|
||||
|
||||
const dayValues = {
|
||||
narrow: ["N", "P", "U", "S", "Č", "P", "S"],
|
||||
short: ["ned", "pon", "uto", "sre", "čet", "pet", "sub"],
|
||||
abbreviated: ["ned", "pon", "uto", "sre", "čet", "pet", "sub"],
|
||||
wide: [
|
||||
"nedjelja",
|
||||
"ponedjeljak",
|
||||
"utorak",
|
||||
"srijeda",
|
||||
"četvrtak",
|
||||
"petak",
|
||||
"subota",
|
||||
],
|
||||
};
|
||||
|
||||
const dayPeriodValues = {
|
||||
narrow: {
|
||||
am: "AM",
|
||||
pm: "PM",
|
||||
midnight: "ponoć",
|
||||
noon: "podne",
|
||||
morning: "ujutru",
|
||||
afternoon: "popodne",
|
||||
evening: "uveče",
|
||||
night: "noću",
|
||||
},
|
||||
abbreviated: {
|
||||
am: "AM",
|
||||
pm: "PM",
|
||||
midnight: "ponoć",
|
||||
noon: "podne",
|
||||
morning: "ujutru",
|
||||
afternoon: "popodne",
|
||||
evening: "uveče",
|
||||
night: "noću",
|
||||
},
|
||||
wide: {
|
||||
am: "AM",
|
||||
pm: "PM",
|
||||
midnight: "ponoć",
|
||||
noon: "podne",
|
||||
morning: "ujutru",
|
||||
afternoon: "poslije podne",
|
||||
evening: "uveče",
|
||||
night: "noću",
|
||||
},
|
||||
};
|
||||
|
||||
const formattingDayPeriodValues = {
|
||||
narrow: {
|
||||
am: "AM",
|
||||
pm: "PM",
|
||||
midnight: "ponoć",
|
||||
noon: "podne",
|
||||
morning: "ujutru",
|
||||
afternoon: "popodne",
|
||||
evening: "uveče",
|
||||
night: "noću",
|
||||
},
|
||||
abbreviated: {
|
||||
am: "AM",
|
||||
pm: "PM",
|
||||
midnight: "ponoć",
|
||||
noon: "podne",
|
||||
morning: "ujutru",
|
||||
afternoon: "popodne",
|
||||
evening: "uveče",
|
||||
night: "noću",
|
||||
},
|
||||
wide: {
|
||||
am: "AM",
|
||||
pm: "PM",
|
||||
midnight: "ponoć",
|
||||
noon: "podne",
|
||||
morning: "ujutru",
|
||||
afternoon: "poslije podne",
|
||||
evening: "uveče",
|
||||
night: "noću",
|
||||
},
|
||||
};
|
||||
|
||||
const ordinalNumber = (dirtyNumber, _options) => {
|
||||
const number = Number(dirtyNumber);
|
||||
return String(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",
|
||||
formattingValues: formattingMonthValues,
|
||||
defaultFormattingWidth: "wide",
|
||||
}),
|
||||
|
||||
day: (0, _index.buildLocalizeFn)({
|
||||
values: dayValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
dayPeriod: (0, _index.buildLocalizeFn)({
|
||||
values: dayPeriodValues,
|
||||
defaultWidth: "wide",
|
||||
formattingValues: formattingDayPeriodValues,
|
||||
defaultFormattingWidth: "wide",
|
||||
}),
|
||||
});
|
||||
Reference in New Issue
Block a user