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

Function getLocaleMonthNames

packages/common/src/i18n/locale_data_api.ts:328–340  ·  view source on GitHub ↗
(
  locale: string,
  formStyle: FormStyle,
  width: TranslationWidth,
)

Source from the content-addressed store, hash-verified

326 * Use `Intl.DateTimeFormat` for date formating instead.
327 */
328export function getLocaleMonthNames(
329 locale: string,
330 formStyle: FormStyle,
331 width: TranslationWidth,
332): ReadonlyArray<string> {
333 const data = ɵfindLocaleData(locale);
334 const monthsData = <string[][][]>[
335 data[ɵLocaleDataIndex.MonthsFormat],
336 data[ɵLocaleDataIndex.MonthsStandalone],
337 ];
338 const months = getLastDefinedValue(monthsData, formStyle);
339 return getLastDefinedValue(months, width);
340}
341
342/**
343 * Retrieves Gregorian-calendar eras for the given locale.

Callers 2

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…