@formatjs/intl-pluralrules
Version:
Polyfill for Intl.PluralRules
11 lines (10 loc) • 362 B
JavaScript
/* @generated */
// prettier-ignore
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","two","other"],"ordinal":["other"]},"fn":function(n, ord) {
if (ord) return 'other';
return n == 1 ? 'one'
: n == 2 ? 'two'
: 'other';
}},"locale":"se"})
}