• 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