Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 1.04 KB

File metadata and controls

34 lines (21 loc) · 1.04 KB
title PluralFunction
parent @messageformat/core
grand_parent API Reference

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