Generate days from date-fns locale

This commit is contained in:
Tomazed 2023-01-30 01:49:30 +01:00
parent 41db0e3bb1
commit b5de517aad

View File

@ -137,31 +137,31 @@ export default {
weekdays() { weekdays() {
return [ return [
{ {
text: this.$strings.WeekdaySunday, text: this.$formatJsDate(new Date(2023, 0, 1), 'EEEE'),
value: 0 value: 0
}, },
{ {
text: this.$strings.WeekdayMonday, text: this.$formatJsDate(new Date(2023, 0, 2), 'EEEE'),
value: 1 value: 1
}, },
{ {
text: this.$strings.WeekdayTuesday, text: this.$formatJsDate(new Date(2023, 0, 3), 'EEEE'),
value: 2 value: 2
}, },
{ {
text: this.$strings.WeekdayWednesday, text: this.$formatJsDate(new Date(2023, 0, 4), 'EEEE'),
value: 3 value: 3
}, },
{ {
text: this.$strings.WeekdayThursday, text: this.$formatJsDate(new Date(2023, 0, 5), 'EEEE'),
value: 4 value: 4
}, },
{ {
text: this.$strings.WeekdayFriday, text: this.$formatJsDate(new Date(2023, 0, 6), 'EEEE'),
value: 5 value: 5
}, },
{ {
text: this.$strings.WeekdaySaturday, text: this.$formatJsDate(new Date(2023, 0, 7), 'EEEE'),
value: 6 value: 6
} }
] ]