Rocky_Mountain_Vending/.pnpm-store/v10/files/1b/f2175106d47092f9ecdf0e86d8eeeddb167cdc8dba7856231b54ae36a9d13a12ec24b77b27e6e71a3750887a955f5aafc74d59c07eed2e5ca07cf1adea2747
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

39 lines
793 B
Text

"use strict";
exports.formatRelative = void 0;
const accusativeWeekdays = [
"vasárnap",
"hétfőn",
"kedden",
"szerdán",
"csütörtökön",
"pénteken",
"szombaton",
];
function week(isFuture) {
return (date) => {
const weekday = accusativeWeekdays[date.getDay()];
const prefix = isFuture ? "" : "'múlt' ";
return `${prefix}'${weekday}' p'-kor'`;
};
}
const formatRelativeLocale = {
lastWeek: week(false),
yesterday: "'tegnap' p'-kor'",
today: "'ma' p'-kor'",
tomorrow: "'holnap' p'-kor'",
nextWeek: week(true),
other: "P",
};
const formatRelative = (token, date) => {
const format = formatRelativeLocale[token];
if (typeof format === "function") {
return format(date);
}
return format;
};
exports.formatRelative = formatRelative;