decord/source/3395_formatDistance.js

32 lines
1.8 KiB
JavaScript
Raw Normal View History

2026-08-07 06:50:47 +00:00
// Module ID: 3395
// Function ID: 3396
2026-07-29 08:29:29 +00:00
// Name: formatDistance
2026-07-23 10:11:24 +00:00
// Dependencies: []
// Exports: default
2026-08-07 06:50:47 +00:00
// Module 3395 (formatDistance)
2026-08-03 11:20:01 +00:00
let closure_0 = { lessThanXSeconds: { one: "mindre end \u00E9t sekund", other: "mindre end {{count}} sekunder" }, xSeconds: { one: "1 sekund", other: "{{count}} sekunder" }, halfAMinute: "\u00E9t halvt minut", lessThanXMinutes: { one: "mindre end \u00E9t minut", other: "mindre end {{count}} minutter" }, xMinutes: { one: "1 minut", other: "{{count}} minutter" }, aboutXHours: { one: "cirka 1 time", other: "cirka {{count}} timer" }, xHours: { one: "1 time", other: "{{count}} timer" }, xDays: { one: "1 dag", other: "{{count}} dage" }, aboutXWeeks: { one: "cirka 1 uge", other: "cirka {{count}} uger" }, xWeeks: { one: "1 uge", other: "{{count}} uger" }, aboutXMonths: { one: "cirka 1 m\u00E5ned", other: "cirka {{count}} m\u00E5neder" }, xMonths: { one: "1 m\u00E5ned", other: "{{count}} m\u00E5neder" }, aboutXYears: { one: "cirka 1 \u00E5r", other: "cirka {{count}} \u00E5r" }, xYears: { one: "1 \u00E5r", other: "{{count}} \u00E5r" }, overXYears: { one: "over 1 \u00E5r", other: "over {{count}} \u00E5r" }, almostXYears: { one: "n\u00E6sten 1 \u00E5r", other: "n\u00E6sten {{count}} \u00E5r" } };
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-08-03 11:20:01 +00:00
let tmp6 = tmp;
2026-07-23 10:11:24 +00:00
if (null != addSuffix) {
2026-08-03 11:20:01 +00:00
tmp6 = tmp;
2026-07-23 10:11:24 +00:00
if (addSuffix.addSuffix) {
if (!addSuffix.comparison) {
2026-08-03 11:20:01 +00:00
let text = `${tmp} siden`;
2026-07-23 10:11:24 +00:00
}
2026-08-03 11:20:01 +00:00
text = `om ${tmp}`;
2026-07-23 10:11:24 +00:00
}
}
2026-08-03 11:20:01 +00:00
return tmp6;
2026-07-23 10:11:24 +00:00
} else if (1 === arg1) {
let one = tmp.one;
} else {
2026-08-03 11:20:01 +00:00
const _String = String;
one = tmp.other.replace("{{count}}", String(arg1));
2026-07-23 10:11:24 +00:00
const str = tmp.other;
}
};
export default exports.default;