PluralFunction interface

Function used to define the pluralisation for a locale

Signature:

export interface PluralFunction 

Remarks

(value: number | string, ord?: boolean) => PluralCateogry

May be used as a MessageFormat constructor locale argument.

Properties

Property Modifiers Type Description
cardinals? Β  Plurals.PluralCategory[] (Optional) Which plurals may be returned if ord is falsy
module? Β  string (Optional) The name of the module from which this function may be imported
ordinals? Β  Plurals.PluralCategory[] (Optional) Which plurals may be returned if ord is true