This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

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

  // inherited from common/NgLocalization
  abstract getPluralCategory(value: any, locale?: string): string
}
    

Properties

Property Description
protected locale: string
protected deprecatedPluralFn?: ((locale: string, value: number | string) => Plural) | null

Methods

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

Parameters

value

Type: any.

locale

Type: string.

Optional. Default is undefined.

Returns

string