Rocky_Mountain_Vending/.pnpm-store/v10/files/8c/1901622347da6b9677943c567f6e04cf8a25da7024ef73dae801e16ab9789ddf0f219ad3eefaeeb66d0b5323c37c2d04eef8397bad24695ba2da516f941f21
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

47 lines
1.1 KiB
Text

"use strict";
exports.formatRelative = void 0;
var _index = require("../../../isSameWeek.cjs");
const weekdays = [
"svētdienā",
"pirmdienā",
"otrdienā",
"trešdienā",
"ceturtdienā",
"piektdienā",
"sestdienā",
];
const formatRelativeLocale = {
lastWeek: (date, baseDate, options) => {
if ((0, _index.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 ((0, _index.isSameWeek)(date, baseDate, options)) {
return "eeee 'plkst.' p";
}
const weekday = weekdays[date.getDay()];
return "'Nākamajā " + weekday + " plkst.' p";
},
other: "P",
};
const formatRelative = (token, date, baseDate, options) => {
const format = formatRelativeLocale[token];
if (typeof format === "function") {
return format(date, baseDate, options);
}
return format;
};
exports.formatRelative = formatRelative;