(
pl: Intl.PluralRules,
n: Decimal,
{
getInternalSlots,
PluralRuleSelect,
}: {
getInternalSlots(pl: Intl.PluralRules): PluralRulesInternal
PluralRuleSelect: (
locale: string,
type: 'cardinal' | 'ordinal',
n: Decimal,
operands: OperandsRecord
) => LDMLPluralRule
}
)
| 112 | * @param PluralRuleSelect Has to pass in bc it's implementation-specific |
| 113 | */ |
| 114 | export function ResolvePlural( |
| 115 | pl: Intl.PluralRules, |
| 116 | n: Decimal, |
| 117 | { |
| 118 | getInternalSlots, |
| 119 | PluralRuleSelect, |
| 120 | }: { |
| 121 | getInternalSlots(pl: Intl.PluralRules): PluralRulesInternal |
| 122 | PluralRuleSelect: ( |
| 123 | locale: string, |
| 124 | type: 'cardinal' | 'ordinal', |
| 125 | n: Decimal, |
| 126 | operands: OperandsRecord |
| 127 | ) => LDMLPluralRule |
| 128 | } |
| 129 | ): LDMLPluralRule { |
| 130 | return ResolvePluralInternal(pl, n, {getInternalSlots, PluralRuleSelect}) |
| 131 | .pluralCategory |
| 132 | } |
no test coverage detected