74 lines
1.6 KiB
JavaScript
74 lines
1.6 KiB
JavaScript
// Metro module 3715 (f3716).
|
|
let c2127_0 = {
|
|
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"
|
|
}
|
|
};
|
|
export default function formatDistance(a0, a1, a2) {
|
|
const r9 = c2127_0[a0];
|
|
let r5 = r9;
|
|
if (typeof r5 !== "string") {
|
|
r5 = a1 === 1 ? r9.one : r9.other.replace("{{count}}", String(a1));
|
|
}
|
|
return a2 != null ? a2.addSuffix ? a2.comparison && a2.comparison > 0 ? r5 + " nữa" : r5 + " trước" : r5 : r5;
|
|
};
|
|
module.exports = exports.default;
|