161 lines
4.0 KiB
JavaScript
161 lines
4.0 KiB
JavaScript
// Metro module 3321 (f3322).
|
|
let c1709_0 = {
|
|
lessThanXSeconds: {
|
|
one: {
|
|
standalone: "manje od 1 sekunde",
|
|
withPrepositionAgo: "manje od 1 sekunde",
|
|
withPrepositionIn: "manje od 1 sekundu"
|
|
},
|
|
dual: "manje od {{count}} sekunde",
|
|
other: "manje od {{count}} sekundi"
|
|
},
|
|
xSeconds: {
|
|
one: {
|
|
standalone: "1 sekunda",
|
|
withPrepositionAgo: "1 sekunde",
|
|
withPrepositionIn: "1 sekundu"
|
|
},
|
|
dual: "{{count}} sekunde",
|
|
other: "{{count}} sekundi"
|
|
},
|
|
halfAMinute: "pola minute",
|
|
lessThanXMinutes: {
|
|
one: {
|
|
standalone: "manje od 1 minute",
|
|
withPrepositionAgo: "manje od 1 minute",
|
|
withPrepositionIn: "manje od 1 minutu"
|
|
},
|
|
dual: "manje od {{count}} minute",
|
|
other: "manje od {{count}} minuta"
|
|
},
|
|
xMinutes: {
|
|
one: {
|
|
standalone: "1 minuta",
|
|
withPrepositionAgo: "1 minute",
|
|
withPrepositionIn: "1 minutu"
|
|
},
|
|
dual: "{{count}} minute",
|
|
other: "{{count}} minuta"
|
|
},
|
|
aboutXHours: {
|
|
one: {
|
|
standalone: "oko 1 sat",
|
|
withPrepositionAgo: "oko 1 sat",
|
|
withPrepositionIn: "oko 1 sat"
|
|
},
|
|
dual: "oko {{count}} sata",
|
|
other: "oko {{count}} sati"
|
|
},
|
|
xHours: {
|
|
one: {
|
|
standalone: "1 sat",
|
|
withPrepositionAgo: "1 sat",
|
|
withPrepositionIn: "1 sat"
|
|
},
|
|
dual: "{{count}} sata",
|
|
other: "{{count}} sati"
|
|
},
|
|
xDays: {
|
|
one: {
|
|
standalone: "1 dan",
|
|
withPrepositionAgo: "1 dan",
|
|
withPrepositionIn: "1 dan"
|
|
},
|
|
dual: "{{count}} dana",
|
|
other: "{{count}} dana"
|
|
},
|
|
aboutXWeeks: {
|
|
one: {
|
|
standalone: "oko 1 tjedan",
|
|
withPrepositionAgo: "oko 1 tjedan",
|
|
withPrepositionIn: "oko 1 tjedan"
|
|
},
|
|
dual: "oko {{count}} tjedna",
|
|
other: "oko {{count}} tjedana"
|
|
},
|
|
xWeeks: {
|
|
one: {
|
|
standalone: "1 tjedan",
|
|
withPrepositionAgo: "1 tjedan",
|
|
withPrepositionIn: "1 tjedan"
|
|
},
|
|
dual: "{{count}} tjedna",
|
|
other: "{{count}} tjedana"
|
|
},
|
|
aboutXMonths: {
|
|
one: {
|
|
standalone: "oko 1 mjesec",
|
|
withPrepositionAgo: "oko 1 mjesec",
|
|
withPrepositionIn: "oko 1 mjesec"
|
|
},
|
|
dual: "oko {{count}} mjeseca",
|
|
other: "oko {{count}} mjeseci"
|
|
},
|
|
xMonths: {
|
|
one: {
|
|
standalone: "1 mjesec",
|
|
withPrepositionAgo: "1 mjesec",
|
|
withPrepositionIn: "1 mjesec"
|
|
},
|
|
dual: "{{count}} mjeseca",
|
|
other: "{{count}} mjeseci"
|
|
},
|
|
aboutXYears: {
|
|
one: {
|
|
standalone: "oko 1 godinu",
|
|
withPrepositionAgo: "oko 1 godinu",
|
|
withPrepositionIn: "oko 1 godinu"
|
|
},
|
|
dual: "oko {{count}} godine",
|
|
other: "oko {{count}} godina"
|
|
},
|
|
xYears: {
|
|
one: {
|
|
standalone: "1 godina",
|
|
withPrepositionAgo: "1 godine",
|
|
withPrepositionIn: "1 godinu"
|
|
},
|
|
dual: "{{count}} godine",
|
|
other: "{{count}} godina"
|
|
},
|
|
overXYears: {
|
|
one: {
|
|
standalone: "preko 1 godinu",
|
|
withPrepositionAgo: "preko 1 godinu",
|
|
withPrepositionIn: "preko 1 godinu"
|
|
},
|
|
dual: "preko {{count}} godine",
|
|
other: "preko {{count}} godina"
|
|
},
|
|
almostXYears: {
|
|
one: {
|
|
standalone: "gotovo 1 godinu",
|
|
withPrepositionAgo: "gotovo 1 godinu",
|
|
withPrepositionIn: "gotovo 1 godinu"
|
|
},
|
|
dual: "gotovo {{count}} godine",
|
|
other: "gotovo {{count}} godina"
|
|
}
|
|
};
|
|
export default function formatDistance(a0, a1, a2) {
|
|
let r27;
|
|
const r10 = c1709_0[a0];
|
|
let r8 = r10;
|
|
if (typeof r8 !== "string") {
|
|
L17: {
|
|
if (a1 === 1) {
|
|
r27 = a2 != null && a2.addSuffix ? a2.comparison && a2.comparison > 0 ? r10.one.withPrepositionIn : r10.one.withPrepositionAgo : r10.one.standalone;
|
|
} else {
|
|
if (1 < a1 % 10 && a1 % 10 < 5 && String(a1).substr(-2, 1) !== "1") {
|
|
r27 = r10.dual.replace("{{count}}", String(a1));
|
|
break L17;
|
|
}
|
|
r27 = r10.other.replace("{{count}}", String(a1));
|
|
}
|
|
}
|
|
r8 = r27;
|
|
}
|
|
return a2 != null ? a2.addSuffix ? a2.comparison && a2.comparison > 0 ? "za " + r8 : "prije " + r8 : r8 : r8;
|
|
};
|
|
module.exports = exports.default;
|