Files
klz-cables.com/.pnpm-store/v10/files/e7/a2c204285f74b02cd6e7da81a277212a808c75395492c766c91498a4c9928b577c57f897aaf44b3495e4887017932d0bcb86709052005bcb98f3b891ccf8b2
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

193 lines
3.6 KiB
Plaintext

import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.mjs";
const eraValues = {
narrow: ["př. n. l.", "n. l."],
abbreviated: ["př. n. l.", "n. l."],
wide: ["před naším letopočtem", "našeho letopočtu"],
};
const quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["1. čtvrtletí", "2. čtvrtletí", "3. čtvrtletí", "4. čtvrtletí"],
wide: ["1. čtvrtletí", "2. čtvrtletí", "3. čtvrtletí", "4. čtvrtletí"],
};
const monthValues = {
narrow: ["L", "Ú", "B", "D", "K", "Č", "Č", "S", "Z", "Ř", "L", "P"],
abbreviated: [
"led",
"úno",
"bře",
"dub",
"kvě",
"čvn",
"čvc",
"srp",
"zář",
"říj",
"lis",
"pro",
],
wide: [
"leden",
"únor",
"březen",
"duben",
"květen",
"červen",
"červenec",
"srpen",
"září",
"říjen",
"listopad",
"prosinec",
],
};
const formattingMonthValues = {
narrow: ["L", "Ú", "B", "D", "K", "Č", "Č", "S", "Z", "Ř", "L", "P"],
abbreviated: [
"led",
"úno",
"bře",
"dub",
"kvě",
"čvn",
"čvc",
"srp",
"zář",
"říj",
"lis",
"pro",
],
wide: [
"ledna",
"února",
"března",
"dubna",
"května",
"června",
"července",
"srpna",
"září",
"října",
"listopadu",
"prosince",
],
};
const dayValues = {
narrow: ["ne", "po", "út", "st", "čt", "pá", "so"],
short: ["ne", "po", "út", "st", "čt", "pá", "so"],
abbreviated: ["ned", "pon", "úte", "stř", "čtv", "pát", "sob"],
wide: ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"],
};
const dayPeriodValues = {
narrow: {
am: "dop.",
pm: "odp.",
midnight: "půlnoc",
noon: "poledne",
morning: "ráno",
afternoon: "odpoledne",
evening: "večer",
night: "noc",
},
abbreviated: {
am: "dop.",
pm: "odp.",
midnight: "půlnoc",
noon: "poledne",
morning: "ráno",
afternoon: "odpoledne",
evening: "večer",
night: "noc",
},
wide: {
am: "dopoledne",
pm: "odpoledne",
midnight: "půlnoc",
noon: "poledne",
morning: "ráno",
afternoon: "odpoledne",
evening: "večer",
night: "noc",
},
};
const formattingDayPeriodValues = {
narrow: {
am: "dop.",
pm: "odp.",
midnight: "půlnoc",
noon: "poledne",
morning: "ráno",
afternoon: "odpoledne",
evening: "večer",
night: "noc",
},
abbreviated: {
am: "dop.",
pm: "odp.",
midnight: "půlnoc",
noon: "poledne",
morning: "ráno",
afternoon: "odpoledne",
evening: "večer",
night: "noc",
},
wide: {
am: "dopoledne",
pm: "odpoledne",
midnight: "půlnoc",
noon: "poledne",
morning: "ráno",
afternoon: "odpoledne",
evening: "večer",
night: "noc",
},
};
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",
formattingValues: formattingMonthValues,
defaultFormattingWidth: "wide",
}),
day: buildLocalizeFn({
values: dayValues,
defaultWidth: "wide",
}),
dayPeriod: buildLocalizeFn({
values: dayPeriodValues,
defaultWidth: "wide",
formattingValues: formattingDayPeriodValues,
defaultFormattingWidth: "wide",
}),
};