Files
JiboViteDocs/node_modules/timeago.js/lib/lang/pl.js
Your Name 38652eb9b5 Initalize
2026-05-03 12:12:57 -04:00

37 lines
1.5 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// 0-13 alternately: single unit of time,
// genitive plural form for all other numbers excluding cases below:
// 14-20: nominative plural form for the numbers 2,3,4
// and all other numbers higher than 21 which end in 2,3,4
var l = [
['w tej chwili', 'za chwilę'],
['%s sekund temu', 'za %s sekund'],
['1 minutę temu', 'za 1 minutę'],
['%s minut temu', 'za %s minut'],
['1 godzinę temu', 'za 1 godzinę'],
['%s godzin temu', 'za %s godzin'],
['1 dzień temu', 'za 1 dzień'],
['%s dni temu', 'za %s dni'],
['1 tydzień temu', 'za 1 tydzień'],
['%s tygodni temu', 'za %s tygodni'],
['1 miesiąc temu', 'za 1 miesiąc'],
['%s miesięcy temu', 'za %s miesięcy'],
['1 rok temu', 'za 1 rok'],
['%s lat temu', 'za %s lat'],
['%s sekundy temu', 'za %s sekundy'],
['%s minuty temu', 'za %s minuty'],
['%s godziny temu', 'za %s godziny'],
['%s dni temu', 'za %s dni'],
['%s tygodnie temu', 'za %s tygodnie'],
['%s miesiące temu', 'za %s miesiące'],
['%s lata temu', 'za %s lata'],
];
function default_1(number, index) {
// to determine which plural form must be used check the last 2 digits
// and calculate new index value to get the nominative form (14-20)
// for all other cases use index value as it is (0-13)
return l[index & 1 ? (number % 10 > 4 || number % 10 < 2 || 1 === ~~(number / 10) % 10 ? index : ++index / 2 + 13) : index];
}
exports.default = default_1;
//# sourceMappingURL=pl.js.map