Selects and formats one plural message.
The locale drives Intl.PluralRules; an unknown locale falls back to the other form. This keeps every language usable even when a runtime has incomplete plural data.
Intl.PluralRules
other
Plural forms.
Number that selects the form.
Active locale.
The formatted message.
formatPluralMessage({ one: "{count} day", other: "{count} days" }, 1, "en-US");// "1 day" Copy
formatPluralMessage({ one: "{count} day", other: "{count} days" }, 1, "en-US");// "1 day"
Selects and formats one plural message.
The locale drives
Intl.PluralRules; an unknown locale falls back to theotherform. This keeps every language usable even when a runtime has incomplete plural data.