ピボット / I18nOptions / PluralForms
インターフェース: PluralForms
カウントに依存するメッセージ、言語 CLDR 複数カテゴリごとに 1 つのエントリ を使用します。フォームは count パラメータから Intl.PluralRules によって選択されます。 otherは どの言語にもそれがあるため、必須です。
例
ts
{ one: 'Hid {count} node', other: 'Hid {count} nodes' }
// Polish needs three forms
{ one: 'Ukryto {count} węzeł', few: 'Ukryto {count} węzły', many: 'Ukryto {count} węzłów', other: 'Ukryto {count} węzła' }プロパティ
few?
optionalfew:string
many?
optionalmany:string
one?
optionalone:string
other
other:
string
two?
optionaltwo:string
zero?
optionalzero:string