UNPKG

662 BJavaScriptView Raw
1/* @generated */
2// prettier-ignore
3if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4 Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","few","other"],"ordinal":["other"]},"fn":function(n, ord) {
5 var s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2), f10 = f.slice(-1), f100 = f.slice(-2);
6 if (ord) return 'other';
7 return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
8 : v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
9 : 'other';
10}},"locale":"sh"})
11}