getLocaleEraNames
function
deprecatedsince v18
Retrieves Gregorian-calendar eras for the given locale.
Deprecation warning
API
function getLocaleEraNames(
locale: string,
width: TranslationWidth,
): readonly [string, string];getLocaleEraNames
readonly [string, string]Retrieves Gregorian-calendar eras for the given locale.
@paramlocale
stringA locale code for the locale format rules to use.
@returns
readonly [string, string]Jump to details