From 4ae057f626c9aeb0dd28bc336ecf9890c3839104 Mon Sep 17 00:00:00 2001 From: Tomazed Date: Tue, 24 Jan 2023 18:03:32 +0100 Subject: [PATCH] Fix Localized Months displaying in heatmap --- client/components/stats/Heatmap.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/components/stats/Heatmap.vue b/client/components/stats/Heatmap.vue index 87e10c53..fb6f5482 100644 --- a/client/components/stats/Heatmap.vue +++ b/client/components/stats/Heatmap.vue @@ -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() {} } - \ No newline at end of file +