getLocaleEraNames
function
deprecatedsince v18
Retrieves Gregorian-calendar eras for the given locale.
Deprecation warning
API
function getLocaleEraNames(
locale: string,
width: TranslationWidth,
): readonly [string, string];Jump to details
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.
function getLocaleEraNames(
locale: string,
width: TranslationWidth,
): readonly [string, string];