コンテンツへスキップ

pivotick v3.0.0


ピボット / I18nOptions / PluralForms

インターフェース: PluralForms ​

定義: interfaces/I18n.ts:16

カウントに依存するメッセージ、言語 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? ​

optional few: string

定義: interfaces/I18n.ts:20


many? ​

optional many: string

定義: interfaces/I18n.ts:21


one? ​

optional one: string

定義: interfaces/I18n.ts:18


other ​

other: string

定義: interfaces/I18n.ts:22


two? ​

optional two: string

定義: interfaces/I18n.ts:19


zero? ​

optional zero: string

定義: interfaces/I18n.ts:17