Zum Inhalt springen

pivotick v3.0.0


Pivotick / I18nOptions / PluralForms

Interface: PluralForms ​

Definiert in: interfaces/I18n.ts:16

Eine Nachricht, die von einer Zählung abhängt, ein Eintrag pro CLDR Pluralkategorie, die die Sprache verwendet. Das Formular wird von Intl.PluralRules aus dem count-Parameter ausgewählt; other ist erforderlich, da es in jeder Sprache vorhanden ist.

Beispiel ​

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' }

Eigenschaften ​

few? ​

optional few: string

Definiert in: interfaces/I18n.ts:20


many? ​

optional many: string

Definiert in: interfaces/I18n.ts:21


one? ​

optional one: string

Definiert in: interfaces/I18n.ts:18


other ​

other: string

Definiert in: interfaces/I18n.ts:22


two? ​

optional two: string

Definiert in: interfaces/I18n.ts:19


zero? ​

optional zero: string

Definiert in: interfaces/I18n.ts:17