Is there a easy way to get all week day names sorted depending on locale?
Info.weekdays() seems to be pretty close to what I want, but the sorting is not how I would expect it.
Example:
const info = luxon.Info
console.log(info.weekdays('short', {locale: 'de'}));
// actual: ['Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So']
console.log(info.weekdays('short', {locale: 'en-US'}));
// actual: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
// expected: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
Is there maybe a util function to get the start of week for a locale to resort this array or is there a more easy approach with the Intl
API?
Thanks in advance!