Skip to content
GitHub

PluralMessage

type alias in meocord/common Since 4.1.0

type PluralMessage = { readonly other: string } & Readonly<
  Partial<Record<Exclude<PluralCategory, 'other'>, string>>
>

A message with a form per plural category, chosen by the count param through Intl.PluralRules.

other is required, since every language has it, and {count} interpolates like any param.