Files
klz-cables.com/.pnpm-store/v10/files/53/1bda00fa840103df1a941d3aff260a82bee22da2dd1459a8a00abec97ac3b89027280041c1bc7fa68f8d4a222a946b7ac7da4d31f6c8a9757cdc4fe62d8d68
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: "më pak se një sekondë",
other: "më pak se {{count}} sekonda",
},
xSeconds: {
one: "1 sekondë",
other: "{{count}} sekonda",
},
halfAMinute: "gjysëm minuti",
lessThanXMinutes: {
one: "më pak se një minute",
other: "më pak se {{count}} minuta",
},
xMinutes: {
one: "1 minutë",
other: "{{count}} minuta",
},
aboutXHours: {
one: "rreth 1 orë",
other: "rreth {{count}} orë",
},
xHours: {
one: "1 orë",
other: "{{count}} orë",
},
xDays: {
one: "1 ditë",
other: "{{count}} ditë",
},
aboutXWeeks: {
one: "rreth 1 javë",
other: "rreth {{count}} javë",
},
xWeeks: {
one: "1 javë",
other: "{{count}} javë",
},
aboutXMonths: {
one: "rreth 1 muaj",
other: "rreth {{count}} muaj",
},
xMonths: {
one: "1 muaj",
other: "{{count}} muaj",
},
aboutXYears: {
one: "rreth 1 vit",
other: "rreth {{count}} vite",
},
xYears: {
one: "1 vit",
other: "{{count}} vite",
},
overXYears: {
one: "mbi 1 vit",
other: "mbi {{count}} vite",
},
almostXYears: {
one: "pothuajse 1 vit",
other: "pothuajse {{count}} vite",
},
};
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 "në " + result;
} else {
return result + " më parë";
}
}
return result;
};
exports.formatDistance = formatDistance;