Rocky_Mountain_Vending/.pnpm-store/v10/files/82/cfd77447c6043fb78c1793f28b07c73aa944c9d957ff9808941de22f28f57deb66ffb7f918eb735deb66c56449f8ace848f8ec174a80a46014f5dba4965636
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,022 B
Text

import { isSameWeek } from "../../../isSameWeek.js";
const weekdays = [
"svētdienā",
"pirmdienā",
"otrdienā",
"trešdienā",
"ceturtdienā",
"piektdienā",
"sestdienā",
];
const formatRelativeLocale = {
lastWeek: (date, baseDate, options) => {
if (isSameWeek(date, baseDate, options)) {
return "eeee 'plkst.' p";
}
const weekday = weekdays[date.getDay()];
return "'Pagājušā " + weekday + " plkst.' p";
},
yesterday: "'Vakar plkst.' p",
today: "'Šodien plkst.' p",
tomorrow: "'Rīt plkst.' p",
nextWeek: (date, baseDate, options) => {
if (isSameWeek(date, baseDate, options)) {
return "eeee 'plkst.' p";
}
const weekday = weekdays[date.getDay()];
return "'Nākamajā " + weekday + " plkst.' p";
},
other: "P",
};
export const formatRelative = (token, date, baseDate, options) => {
const format = formatRelativeLocale[token];
if (typeof format === "function") {
return format(date, baseDate, options);
}
return format;
};