mode_edit codeAPI / @angular/commonNgLocaleLocalizationlinkclass 试验性的Returns the plural case based on the localeclass 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 }属性link属性名类型说明localestringdeprecatedPluralFn((locale: string, value: number | string) => Plural) | null方法linkgetPluralCategory() linkmode_edit codegetPluralCategory(value: any, locale?: string): string参数valueType: any.localeType: string.可选. 默认值是 undefined.返回值string注解link@Injectable()