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

191 lines
4.2 KiB
JavaScript

// Metro module 3369 (f3370).
let c1727_0 = {
lessThanXSeconds: {
one: {
regular: "mniej niż sekunda",
past: "mniej niż sekundę",
future: "mniej niż sekundę"
},
twoFour: "mniej niż {{count}} sekundy",
other: "mniej niż {{count}} sekund"
},
xSeconds: {
one: {
regular: "sekunda",
past: "sekundę",
future: "sekundę"
},
twoFour: "{{count}} sekundy",
other: "{{count}} sekund"
},
halfAMinute: {
one: "pół minuty",
twoFour: "pół minuty",
other: "pół minuty"
},
lessThanXMinutes: {
one: {
regular: "mniej niż minuta",
past: "mniej niż minutę",
future: "mniej niż minutę"
},
twoFour: "mniej niż {{count}} minuty",
other: "mniej niż {{count}} minut"
},
xMinutes: {
one: {
regular: "minuta",
past: "minutę",
future: "minutę"
},
twoFour: "{{count}} minuty",
other: "{{count}} minut"
},
aboutXHours: {
one: {
regular: "około godziny",
past: "około godziny",
future: "około godzinę"
},
twoFour: "około {{count}} godziny",
other: "około {{count}} godzin"
},
xHours: {
one: {
regular: "godzina",
past: "godzinę",
future: "godzinę"
},
twoFour: "{{count}} godziny",
other: "{{count}} godzin"
},
xDays: {
one: {
regular: "dzień",
past: "dzień",
future: "1 dzień"
},
twoFour: "{{count}} dni",
other: "{{count}} dni"
},
aboutXWeeks: {
one: "około tygodnia",
twoFour: "około {{count}} tygodni",
other: "około {{count}} tygodni"
},
xWeeks: {
one: "tydzień",
twoFour: "{{count}} tygodnie",
other: "{{count}} tygodni"
},
aboutXMonths: {
one: "około miesiąc",
twoFour: "około {{count}} miesiące",
other: "około {{count}} miesięcy"
},
xMonths: {
one: "miesiąc",
twoFour: "{{count}} miesiące",
other: "{{count}} miesięcy"
},
aboutXYears: {
one: "około rok",
twoFour: "około {{count}} lata",
other: "około {{count}} lat"
},
xYears: {
one: "rok",
twoFour: "{{count}} lata",
other: "{{count}} lat"
},
overXYears: {
one: "ponad rok",
twoFour: "ponad {{count}} lata",
other: "ponad {{count}} lat"
},
almostXYears: {
one: "prawie rok",
twoFour: "prawie {{count}} lata",
other: "prawie {{count}} lat"
}
};
export default function formatDistance(a0, a1, a2) {
let r25, r48, one, one2, one3;
const r7 = c1727_0[a0];
if (a2 != null && a2.addSuffix) {
if (a2.comparison && a2.comparison > 0) {
L40: {
if (a1 === 1) {
one3 = r7.one;
} else {
const r51 = a1 % 100;
if (r51 <= 20 && 10 < r51) {
one3 = r7.other;
break L40;
}
const r55 = r51 % 10;
if (2 <= r55 && r55 <= 4) {
one3 = r7.twoFour;
break L40;
}
one3 = r7.other;
}
}
let r59 = one3;
if (typeof r59 !== "string") {
r59 = one3.future;
}
r48 = "za " + r59.replace("{{count}}", String(a1));
} else {
L27: {
if (a1 === 1) {
one2 = r7.one;
} else {
const r31 = a1 % 100;
if (r31 <= 20 && 10 < r31) {
one2 = r7.other;
break L27;
}
const r35 = r31 % 10;
if (2 <= r35 && r35 <= 4) {
one2 = r7.twoFour;
break L27;
}
one2 = r7.other;
}
}
let r39 = one2;
if (typeof r39 !== "string") {
r39 = one2.past;
}
r48 = r39.replace("{{count}}", String(a1)) + " temu";
}
r25 = r48;
} else {
L12: {
if (a1 === 1) {
one = r7.one;
} else {
const r1 = a1 % 100;
if (r1 <= 20 && 10 < r1) {
one = r7.other;
break L12;
}
const r16 = r1 % 10;
if (2 <= r16 && r16 <= 4) {
one = r7.twoFour;
break L12;
}
one = r7.other;
}
}
let r9 = one;
if (typeof r9 !== "string") {
r9 = one.regular;
}
r25 = r9.replace("{{count}}", String(a1));
}
return r25;
};
module.exports = exports.default;