跳转到内容

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