Current version:
moment.duration(112, "years").humanize(); // 112 lata
moment.duration(213, "years").humanize(); // 213 lata
New version:
moment.duration(112, "years").humanize(); // 112 lat
moment.duration(213, "years").humanize(); // 213 lat
Real examples:
https://pl.wikipedia.org/wiki/Lista_najstarszych_ludzi_w_Polsce
monthsSubjective = "stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");
function plural(n) {
- return (n % 10 < 5) && (n % 10 > 1) && (~~(n / 10) !== 1);
+ return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
}
function translate(number, withoutSuffix, key) {