• Overview
@angular/common

getLocaleWeekEndRange

function
Deprecated

Range of week days that are considered the week-end for the given locale.

  
    function getLocaleWeekEndRange(  locale: string): [WeekDay, WeekDay];
  
  

getLocaleWeekEndRange

Range of week days that are considered the week-end for the given locale.

@deprecated

Angular recommends relying on the Intl API for i18n. Intl's getWeekInfo has partial support (Chromium M99 & Safari 17). Libraries like Luxon rely on Intl but fallback on the ISO 8601 definition (Saturday+Sunday) if getWeekInfo is not supported .

@paramlocalestring

A locale code for the locale format rules to use.

@returns[WeekDay, WeekDay]
Jump to details