Files
klz-cables.com/.pnpm-store/v10/files/79/1fadedefb3dca5e9ba1a4781dc7e29dd0b554f2725c771657c1998d77db066a33d9f8d3228ffbd8aa8e3acc4139f3f097c8587e3273ae36d1efab5e5ac2f46
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

124 lines
2.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js";
const eraValues = {
narrow: ["М.А", "М"],
abbreviated: ["М.А", "М"],
wide: ["Милоддан Аввалги", "Милодий"],
};
const quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["1-чор.", "2-чор.", "3-чор.", "4-чор."],
wide: ["1-чорак", "2-чорак", "3-чорак", "4-чорак"],
};
const monthValues = {
narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"],
abbreviated: [
"янв",
"фев",
"мар",
"апр",
"май",
"июн",
"июл",
"авг",
"сен",
"окт",
"ноя",
"дек",
],
wide: [
"январ",
"феврал",
"март",
"апрел",
"май",
"июн",
"июл",
"август",
"сентабр",
"октабр",
"ноябр",
"декабр",
],
};
const dayValues = {
narrow: ["Я", "Д", "С", "Ч", "П", "Ж", "Ш"],
short: ["як", "ду", "се", "чо", "па", "жу", "ша"],
abbreviated: ["якш", "душ", "сеш", "чор", "пай", "жум", "шан"],
wide: [
"якшанба",
"душанба",
"сешанба",
"чоршанба",
"пайшанба",
"жума",
"шанба",
],
};
const dayPeriodValues = {
any: {
am: "П.О.",
pm: "П.К.",
midnight: "ярим тун",
noon: "пешин",
morning: "эрталаб",
afternoon: "пешиндан кейин",
evening: "кечаси",
night: "тун",
},
};
const formattingDayPeriodValues = {
any: {
am: "П.О.",
pm: "П.К.",
midnight: "ярим тун",
noon: "пешин",
morning: "эрталаб",
afternoon: "пешиндан кейин",
evening: "кечаси",
night: "тун",
},
};
const ordinalNumber = (dirtyNumber, _options) => {
return String(dirtyNumber);
};
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: "any",
formattingValues: formattingDayPeriodValues,
defaultFormattingWidth: "any",
}),
};