decord/source/3505_formatDistance.js

31 lines
1.7 KiB
JavaScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 3505
// Function ID: 3506
2026-07-29 08:29:29 +00:00
// Name: formatDistance
2026-07-23 10:11:24 +00:00
// Dependencies: []
// Exports: default
2026-08-12 06:57:52 +00:00
// Module 3505 (formatDistance)
2026-08-05 07:35:12 +00:00
let closure_0 = { lessThanXSeconds: { one: "meno di un secondo", other: "meno di {{count}} secondi" }, xSeconds: { one: "un secondo", other: "{{count}} secondi" }, halfAMinute: "alcuni secondi", lessThanXMinutes: { one: "meno di un minuto", other: "meno di {{count}} minuti" }, xMinutes: { one: "un minuto", other: "{{count}} minuti" }, aboutXHours: { one: "circa un'ora", other: "circa {{count}} ore" }, xHours: { one: "un'ora", other: "{{count}} ore" }, xDays: { one: "un giorno", other: "{{count}} giorni" }, aboutXWeeks: { one: "circa una settimana", other: "circa {{count}} settimane" }, xWeeks: { one: "una settimana", other: "{{count}} settimane" }, aboutXMonths: { one: "circa un mese", other: "circa {{count}} mesi" }, xMonths: { one: "un mese", other: "{{count}} mesi" }, aboutXYears: { one: "circa un anno", other: "circa {{count}} anni" }, xYears: { one: "un anno", other: "{{count}} anni" }, overXYears: { one: "pi\u00F9 di un anno", other: "pi\u00F9 di {{count}} anni" }, almostXYears: { one: "quasi un anno", other: "quasi {{count}} anni" } };
2026-07-23 10:11:24 +00:00
export default function formatDistance(arg0, arg1, addSuffix) {
2026-08-04 21:03:28 +00:00
if (typeof table[arg0] === "string") {
2026-07-29 08:29:29 +00:00
let tmp5 = tmp;
2026-07-23 10:11:24 +00:00
if (null != addSuffix) {
2026-07-29 08:29:29 +00:00
tmp5 = tmp;
2026-07-23 10:11:24 +00:00
if (addSuffix.addSuffix) {
if (!addSuffix.comparison) {
2026-08-05 07:35:12 +00:00
let text = `${tmp} fa`;
2026-07-23 10:11:24 +00:00
}
2026-08-05 07:35:12 +00:00
text = `tra ${tmp}`;
2026-07-23 10:11:24 +00:00
}
}
2026-07-29 08:29:29 +00:00
return tmp5;
2026-07-23 10:11:24 +00:00
} else if (1 === arg1) {
let one = tmp.one;
} else {
one = tmp.other.replace("{{count}}", arg1.toString());
const str = tmp.other;
}
};
export default exports.default;