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

Function getLocaleDayNames

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

Source from the content-addressed store, hash-verified

297 * Use `Intl.DateTimeFormat` for date formating instead.
298 */
299export function getLocaleDayNames(
300 locale: string,
301 formStyle: FormStyle,
302 width: TranslationWidth,
303): ReadonlyArray<string> {
304 const data = ɵfindLocaleData(locale);
305 const daysData = <string[][][]>[
306 data[ɵLocaleDataIndex.DaysFormat],
307 data[ɵLocaleDataIndex.DaysStandalone],
308 ];
309 const days = getLastDefinedValue(daysData, formStyle);
310 return getLastDefinedValue(days, width);
311}
312
313/**
314 * Retrieves months of the year for the given locale, using the Gregorian calendar.

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…