• 개요
@angular/common

getLocaleDayNames

함수
사용 중단 권고v18.0부터

Retrieves days of the week for the given locale, using the Gregorian calendar.

사용 중단을 권고합니다.

Angular recommends relying on the Intl API for i18n. Use Intl.DateTimeFormat for date formating instead.

API

function getLocaleDayNames(
  locale: string,
  formStyle: FormStyle,
  width: TranslationWidth,
): readonly string[];
@deprecated

Angular recommends relying on the Intl API for i18n. Use Intl.DateTimeFormat for date formating instead.

@paramlocalestring

A locale code for the locale format rules to use.

@paramformStyleFormStyle

The required grammatical form.

@paramwidthTranslationWidth

The required character width.

@returnsreadonly string[]

An array of localized name strings. For example,[Sunday, Monday, ... Saturday] for en-US.

상세 내용으로 이동