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

getLocaleEraNames

Eras for the Gregorian calendar (e.g. AD/BC).

getLocaleEraNames(locale: string, width: TranslationWidth): [string, string]
      
      getLocaleEraNames(locale: string, width: TranslationWidth): [string, string]
    

Parameters

locale

Type: string.

width

Type: TranslationWidth.

Returns

[string, string]