@angular/commongetLocaleWeekEndRange
function
deprecatedsince v18
codeRange of week days that are considered the week-end for the given locale.
Internationalization (i18n) GuideDeprecation warning
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 .
[orthos-back.svg]On this page
arrow_upward_alt Back to the top
@deprecatedAngular 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 .
@paramlocalestringA locale code for the locale format rules to use.
@returns[WeekDay, WeekDay]The range of day values, [startDay, endDay].
Jump to details