@formatjs/intl-pluralrules
Version:
Polyfill for Intl.PluralRules
13 lines (12 loc) • 512 B
JavaScript
/* @generated */
// prettier-ignore
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","two","few","other"],"ordinal":["other"]},"fn":function(n, ord) {
var s = String(n).split('.'), i = s[0], v0 = !s[1], i100 = i.slice(-2);
if (ord) return 'other';
return v0 && i100 == 1 ? 'one'
: v0 && i100 == 2 ? 'two'
: v0 && (i100 == 3 || i100 == 4) || !v0 ? 'few'
: 'other';
}},"locale":"sl"})
}