Rocky_Mountain_Vending/.pnpm-store/v10/files/db/88be6c196ef8bf171ec33af4c6d78078c15a4bb3298a5646351641cf802034eece6793472b3e4c7b2d27536a45159b618aca5745e0fb890ec3911dec06ba1d
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

121 lines
2.5 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.

import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js";
const eraValues = {
narrow: ["пр.н.е.", "н.е."],
abbreviated: ["пред н. е.", "н. е."],
wide: ["пред нашата ера", "нашата ера"],
};
const quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["1-ви кв.", "2-ри кв.", "3-ти кв.", "4-ти кв."],
wide: ["1-ви квартал", "2-ри квартал", "3-ти квартал", "4-ти квартал"],
};
const monthValues = {
abbreviated: [
"јан",
"фев",
"мар",
"апр",
"мај",
"јун",
"јул",
"авг",
"септ",
"окт",
"ноем",
"дек",
],
wide: [
"јануари",
"февруари",
"март",
"април",
"мај",
"јуни",
"јули",
"август",
"септември",
"октомври",
"ноември",
"декември",
],
};
const dayValues = {
narrow: ["Н", "П", "В", "С", "Ч", "П", "С"],
short: ["не", "по", "вт", "ср", "че", "пе", "са"],
abbreviated: ["нед", "пон", "вто", "сре", "чет", "пет", "саб"],
wide: [
"недела",
"понеделник",
"вторник",
"среда",
"четврток",
"петок",
"сабота",
],
};
const dayPeriodValues = {
wide: {
am: "претпладне",
pm: "попладне",
midnight: "полноќ",
noon: "напладне",
morning: "наутро",
afternoon: "попладне",
evening: "навечер",
night: "ноќе",
},
};
const ordinalNumber = (dirtyNumber, _options) => {
const number = Number(dirtyNumber);
const rem100 = number % 100;
if (rem100 > 20 || rem100 < 10) {
switch (rem100 % 10) {
case 1:
return number + "-ви";
case 2:
return number + "-ри";
case 7:
case 8:
return number + "-ми";
}
}
return number + "-ти";
};
export const localize = {
ordinalNumber,
era: buildLocalizeFn({
values: eraValues,
defaultWidth: "wide",
}),
quarter: buildLocalizeFn({
values: quarterValues,
defaultWidth: "wide",
argumentCallback: (quarter) => quarter - 1,
}),
month: buildLocalizeFn({
values: monthValues,
defaultWidth: "wide",
}),
day: buildLocalizeFn({
values: dayValues,
defaultWidth: "wide",
}),
dayPeriod: buildLocalizeFn({
values: dayPeriodValues,
defaultWidth: "wide",
}),
};