Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

NgLocaleLocalization

Returns the plural case based on the locale

      
      class NgLocaleLocalization extends NgLocalization {
  protected locale: string
getPluralCategory(value: any, locale?: string): string // inherited from common/NgLocalization
abstract getPluralCategory(value: any, locale?: string): string }

Properties

Property Description
protected locale: string

Methods

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

Optional. Default is undefined.

Returns

string