UNPKG

@formatjs/intl-pluralrules

Version:
24 lines (23 loc) 966 B
/* @generated */ // prettier-ignore if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') { Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["many","one","other"]},"fn":function(num, isOrdinal, exponent = 0) { const numStr = String(num); const parts = numStr.split("."); const integerPart = parts[0]; const decimalPart = parts[1] || ""; const n = Math.abs(parseFloat(numStr)); const i = Math.floor(Math.abs(parseFloat(integerPart))); if (isOrdinal) { if (i === 0 || (((((i % 100) >= 2 && (i % 100) <= 20) || (i % 100) === 40) || (i % 100) === 60) || (i % 100) === 80)) return "many"; if (i === 1) return "one"; } else { if (n === 1) return "one"; } return "other"; },"pluralRanges":{"cardinal":{"one_other":"one","other_one":"other","other_other":"other"},"ordinal":{}}},"locale":"ka"}) }