@formatjs/ecma402-abstract
Version:
A collection of implementation for ECMAScript abstract operations
17 lines • 652 B
TypeScript
import { LocaleData } from './core';
import { NumberFormatDigitInternalSlots } from './number';
export declare type LDMLPluralRule = 'zero' | 'one' | 'two' | 'few' | 'many' | 'other';
export interface PluralRulesData {
categories: {
cardinal: string[];
ordinal: string[];
};
fn: (val: number | string, ord?: boolean) => LDMLPluralRule;
}
export declare type PluralRulesLocaleData = LocaleData<PluralRulesData>;
export interface PluralRulesInternal extends NumberFormatDigitInternalSlots {
initializedPluralRules: boolean;
locale: string;
type: 'cardinal' | 'ordinal';
}
//# sourceMappingURL=plural-rules.d.ts.map