Files
discord-decomp/_bundle/formatDistance_3399.js
T
2026-11-01 12:12:55 +02:00

74 lines
2.1 KiB
JavaScript

// Metro module 3399 (f3400).
let c1752_0 = {
lessThanXSeconds: {
one: "น้อยกว่า 1 วินาที",
other: "น้อยกว่า {{count}} วินาที"
},
xSeconds: {
one: "1 วินาที",
other: "{{count}} วินาที"
},
halfAMinute: "ครึ่งนาที",
lessThanXMinutes: {
one: "น้อยกว่า 1 นาที",
other: "น้อยกว่า {{count}} นาที"
},
xMinutes: {
one: "1 นาที",
other: "{{count}} นาที"
},
aboutXHours: {
one: "ประมาณ 1 ชั่วโมง",
other: "ประมาณ {{count}} ชั่วโมง"
},
xHours: {
one: "1 ชั่วโมง",
other: "{{count}} ชั่วโมง"
},
xDays: {
one: "1 วัน",
other: "{{count}} วัน"
},
aboutXWeeks: {
one: "ประมาณ 1 สัปดาห์",
other: "ประมาณ {{count}} สัปดาห์"
},
xWeeks: {
one: "1 สัปดาห์",
other: "{{count}} สัปดาห์"
},
aboutXMonths: {
one: "ประมาณ 1 เดือน",
other: "ประมาณ {{count}} เดือน"
},
xMonths: {
one: "1 เดือน",
other: "{{count}} เดือน"
},
aboutXYears: {
one: "ประมาณ 1 ปี",
other: "ประมาณ {{count}} ปี"
},
xYears: {
one: "1 ปี",
other: "{{count}} ปี"
},
overXYears: {
one: "มากกว่า 1 ปี",
other: "มากกว่า {{count}} ปี"
},
almostXYears: {
one: "เกือบ 1 ปี",
other: "เกือบ {{count}} ปี"
}
};
export default function formatDistance(a0, a1, a2) {
const r3 = c1752_0[a0];
let r6 = r3;
if (typeof r6 !== "string") {
r6 = a1 === 1 ? r3.one : r3.other.replace("{{count}}", String(a1));
}
return a2 != null ? a2.addSuffix ? a2.comparison && a2.comparison > 0 ? a0 === "halfAMinute" ? "ใน" + r6 : "ใน " + r6 : r6 + "ที่ผ่านมา" : r6 : r6;
};
module.exports = exports.default;