Rocky_Mountain_Vending/.pnpm-store/v10/files/38/02e363653e421181aa756c4e262187763aa0a56816c19756e73da3190dc46ed0e1457d5429b06ffc3c4641e51f9b0264f62488c52fffe591047615bccd1d49
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.8 KiB
Text

"use strict";
exports.formatDistance = void 0;
const formatDistanceLocale = {
lessThanXSeconds: {
one: "dưới 1 giây",
other: "dưới {{count}} giây",
},
xSeconds: {
one: "1 giây",
other: "{{count}} giây",
},
halfAMinute: "nửa phút",
lessThanXMinutes: {
one: "dưới 1 phút",
other: "dưới {{count}} phút",
},
xMinutes: {
one: "1 phút",
other: "{{count}} phút",
},
aboutXHours: {
one: "khoảng 1 giờ",
other: "khoảng {{count}} giờ",
},
xHours: {
one: "1 giờ",
other: "{{count}} giờ",
},
xDays: {
one: "1 ngày",
other: "{{count}} ngày",
},
aboutXWeeks: {
one: "khoảng 1 tuần",
other: "khoảng {{count}} tuần",
},
xWeeks: {
one: "1 tuần",
other: "{{count}} tuần",
},
aboutXMonths: {
one: "khoảng 1 tháng",
other: "khoảng {{count}} tháng",
},
xMonths: {
one: "1 tháng",
other: "{{count}} tháng",
},
aboutXYears: {
one: "khoảng 1 năm",
other: "khoảng {{count}} năm",
},
xYears: {
one: "1 năm",
other: "{{count}} năm",
},
overXYears: {
one: "hơn 1 năm",
other: "hơn {{count}} năm",
},
almostXYears: {
one: "gần 1 năm",
other: "gần {{count}} năm",
},
};
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}}", String(count));
}
if (options?.addSuffix) {
if (options.comparison && options.comparison > 0) {
return result + " nữa";
} else {
return result + " trước";
}
}
return result;
};
exports.formatDistance = formatDistance;