انتقل إلى المحتوى

pivotick v3.0.0


محورية / I18nOptions / PluralForms

واجهة: PluralForms ​

محدد في: interfaces/I18n.ts:16

رسالة تعتمد على عدد، إدخال واحد لكل CLDR فئة الجمع في اللغة الاستخدامات. يتم اختيار النموذج بواسطة Intl.PluralRules من count المعلمة؛ 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