Files
klz-cables.com/.pnpm-store/v10/files/f7/c440481ef1946e2de546bb94d568f0ee00a7ba6e8c22b7bb36cdc59d0385eb0202cd4941d62489bc69c8a3f79c7e341ff87a28fab0a7f0e0f368b068cdfc18
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
1.8 KiB
Plaintext

"use strict";
exports.formatDistance = void 0;
const formatDistanceLocale = {
lessThanXSeconds: {
one: "sekunddan kam",
other: "{{count}} sekunddan kam",
},
xSeconds: {
one: "1 sekund",
other: "{{count}} sekund",
},
halfAMinute: "yarim minut",
lessThanXMinutes: {
one: "bir minutdan kam",
other: "{{count}} minutdan kam",
},
xMinutes: {
one: "1 minut",
other: "{{count}} minut",
},
aboutXHours: {
one: "tahminan 1 soat",
other: "tahminan {{count}} soat",
},
xHours: {
one: "1 soat",
other: "{{count}} soat",
},
xDays: {
one: "1 kun",
other: "{{count}} kun",
},
aboutXWeeks: {
one: "tahminan 1 hafta",
other: "tahminan {{count}} hafta",
},
xWeeks: {
one: "1 hafta",
other: "{{count}} hafta",
},
aboutXMonths: {
one: "tahminan 1 oy",
other: "tahminan {{count}} oy",
},
xMonths: {
one: "1 oy",
other: "{{count}} oy",
},
aboutXYears: {
one: "tahminan 1 yil",
other: "tahminan {{count}} yil",
},
xYears: {
one: "1 yil",
other: "{{count}} yil",
},
overXYears: {
one: "1 yildan ko'p",
other: "{{count}} yildan ko'p",
},
almostXYears: {
one: "deyarli 1 yil",
other: "deyarli {{count}} yil",
},
};
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 + " dan keyin";
} else {
return result + " oldin";
}
}
return result;
};
exports.formatDistance = formatDistance;