Visitar URL original
getLocaleEraNames • Angular
The Wayback Machine - https://web.archive.org/web/20260515232936/https://angular.dev/api/common/getLocaleEraNames
    • Overview
@angular/common

getLocaleEraNames

function
deprecatedsince v18

Retrieves Gregorian-calendar eras for the given locale.

Deprecation warning

Angular recommends relying on the Intl API for i18n. Use Intl.DateTimeFormat for date formating instead.

API

function getLocaleEraNames(
  locale: string,
  width: TranslationWidth,
): readonly [string, string];
Jump to details