Visitar URL original
getLocaleWeekEndRange • Angular
The Wayback Machine - https://web.archive.org/web/20260217022322/https://angular.dev/api/common/getLocaleWeekEndRange
    • Overview
@angular/common

getLocaleWeekEndRange

function
deprecatedsince v18

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

Deprecation 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 .

API

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