From 5e943ef152488988d2304e6d8a067164b29e26af Mon Sep 17 00:00:00 2001 From: Tomazed Date: Tue, 24 Jan 2023 19:19:42 +0100 Subject: [PATCH] Fix Localized Days in Your Stats page --- client/components/stats/DailyListeningChart.vue | 5 +++-- client/strings/de.json | 6 +++++- client/strings/en-us.json | 6 +++++- client/strings/es.json | 6 +++++- client/strings/fr.json | 4 ++++ client/strings/hr.json | 6 +++++- client/strings/it.json | 6 +++++- client/strings/pl.json | 6 +++++- client/strings/zh-cn.json | 6 +++++- 9 files changed, 42 insertions(+), 9 deletions(-) diff --git a/client/components/stats/DailyListeningChart.vue b/client/components/stats/DailyListeningChart.vue index ad69aea8..cb66668a 100644 --- a/client/components/stats/DailyListeningChart.vue +++ b/client/components/stats/DailyListeningChart.vue @@ -27,7 +27,7 @@
@@ -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() {} } - \ No newline at end of file + diff --git a/client/strings/de.json b/client/strings/de.json index 5731e656..81c8c910 100644 --- a/client/strings/de.json +++ b/client/strings/de.json @@ -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" -} \ No newline at end of file +} diff --git a/client/strings/en-us.json b/client/strings/en-us.json index eaa231d4..2c68bba0 100644 --- a/client/strings/en-us.json +++ b/client/strings/en-us.json @@ -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" -} \ No newline at end of file +} diff --git a/client/strings/es.json b/client/strings/es.json index eaa231d4..2c68bba0 100644 --- a/client/strings/es.json +++ b/client/strings/es.json @@ -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" -} \ No newline at end of file +} diff --git a/client/strings/fr.json b/client/strings/fr.json index f7ddd6ea..d237c68d 100644 --- a/client/strings/fr.json +++ b/client/strings/fr.json @@ -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" diff --git a/client/strings/hr.json b/client/strings/hr.json index c9117913..bb144df1 100644 --- a/client/strings/hr.json +++ b/client/strings/hr.json @@ -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" -} \ No newline at end of file +} diff --git a/client/strings/it.json b/client/strings/it.json index ee15f885..15f0d9dd 100644 --- a/client/strings/it.json +++ b/client/strings/it.json @@ -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ì" -} \ No newline at end of file +} diff --git a/client/strings/pl.json b/client/strings/pl.json index f6530e46..f87a79a3 100644 --- a/client/strings/pl.json +++ b/client/strings/pl.json @@ -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" -} \ No newline at end of file +} diff --git a/client/strings/zh-cn.json b/client/strings/zh-cn.json index d84d8e23..4e594305 100644 --- a/client/strings/zh-cn.json +++ b/client/strings/zh-cn.json @@ -630,10 +630,14 @@ "WeekdayFriday": "星期五", "WeekdayMon": "Mon", "WeekdayMonday": "星期一", + "WeekdaySat": "Sat", "WeekdaySaturday": "星期六", + "WeekdaySun": "Sun", "WeekdaySunday": "星期日", + "WeekdayThu": "Thu", "WeekdayThursday": "星期四", + "WeekdayTue": "Tue", "WeekdayTuesday": "星期二", "WeekdayWed": "Wed", "WeekdayWednesday": "星期三" -} \ No newline at end of file +}