linkNgLocaleLocalization
npm Package | @angular/common |
---|---|
Module | import { NgLocaleLocalization } from '@angular/common'; |
Source | common/src/i18n/localization.ts |
linkOverview
class NgLocaleLocalization extends NgLocalization {
constructor(locale: string, deprecatedPluralFn?: ((locale: string, value: number | string) => Plural) | null)
protected locale: string
protected deprecatedPluralFn?: ((locale: string, value: number | string) => Plural) | null
getPluralCategory(value: any, locale?: string): string
// inherited from common/NgLocalization
getPluralCategory(value: any, locale?: string): string
}
linkDescription
Returns the plural case based on the locale
linkConstructor
constructor(locale: string, deprecatedPluralFn?: ((locale: string, value: number | string) => Plural) | null)
linkMembers
protected deprecatedPluralFn?: ((locale: string, value: number | string) => Plural) | null
linkAnnotations
@Injectable()