mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-01 11:38:58 +01:00
Fix Localized Days in Your Stats page
This commit is contained in:
parent
4ae057f626
commit
5e943ef152
@ -27,7 +27,7 @@
|
|||||||
<div class="absolute -bottom-2 left-0 flex ml-6">
|
<div class="absolute -bottom-2 left-0 flex ml-6">
|
||||||
<template v-for="dayObj in last7Days">
|
<template v-for="dayObj in last7Days">
|
||||||
<div :key="dayObj.date" :style="{ width: daySpacing + daySpacing / 14 + 'px' }">
|
<div :key="dayObj.date" :style="{ width: daySpacing + daySpacing / 14 + 'px' }">
|
||||||
<p class="text-sm font-book">{{ dayObj.dayOfWeek.slice(0, 3) }}</p>
|
<p class="text-sm font-book">{{ dayObj.dayOfWeekAbbr }}</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
@ -108,6 +108,7 @@ export default {
|
|||||||
var _date = this.$addDaysToToday(i * -1)
|
var _date = this.$addDaysToToday(i * -1)
|
||||||
days.push({
|
days.push({
|
||||||
dayOfWeek: this.$formatJsDate(_date, 'EEEE'),
|
dayOfWeek: this.$formatJsDate(_date, 'EEEE'),
|
||||||
|
dayOfWeekAbbr: this.$strings[`Weekday${this.$formatJsDate(_date, 'EEE')}`],
|
||||||
date: this.$formatJsDate(_date, 'yyyy-MM-dd')
|
date: this.$formatJsDate(_date, 'yyyy-MM-dd')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -218,4 +219,4 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {}
|
mounted() {}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -630,10 +630,14 @@
|
|||||||
"WeekdayFriday": "Freitag",
|
"WeekdayFriday": "Freitag",
|
||||||
"WeekdayMon": "Mon",
|
"WeekdayMon": "Mon",
|
||||||
"WeekdayMonday": "Montag",
|
"WeekdayMonday": "Montag",
|
||||||
|
"WeekdaySat": "Sat",
|
||||||
"WeekdaySaturday": "Samstag",
|
"WeekdaySaturday": "Samstag",
|
||||||
|
"WeekdaySun": "Sun",
|
||||||
"WeekdaySunday": "Sonntag",
|
"WeekdaySunday": "Sonntag",
|
||||||
|
"WeekdayThu": "Thu",
|
||||||
"WeekdayThursday": "Donnerstag",
|
"WeekdayThursday": "Donnerstag",
|
||||||
|
"WeekdayTue": "Tue",
|
||||||
"WeekdayTuesday": "Dienstag",
|
"WeekdayTuesday": "Dienstag",
|
||||||
"WeekdayWed": "Wed",
|
"WeekdayWed": "Wed",
|
||||||
"WeekdayWednesday": "Mittwoch"
|
"WeekdayWednesday": "Mittwoch"
|
||||||
}
|
}
|
||||||
|
@ -630,10 +630,14 @@
|
|||||||
"WeekdayFriday": "Friday",
|
"WeekdayFriday": "Friday",
|
||||||
"WeekdayMon": "Mon",
|
"WeekdayMon": "Mon",
|
||||||
"WeekdayMonday": "Monday",
|
"WeekdayMonday": "Monday",
|
||||||
|
"WeekdaySat": "Sat",
|
||||||
"WeekdaySaturday": "Saturday",
|
"WeekdaySaturday": "Saturday",
|
||||||
|
"WeekdaySun": "Sun",
|
||||||
"WeekdaySunday": "Sunday",
|
"WeekdaySunday": "Sunday",
|
||||||
|
"WeekdayThu": "Thu",
|
||||||
"WeekdayThursday": "Thursday",
|
"WeekdayThursday": "Thursday",
|
||||||
|
"WeekdayTue": "Tue",
|
||||||
"WeekdayTuesday": "Tuesday",
|
"WeekdayTuesday": "Tuesday",
|
||||||
"WeekdayWed": "Wed",
|
"WeekdayWed": "Wed",
|
||||||
"WeekdayWednesday": "Wednesday"
|
"WeekdayWednesday": "Wednesday"
|
||||||
}
|
}
|
||||||
|
@ -630,10 +630,14 @@
|
|||||||
"WeekdayFriday": "Friday",
|
"WeekdayFriday": "Friday",
|
||||||
"WeekdayMon": "Mon",
|
"WeekdayMon": "Mon",
|
||||||
"WeekdayMonday": "Monday",
|
"WeekdayMonday": "Monday",
|
||||||
|
"WeekdaySat": "Sat",
|
||||||
"WeekdaySaturday": "Saturday",
|
"WeekdaySaturday": "Saturday",
|
||||||
|
"WeekdaySun": "Sun",
|
||||||
"WeekdaySunday": "Sunday",
|
"WeekdaySunday": "Sunday",
|
||||||
|
"WeekdayThu": "Thu",
|
||||||
"WeekdayThursday": "Thursday",
|
"WeekdayThursday": "Thursday",
|
||||||
|
"WeekdayTue": "Tue",
|
||||||
"WeekdayTuesday": "Tuesday",
|
"WeekdayTuesday": "Tuesday",
|
||||||
"WeekdayWed": "Wed",
|
"WeekdayWed": "Wed",
|
||||||
"WeekdayWednesday": "Wednesday"
|
"WeekdayWednesday": "Wednesday"
|
||||||
}
|
}
|
||||||
|
@ -630,9 +630,13 @@
|
|||||||
"WeekdayFriday": "Vendredi",
|
"WeekdayFriday": "Vendredi",
|
||||||
"WeekdayMon": "Lun",
|
"WeekdayMon": "Lun",
|
||||||
"WeekdayMonday": "Lundi",
|
"WeekdayMonday": "Lundi",
|
||||||
|
"WeekdaySat": "Sam",
|
||||||
"WeekdaySaturday": "Samedi",
|
"WeekdaySaturday": "Samedi",
|
||||||
|
"WeekdaySun": "Dim",
|
||||||
"WeekdaySunday": "Dimanche",
|
"WeekdaySunday": "Dimanche",
|
||||||
|
"WeekdayThu": "Jeu",
|
||||||
"WeekdayThursday": "Jeudi",
|
"WeekdayThursday": "Jeudi",
|
||||||
|
"WeekdayTue": "Mar",
|
||||||
"WeekdayTuesday": "Mardi",
|
"WeekdayTuesday": "Mardi",
|
||||||
"WeekdayWed": "Mer",
|
"WeekdayWed": "Mer",
|
||||||
"WeekdayWednesday": "Mercredi"
|
"WeekdayWednesday": "Mercredi"
|
||||||
|
@ -630,10 +630,14 @@
|
|||||||
"WeekdayFriday": "Petak",
|
"WeekdayFriday": "Petak",
|
||||||
"WeekdayMon": "Mon",
|
"WeekdayMon": "Mon",
|
||||||
"WeekdayMonday": "Ponedjeljak",
|
"WeekdayMonday": "Ponedjeljak",
|
||||||
|
"WeekdaySat": "Sat",
|
||||||
"WeekdaySaturday": "Subota",
|
"WeekdaySaturday": "Subota",
|
||||||
|
"WeekdaySun": "Sun",
|
||||||
"WeekdaySunday": "Nedjelja",
|
"WeekdaySunday": "Nedjelja",
|
||||||
|
"WeekdayThu": "Thu",
|
||||||
"WeekdayThursday": "Četvrtak",
|
"WeekdayThursday": "Četvrtak",
|
||||||
|
"WeekdayTue": "Tue",
|
||||||
"WeekdayTuesday": "Utorak",
|
"WeekdayTuesday": "Utorak",
|
||||||
"WeekdayWed": "Wed",
|
"WeekdayWed": "Wed",
|
||||||
"WeekdayWednesday": "Srijeda"
|
"WeekdayWednesday": "Srijeda"
|
||||||
}
|
}
|
||||||
|
@ -630,10 +630,14 @@
|
|||||||
"WeekdayFriday": "Venerdì",
|
"WeekdayFriday": "Venerdì",
|
||||||
"WeekdayMon": "Lun",
|
"WeekdayMon": "Lun",
|
||||||
"WeekdayMonday": "Lunedì",
|
"WeekdayMonday": "Lunedì",
|
||||||
|
"WeekdaySat": "Sat",
|
||||||
"WeekdaySaturday": "Sabato",
|
"WeekdaySaturday": "Sabato",
|
||||||
|
"WeekdaySun": "Sun",
|
||||||
"WeekdaySunday": "Domenica",
|
"WeekdaySunday": "Domenica",
|
||||||
|
"WeekdayThu": "Thu",
|
||||||
"WeekdayThursday": "Giovedì",
|
"WeekdayThursday": "Giovedì",
|
||||||
|
"WeekdayTue": "Tue",
|
||||||
"WeekdayTuesday": "Martedì",
|
"WeekdayTuesday": "Martedì",
|
||||||
"WeekdayWed": "Mer",
|
"WeekdayWed": "Mer",
|
||||||
"WeekdayWednesday": "Mercoledì"
|
"WeekdayWednesday": "Mercoledì"
|
||||||
}
|
}
|
||||||
|
@ -630,10 +630,14 @@
|
|||||||
"WeekdayFriday": "Piątek",
|
"WeekdayFriday": "Piątek",
|
||||||
"WeekdayMon": "Mon",
|
"WeekdayMon": "Mon",
|
||||||
"WeekdayMonday": "Poniedziałek",
|
"WeekdayMonday": "Poniedziałek",
|
||||||
|
"WeekdaySat": "Sat",
|
||||||
"WeekdaySaturday": "Sobota",
|
"WeekdaySaturday": "Sobota",
|
||||||
|
"WeekdaySun": "Sun",
|
||||||
"WeekdaySunday": "Niedziela",
|
"WeekdaySunday": "Niedziela",
|
||||||
|
"WeekdayThu": "Thu",
|
||||||
"WeekdayThursday": "Czwartek",
|
"WeekdayThursday": "Czwartek",
|
||||||
|
"WeekdayTue": "Tue",
|
||||||
"WeekdayTuesday": "Wtorek",
|
"WeekdayTuesday": "Wtorek",
|
||||||
"WeekdayWed": "Wed",
|
"WeekdayWed": "Wed",
|
||||||
"WeekdayWednesday": "Środa"
|
"WeekdayWednesday": "Środa"
|
||||||
}
|
}
|
||||||
|
@ -630,10 +630,14 @@
|
|||||||
"WeekdayFriday": "星期五",
|
"WeekdayFriday": "星期五",
|
||||||
"WeekdayMon": "Mon",
|
"WeekdayMon": "Mon",
|
||||||
"WeekdayMonday": "星期一",
|
"WeekdayMonday": "星期一",
|
||||||
|
"WeekdaySat": "Sat",
|
||||||
"WeekdaySaturday": "星期六",
|
"WeekdaySaturday": "星期六",
|
||||||
|
"WeekdaySun": "Sun",
|
||||||
"WeekdaySunday": "星期日",
|
"WeekdaySunday": "星期日",
|
||||||
|
"WeekdayThu": "Thu",
|
||||||
"WeekdayThursday": "星期四",
|
"WeekdayThursday": "星期四",
|
||||||
|
"WeekdayTue": "Tue",
|
||||||
"WeekdayTuesday": "星期二",
|
"WeekdayTuesday": "星期二",
|
||||||
"WeekdayWed": "Wed",
|
"WeekdayWed": "Wed",
|
||||||
"WeekdayWednesday": "星期三"
|
"WeekdayWednesday": "星期三"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user