NgLocaleLocalization

class

npm Package @angular/common
Module import { NgLocaleLocalization } from '@angular/common';
Source common/src/i18n/localization.ts

Overview

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
}

Description

Returns the plural case based on the locale

Constructor

constructor(locale: string, deprecatedPluralFn?: ((locale: string, value: number | string) => Plural) | null)

Members

protected locale: string

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

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

Annotations

@Injectable()

© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/common/NgLocaleLocalization