Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
Say hello to Angular's future home!Check out Angular.devHome
/

getLocaleDayNames

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

      
      getLocaleDayNames(locale: string, formStyle: FormStyle, width: TranslationWidth): ReadonlyArray<string>
    
Parameters
locale string

A locale code for the locale format rules to use.

formStyle FormStyle

The required grammatical form.

width TranslationWidth

The required character width.

Returns

ReadonlyArray<string>: An array of localized name strings. For example,[Sunday, Monday, ... Saturday] for en-US.

See also