Files
klz-cables.com/.pnpm-store/v10/files/b2/b3982de68c853b4248dc90dc469ba0663f6799c38b4f29e11c496648b6fe21ea63a304b817acc13bdbd0c50663d9f3fdc618ed8517a70491fcf5b1a90831da
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

106 lines
2.0 KiB
Plaintext

"use strict";
exports.formatDistance = void 0;
const formatDistanceLocale = {
lessThanXSeconds: {
one: "1 сониядан кам",
other: "{{count}} сониядан кам",
},
xSeconds: {
one: "1 сония",
other: "{{count}} сония",
},
halfAMinute: "ярим дақиқа",
lessThanXMinutes: {
one: "1 дақиқадан кам",
other: "{{count}} дақиқадан кам",
},
xMinutes: {
one: "1 дақиқа",
other: "{{count}} дақиқа",
},
aboutXHours: {
one: "тахминан 1 соат",
other: "тахминан {{count}} соат",
},
xHours: {
one: "1 соат",
other: "{{count}} соат",
},
xDays: {
one: "1 кун",
other: "{{count}} кун",
},
aboutXWeeks: {
one: "тахминан 1 хафта",
other: "тахминан {{count}} хафта",
},
xWeeks: {
one: "1 хафта",
other: "{{count}} хафта",
},
aboutXMonths: {
one: "тахминан 1 ой",
other: "тахминан {{count}} ой",
},
xMonths: {
one: "1 ой",
other: "{{count}} ой",
},
aboutXYears: {
one: "тахминан 1 йил",
other: "тахминан {{count}} йил",
},
xYears: {
one: "1 йил",
other: "{{count}} йил",
},
overXYears: {
one: "1 йилдан кўп",
other: "{{count}} йилдан кўп",
},
almostXYears: {
one: "деярли 1 йил",
other: "деярли {{count}} йил",
},
};
const formatDistance = (token, count, options) => {
let result;
const tokenValue = formatDistanceLocale[token];
if (typeof tokenValue === "string") {
result = tokenValue;
} else if (count === 1) {
result = tokenValue.one;
} else {
result = tokenValue.other.replace("{{count}}", String(count));
}
if (options?.addSuffix) {
if (options.comparison && options.comparison > 0) {
return result + "дан кейин";
} else {
return result + " олдин";
}
}
return result;
};
exports.formatDistance = formatDistance;