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

25 lines
538 B
Plaintext

const formatRelativeLocale = {
lastWeek: "'joan den' eeee, LT",
yesterday: "'atzo,' p",
today: "'gaur,' p",
tomorrow: "'bihar,' p",
nextWeek: "eeee, p",
other: "P",
};
const formatRelativeLocalePlural = {
lastWeek: "'joan den' eeee, p",
yesterday: "'atzo,' p",
today: "'gaur,' p",
tomorrow: "'bihar,' p",
nextWeek: "eeee, p",
other: "P",
};
export const formatRelative = (token, date) => {
if (date.getHours() !== 1) {
return formatRelativeLocalePlural[token];
}
return formatRelativeLocale[token];
};