UNPKG

@formatjs/intl-pluralrules

Version:
12 lines (11 loc) 516 B
/* @generated */ // prettier-ignore if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') { Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["one","many","other"]},"fn":function(n, ord) { var s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2); if (ord) return n == 1 ? 'one' : n10 == 4 && n100 != 14 ? 'many' : 'other'; return n == 1 ? 'one' : 'other'; }},"locale":"sq"}) }