@formatjs/intl-pluralrules
Version:
Polyfill for Intl.PluralRules
10 lines (9 loc) • 465 B
JavaScript
/* @generated */
// prettier-ignore
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["few","other"]},"fn":function(n, ord) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
if (ord) return (n10 == 6 || n10 == 9) || n == 10 ? 'few' : 'other';
return n == 1 ? 'one' : 'other';
}},"locale":"tk"})
}