PluralForms
PluralForms =
object
Defined in: packages/format-po/src/plural-forms.ts:6
How a language picks which msgstr[i] applies to a given count.
Properties
Section titled “Properties”
readonlycount:number
Defined in: packages/format-po/src/plural-forms.ts:8
nplurals — how many plural forms the language distinguishes.
select
Section titled “select”
readonlyselect: (n) =>number
Defined in: packages/format-po/src/plural-forms.ts:14
Which msgstr index applies to n, always within [0, count). An
expression that answers outside that range is clamped, as gettext does, so
a mistranslated header cannot index past the entry’s strings.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”number