I have a LWC that displays a calendar, which calls to APEX and the class returns all the data needed to fill the calendar. By default, the data is returned where Sunday is the first day of the week. However, in some locales, the first day of the week is Monday or Saturday.
I know I can access the user's locale with
UserInfo.getLocale(), but I don't know how to find which day starts the week. I could look it up in a table or create a custom metadatatype, but that seems tedious. I have to think there's some internal property like