74 lines
1.6 KiB
JavaScript
74 lines
1.6 KiB
JavaScript
// Metro module 3375 (f3376).
|
|
let c1729_0 = {
|
|
lessThanXSeconds: {
|
|
one: "menos de um segundo",
|
|
other: "menos de {{count}} segundos"
|
|
},
|
|
xSeconds: {
|
|
one: "1 segundo",
|
|
other: "{{count}} segundos"
|
|
},
|
|
halfAMinute: "meio minuto",
|
|
lessThanXMinutes: {
|
|
one: "menos de um minuto",
|
|
other: "menos de {{count}} minutos"
|
|
},
|
|
xMinutes: {
|
|
one: "1 minuto",
|
|
other: "{{count}} minutos"
|
|
},
|
|
aboutXHours: {
|
|
one: "cerca de 1 hora",
|
|
other: "cerca de {{count}} horas"
|
|
},
|
|
xHours: {
|
|
one: "1 hora",
|
|
other: "{{count}} horas"
|
|
},
|
|
xDays: {
|
|
one: "1 dia",
|
|
other: "{{count}} dias"
|
|
},
|
|
aboutXWeeks: {
|
|
one: "cerca de 1 semana",
|
|
other: "cerca de {{count}} semanas"
|
|
},
|
|
xWeeks: {
|
|
one: "1 semana",
|
|
other: "{{count}} semanas"
|
|
},
|
|
aboutXMonths: {
|
|
one: "cerca de 1 mês",
|
|
other: "cerca de {{count}} meses"
|
|
},
|
|
xMonths: {
|
|
one: "1 mês",
|
|
other: "{{count}} meses"
|
|
},
|
|
aboutXYears: {
|
|
one: "cerca de 1 ano",
|
|
other: "cerca de {{count}} anos"
|
|
},
|
|
xYears: {
|
|
one: "1 ano",
|
|
other: "{{count}} anos"
|
|
},
|
|
overXYears: {
|
|
one: "mais de 1 ano",
|
|
other: "mais de {{count}} anos"
|
|
},
|
|
almostXYears: {
|
|
one: "quase 1 ano",
|
|
other: "quase {{count}} anos"
|
|
}
|
|
};
|
|
export default function formatDistance(a0, a1, a2) {
|
|
const r9 = c1729_0[a0];
|
|
let r5 = r9;
|
|
if (typeof r5 !== "string") {
|
|
r5 = a1 === 1 ? r9.one : r9.other.replace("{{count}}", String(a1));
|
|
}
|
|
return a2 != null ? a2.addSuffix ? a2.comparison && a2.comparison > 0 ? "em " + r5 : "há " + r5 : r5 : r5;
|
|
};
|
|
module.exports = exports.default;
|