Loading...
{
"inbox": "You have {count} messages"
}{
"inbox": "You have {count, plural, one {# message} other {# messages}}"
}The plural rule lets each language choose its own forms, and # is replaced with the formatted number.
plural, one and other inside the message.other case.Inside a plural branch, # is replaced with the number, formatted for the current locale.
plural picks a form by count, select picks by a string value like gender, and selectordinal picks by ordinal like 1st or 2nd.
No. Intl has no message formatter, so i18n libraries parse ICU messages and use Intl.PluralRules and other Intl APIs inside.