mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-11-07 16:44:16 +01:00
Merge pull request #1438 from tomazed/LocalizedStatsPage
Localized stats page
This commit is contained in:
commit
030c20b12e
@ -27,7 +27,7 @@
|
||||
<div class="absolute -bottom-2 left-0 flex ml-6">
|
||||
<template v-for="dayObj in last7Days">
|
||||
<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>
|
||||
</template>
|
||||
</div>
|
||||
@ -108,6 +108,7 @@ export default {
|
||||
var _date = this.$addDaysToToday(i * -1)
|
||||
days.push({
|
||||
dayOfWeek: this.$formatJsDate(_date, 'EEEE'),
|
||||
dayOfWeekAbbr: this.$strings[`Weekday${this.$formatJsDate(_date, 'EEE')}`],
|
||||
date: this.$formatJsDate(_date, 'yyyy-MM-dd')
|
||||
})
|
||||
}
|
||||
@ -218,4 +219,4 @@ export default {
|
||||
},
|
||||
mounted() {}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
@ -208,7 +208,7 @@ export default {
|
||||
const date = i === 0 ? this.firstWeekStart : this.$addDaysToDate(this.firstWeekStart, i)
|
||||
const dateString = this.$formatJsDate(date, 'yyyy-MM-dd')
|
||||
const datePretty = this.$formatJsDate(date, 'MMM d, yyyy')
|
||||
const monthString = this.$formatJsDate(date, 'MMM')
|
||||
const monthString = this.$strings[`Month${this.$formatJsDate(date, 'MMM')}`]
|
||||
const value = this.daysListening[dateString] || 0
|
||||
const x = col * 13
|
||||
const y = row * 13
|
||||
@ -270,4 +270,4 @@ export default {
|
||||
},
|
||||
beforeDestroy() {}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
@ -630,10 +630,14 @@
|
||||
"WeekdayFriday": "Freitag",
|
||||
"WeekdayMon": "Mon",
|
||||
"WeekdayMonday": "Montag",
|
||||
"WeekdaySat": "Sat",
|
||||
"WeekdaySaturday": "Samstag",
|
||||
"WeekdaySun": "Sun",
|
||||
"WeekdaySunday": "Sonntag",
|
||||
"WeekdayThu": "Thu",
|
||||
"WeekdayThursday": "Donnerstag",
|
||||
"WeekdayTue": "Tue",
|
||||
"WeekdayTuesday": "Dienstag",
|
||||
"WeekdayWed": "Wed",
|
||||
"WeekdayWednesday": "Mittwoch"
|
||||
}
|
||||
}
|
||||
|
@ -630,10 +630,14 @@
|
||||
"WeekdayFriday": "Friday",
|
||||
"WeekdayMon": "Mon",
|
||||
"WeekdayMonday": "Monday",
|
||||
"WeekdaySat": "Sat",
|
||||
"WeekdaySaturday": "Saturday",
|
||||
"WeekdaySun": "Sun",
|
||||
"WeekdaySunday": "Sunday",
|
||||
"WeekdayThu": "Thu",
|
||||
"WeekdayThursday": "Thursday",
|
||||
"WeekdayTue": "Tue",
|
||||
"WeekdayTuesday": "Tuesday",
|
||||
"WeekdayWed": "Wed",
|
||||
"WeekdayWednesday": "Wednesday"
|
||||
}
|
||||
}
|
||||
|
@ -630,10 +630,14 @@
|
||||
"WeekdayFriday": "Friday",
|
||||
"WeekdayMon": "Mon",
|
||||
"WeekdayMonday": "Monday",
|
||||
"WeekdaySat": "Sat",
|
||||
"WeekdaySaturday": "Saturday",
|
||||
"WeekdaySun": "Sun",
|
||||
"WeekdaySunday": "Sunday",
|
||||
"WeekdayThu": "Thu",
|
||||
"WeekdayThursday": "Thursday",
|
||||
"WeekdayTue": "Tue",
|
||||
"WeekdayTuesday": "Tuesday",
|
||||
"WeekdayWed": "Wed",
|
||||
"WeekdayWednesday": "Wednesday"
|
||||
}
|
||||
}
|
||||
|
@ -630,9 +630,13 @@
|
||||
"WeekdayFriday": "Vendredi",
|
||||
"WeekdayMon": "Lun",
|
||||
"WeekdayMonday": "Lundi",
|
||||
"WeekdaySat": "Sam",
|
||||
"WeekdaySaturday": "Samedi",
|
||||
"WeekdaySun": "Dim",
|
||||
"WeekdaySunday": "Dimanche",
|
||||
"WeekdayThu": "Jeu",
|
||||
"WeekdayThursday": "Jeudi",
|
||||
"WeekdayTue": "Mar",
|
||||
"WeekdayTuesday": "Mardi",
|
||||
"WeekdayWed": "Mer",
|
||||
"WeekdayWednesday": "Mercredi"
|
||||
|
@ -630,10 +630,14 @@
|
||||
"WeekdayFriday": "Petak",
|
||||
"WeekdayMon": "Mon",
|
||||
"WeekdayMonday": "Ponedjeljak",
|
||||
"WeekdaySat": "Sat",
|
||||
"WeekdaySaturday": "Subota",
|
||||
"WeekdaySun": "Sun",
|
||||
"WeekdaySunday": "Nedjelja",
|
||||
"WeekdayThu": "Thu",
|
||||
"WeekdayThursday": "Četvrtak",
|
||||
"WeekdayTue": "Tue",
|
||||
"WeekdayTuesday": "Utorak",
|
||||
"WeekdayWed": "Wed",
|
||||
"WeekdayWednesday": "Srijeda"
|
||||
}
|
||||
}
|
||||
|
@ -630,10 +630,14 @@
|
||||
"WeekdayFriday": "Venerdì",
|
||||
"WeekdayMon": "Lun",
|
||||
"WeekdayMonday": "Lunedì",
|
||||
"WeekdaySat": "Sat",
|
||||
"WeekdaySaturday": "Sabato",
|
||||
"WeekdaySun": "Sun",
|
||||
"WeekdaySunday": "Domenica",
|
||||
"WeekdayThu": "Thu",
|
||||
"WeekdayThursday": "Giovedì",
|
||||
"WeekdayTue": "Tue",
|
||||
"WeekdayTuesday": "Martedì",
|
||||
"WeekdayWed": "Mer",
|
||||
"WeekdayWednesday": "Mercoledì"
|
||||
}
|
||||
}
|
||||
|
@ -630,10 +630,14 @@
|
||||
"WeekdayFriday": "Piątek",
|
||||
"WeekdayMon": "Mon",
|
||||
"WeekdayMonday": "Poniedziałek",
|
||||
"WeekdaySat": "Sat",
|
||||
"WeekdaySaturday": "Sobota",
|
||||
"WeekdaySun": "Sun",
|
||||
"WeekdaySunday": "Niedziela",
|
||||
"WeekdayThu": "Thu",
|
||||
"WeekdayThursday": "Czwartek",
|
||||
"WeekdayTue": "Tue",
|
||||
"WeekdayTuesday": "Wtorek",
|
||||
"WeekdayWed": "Wed",
|
||||
"WeekdayWednesday": "Środa"
|
||||
}
|
||||
}
|
||||
|
@ -630,10 +630,14 @@
|
||||
"WeekdayFriday": "星期五",
|
||||
"WeekdayMon": "Mon",
|
||||
"WeekdayMonday": "星期一",
|
||||
"WeekdaySat": "Sat",
|
||||
"WeekdaySaturday": "星期六",
|
||||
"WeekdaySun": "Sun",
|
||||
"WeekdaySunday": "星期日",
|
||||
"WeekdayThu": "Thu",
|
||||
"WeekdayThursday": "星期四",
|
||||
"WeekdayTue": "Tue",
|
||||
"WeekdayTuesday": "星期二",
|
||||
"WeekdayWed": "Wed",
|
||||
"WeekdayWednesday": "星期三"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user