MCPcopy Index your code
hub / github.com/angular/angular / getLocaleEraNames

Function getLocaleEraNames

packages/common/src/i18n/locale_data_api.ts:356–363  ·  view source on GitHub ↗
(
  locale: string,
  width: TranslationWidth,
)

Source from the content-addressed store, hash-verified

354 * Use `Intl.DateTimeFormat` for date formating instead.
355 */
356export function getLocaleEraNames(
357 locale: string,
358 width: TranslationWidth,
359): Readonly<[string, string]> {
360 const data = ɵfindLocaleData(locale);
361 const erasData = <[string, string][]>data[ɵLocaleDataIndex.Eras];
362 return getLastDefinedValue(erasData, width);
363}
364
365/**
366 * Retrieves the first day of the week for the given locale.

Callers 1

getDateTranslationFunction · 0.90

Calls 1

getLastDefinedValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…