decord/source/3490_formatDistance.js

32 lines
1.8 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 3490
// Function ID: 3491
2026-08-05 07:35:12 +00:00
// Name: formatDistance
// Dependencies: []
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 3490 (formatDistance)
2026-08-15 05:55:55 +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-08-05 07:35:12 +00:00
export default function formatDistance(arg0, arg1, addSuffix) {
if (typeof table[arg0] === "string") {
let tmp6 = tmp;
if (null != addSuffix) {
tmp6 = tmp;
if (addSuffix.addSuffix) {
if (!addSuffix.comparison) {
2026-08-15 05:55:55 +00:00
let text = `${tmp} siden`;
2026-08-05 07:35:12 +00:00
}
2026-08-15 05:55:55 +00:00
text = `om ${tmp}`;
2026-08-05 07:35:12 +00:00
}
}
return tmp6;
} else if (1 === arg1) {
let one = tmp.one;
} else {
const _String = String;
one = tmp.other.replace("{{count}}", String(arg1));
const str = tmp.other;
}
};
export default exports.default;