diff --git a/client/components/stats/DailyListeningChart.vue b/client/components/stats/DailyListeningChart.vue index cb66668a..fda6ed89 100644 --- a/client/components/stats/DailyListeningChart.vue +++ b/client/components/stats/DailyListeningChart.vue @@ -108,7 +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')}`], + dayOfWeekAbbr: this.$formatJsDate(_date, 'EEE'), date: this.$formatJsDate(_date, 'yyyy-MM-dd') }) } diff --git a/client/components/stats/Heatmap.vue b/client/components/stats/Heatmap.vue index fb6f5482..7ad71f1a 100644 --- a/client/components/stats/Heatmap.vue +++ b/client/components/stats/Heatmap.vue @@ -68,7 +68,7 @@ export default { dayLabels() { return [ { - label: this.$strings.WeekdayMon, + label: this.$formatJsDate(new Date(2023, 0, 2), 'EEE'), style: { transform: `translate(${-25}px, ${13}px)`, lineHeight: '10px', @@ -76,7 +76,7 @@ export default { } }, { - label: this.$strings.WeekdayWed, + label: this.$formatJsDate(new Date(2023, 0, 4), 'EEE'), style: { transform: `translate(${-25}px, ${13 * 3}px)`, lineHeight: '10px', @@ -84,7 +84,7 @@ export default { } }, { - label: this.$strings.WeekdayFri, + label: this.$formatJsDate(new Date(2023, 0, 6), 'EEE'), style: { transform: `translate(${-25}px, ${13 * 5}px)`, lineHeight: '10px', @@ -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.$strings[`Month${this.$formatJsDate(date, 'MMM')}`] + const monthString = this.$formatJsDate(date, 'MMM') const value = this.daysListening[dateString] || 0 const x = col * 13 const y = row * 13