NgLocaleLocalization

Returns the plural case based on the locale

class NgLocaleLocalization extends NgLocalization { protected locale: string protected deprecatedPluralFn?: ((locale: string, value: number | string) => Plural) | null getPluralCategory(value: any, locale?: string): string // 继承自 common/NgLocalization abstract getPluralCategory(value: any, locale?: string): string }

属性

属性名类型说明
locale
deprecatedPluralFn

方法

getPluralCategory(value: any, locale?: string): string

参数

value

Type: any.

locale

Type: string.

可选. 默认值是 undefined.

返回值

string

注解

@Injectable()