Rocky_Mountain_Vending/.pnpm-store/v10/files/c6/beeeaad429857e9d683567e0110d49f9bdb35aa7ddbed8e9b7d4a7bf5189d4e367795a3f7a7c5e82f822f39dcbbe33827323b5e4ece92d4a9d02ba058baff6
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

190 lines
4.2 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: ["چارەگی یەکەم", "چارەگی دووەم", "چارەگی سێیەم", "چارەگی چوارەم"],
};
// Note: in English, the names of days of the week and months are capitalized.
// If you are making a new locale based on this one, check if the same is true for the language you're working on.
// Generally, formatted dates should look like they are in the middle of a sentence,
// e.g. in Spanish language the weekdays and months should be in the lowercase.
const monthValues = {
narrow: [
"ک-د",
"ش",
"ئا",
"ن",
"م",
"ح",
"ت",
"ئا",
"ئە",
"تش-ی",
"تش-د",
"ک-ی",
],
abbreviated: [
"کان-دوو",
"شوب",
"ئاد",
"نیس",
"مایس",
"حوز",
"تەم",
"ئاب",
"ئەل",
"تش-یەک",
"تش-دوو",
"کان-یەک",
],
wide: [
"کانوونی دووەم",
"شوبات",
"ئادار",
"نیسان",
"مایس",
"حوزەیران",
"تەمموز",
"ئاب",
"ئەیلول",
"تشرینی یەکەم",
"تشرینی دووەم",
"کانوونی یەکەم",
],
};
const dayValues = {
narrow: ["ی-ش", "د-ش", "س-ش", "چ-ش", "پ-ش", "هە", "ش"],
short: ["یە-شە", "دوو-شە", "سێ-شە", "چو-شە", "پێ-شە", "هەی", "شە"],
abbreviated: [
"یەک-شەم",
"دوو-شەم",
"سێ-شەم",
"چوار-شەم",
"پێنج-شەم",
"هەینی",
"شەمە",
],
wide: [
"یەک شەمە",
"دوو شەمە",
"سێ شەمە",
"چوار شەمە",
"پێنج شەمە",
"هەینی",
"شەمە",
],
};
const dayPeriodValues = {
narrow: {
am: "پ",
pm: "د",
midnight: "ن-ش",
noon: "ن",
morning: "بەیانی",
afternoon: "دوای نیوەڕۆ",
evening: "ئێوارە",
night: "شەو",
},
abbreviated: {
am: "پ-ن",
pm: "د-ن",
midnight: "نیوە شەو",
noon: "نیوەڕۆ",
morning: "بەیانی",
afternoon: "دوای نیوەڕۆ",
evening: "ئێوارە",
night: "شەو",
},
wide: {
am: "پێش نیوەڕۆ",
pm: "دوای نیوەڕۆ",
midnight: "نیوە شەو",
noon: "نیوەڕۆ",
morning: "بەیانی",
afternoon: "دوای نیوەڕۆ",
evening: "ئێوارە",
night: "شەو",
},
};
const formattingDayPeriodValues = {
narrow: {
am: "پ",
pm: "د",
midnight: "ن-ش",
noon: "ن",
morning: "لە بەیانیدا",
afternoon: "لە دوای نیوەڕۆدا",
evening: "لە ئێوارەدا",
night: "لە شەودا",
},
abbreviated: {
am: "پ-ن",
pm: "د-ن",
midnight: "نیوە شەو",
noon: "نیوەڕۆ",
morning: "لە بەیانیدا",
afternoon: "لە دوای نیوەڕۆدا",
evening: "لە ئێوارەدا",
night: "لە شەودا",
},
wide: {
am: "پێش نیوەڕۆ",
pm: "دوای نیوەڕۆ",
midnight: "نیوە شەو",
noon: "نیوەڕۆ",
morning: "لە بەیانیدا",
afternoon: "لە دوای نیوەڕۆدا",
evening: "لە ئێوارەدا",
night: "لە شەودا",
},
};
const ordinalNumber = (dirtyNumber, _options) => {
return String(dirtyNumber);
};
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",
formattingValues: formattingDayPeriodValues,
defaultFormattingWidth: "wide",
}),
};