Rocky_Mountain_Vending/.pnpm-store/v10/files/e5/d023c68d061b4ad89e14f7c33303826fbc005f73c6d06a7a66c0809f8715173341428dea8a202583f00ec1789b9b367398ecdbd20175d27c772cfe33e2b066
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

105 lines
1.9 KiB
Text

"use strict";
exports.formatDistance = void 0;
const formatDistanceLocale = {
lessThanXSeconds: {
one: "menos de un segundo",
other: "menos de {{count}} segundos",
},
xSeconds: {
one: "1 segundo",
other: "{{count}} segundos",
},
halfAMinute: "medio minuto",
lessThanXMinutes: {
one: "menos de un minuto",
other: "menos de {{count}} minutos",
},
xMinutes: {
one: "1 minuto",
other: "{{count}} minutos",
},
aboutXHours: {
one: "alrededor de 1 hora",
other: "alrededor de {{count}} horas",
},
xHours: {
one: "1 hora",
other: "{{count}} horas",
},
xDays: {
one: "1 día",
other: "{{count}} días",
},
aboutXWeeks: {
one: "alrededor de 1 semana",
other: "alrededor de {{count}} semanas",
},
xWeeks: {
one: "1 semana",
other: "{{count}} semanas",
},
aboutXMonths: {
one: "alrededor de 1 mes",
other: "alrededor de {{count}} meses",
},
xMonths: {
one: "1 mes",
other: "{{count}} meses",
},
aboutXYears: {
one: "alrededor de 1 año",
other: "alrededor de {{count}} años",
},
xYears: {
one: "1 año",
other: "{{count}} años",
},
overXYears: {
one: "más de 1 año",
other: "más de {{count}} años",
},
almostXYears: {
one: "casi 1 año",
other: "casi {{count}} años",
},
};
const formatDistance = (token, count, options) => {
let result;
const tokenValue = formatDistanceLocale[token];
if (typeof tokenValue === "string") {
result = tokenValue;
} else if (count === 1) {
result = tokenValue.one;
} else {
result = tokenValue.other.replace("{{count}}", count.toString());
}
if (options?.addSuffix) {
if (options.comparison && options.comparison > 0) {
return "en " + result;
} else {
return "hace " + result;
}
}
return result;
};
exports.formatDistance = formatDistance;