UNPKG

@formatjs/intl-pluralrules

Version:
14 lines (13 loc) 534 B
/* @generated */ // prettier-ignore if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') { Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","two","few","many","other"],"ordinal":["one","other"]},"fn":function(n, ord) { var s = String(n).split('.'), t0 = Number(s[0]) == n; if (ord) return n == 1 ? 'one' : 'other'; return n == 1 ? 'one' : n == 2 ? 'two' : (t0 && n >= 3 && n <= 6) ? 'few' : (t0 && n >= 7 && n <= 10) ? 'many' : 'other'; }},"locale":"ga"}) }