محورية / 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?
optionalfew:string
محدد في: interfaces/I18n.ts:20
many?
optionalmany:string
محدد في: interfaces/I18n.ts:21
one?
optionalone:string
محدد في: interfaces/I18n.ts:18
other
other:
string
محدد في: interfaces/I18n.ts:22
two?
optionaltwo:string
محدد في: interfaces/I18n.ts:19
zero?
optionalzero:string
محدد في: interfaces/I18n.ts:17