Rocky_Mountain_Vending/.pnpm-store/v10/files/ec/54129c96c8c040222580ac3b895fafe50dc29f00ee3a3b27f911d047816dde964a86a3b616738dfdcdb1cb20612c7804dbf5cf7b33c88f0b78136b58480386
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

40 lines
901 B
Text

const formatRelativeLocale = {
lastWeek: (date) => {
switch (date.getDay()) {
case 0:
return "'prošle nedjelje u' p";
case 3:
return "'prošle srijede u' p";
case 6:
return "'prošle subote u' p";
default:
return "'prošli' EEEE 'u' p";
}
},
yesterday: "'juče u' p",
today: "'danas u' p",
tomorrow: "'sutra u' p",
nextWeek: (date) => {
switch (date.getDay()) {
case 0:
return "'sljedeće nedjelje u' p";
case 3:
return "'sljedeću srijedu u' p";
case 6:
return "'sljedeću subotu u' p";
default:
return "'sljedeći' EEEE 'u' p";
}
},
other: "P",
};
export const formatRelative = (token, date, _baseDate, _options) => {
const format = formatRelativeLocale[token];
if (typeof format === "function") {
return format(date);
}
return format;
};