Rocky_Mountain_Vending/.pnpm-store/v10/files/0d/289221333a18175f5a93802b4cdf8ffb615da1eabb56bb8d24af9d0a7fbbe9b9324d8803bff5625727c76e6e9593a8760d41809cf89983640d597a6126e146
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

44 lines
1 KiB
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const formatRelativeLocale = {
lastWeek: (date) => {
const day = date.getDay();
switch (day) {
case 0:
return "'прошле недеље у' p";
case 3:
return "'прошле среде у' p";
case 6:
return "'прошле суботе у' p";
default:
return "'прошли' EEEE 'у' p";
}
},
yesterday: "'јуче у' p",
today: "'данас у' p",
tomorrow: "'сутра у' p",
nextWeek: (date) => {
const day = date.getDay();
switch (day) {
case 0:
return "'следеће недеље у' p";
case 3:
return "'следећу среду у' p";
case 6:
return "'следећу суботу у' p";
default:
return "'следећи' EEEE 'у' p";
}
},
other: "P",
};
export const formatRelative = (token, date, _baseDate, _options) => {
const format = formatRelativeLocale[token];
if (typeof format === "function") {
return format(date);
}
return format;
};