From d91e56b59b05ca9fd9dcbd0a9e0c509b14df0e6d Mon Sep 17 00:00:00 2001 From: Mittelblut9 Date: Mon, 27 Nov 2023 09:19:20 +0100 Subject: [PATCH] fix: update translation keys & translation source for twitch offline state --- src/assets/json/translations/de_DE/de_DE.json | 2 +- src/assets/json/translations/en_US/en_US.json | 2 +- src/assets/json/translations/fr_FR/fr_FR.json | 2 +- src/assets/json/translations/hu_HU/hu_HU.json | 2 +- src/assets/json/translations/pl_PL/pl_PL.json | 2 +- utils/classes/Notifications/Twitch/TwitchNotification.js | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/assets/json/translations/de_DE/de_DE.json b/src/assets/json/translations/de_DE/de_DE.json index 7667369bf..26861c2da 100644 --- a/src/assets/json/translations/de_DE/de_DE.json +++ b/src/assets/json/translations/de_DE/de_DE.json @@ -484,7 +484,7 @@ "twitch": { "endedStream": "%q hat den Stream beendet!", "startedHrsAgo": "Stream gestartet vor %q Stunden - Zuletzt aktualisiert", - "endedHrsAgo": "Stream endete vor %q Stunden", + "wasLiveFor": "Stream endete vor %q Stunden", "justWentLive": "%q ist soeben live gegangen!", "justEnded": "%q hat gerade seinen Stream beendet!", "fields": { diff --git a/src/assets/json/translations/en_US/en_US.json b/src/assets/json/translations/en_US/en_US.json index a98e9f8df..75b558deb 100644 --- a/src/assets/json/translations/en_US/en_US.json +++ b/src/assets/json/translations/en_US/en_US.json @@ -484,7 +484,7 @@ "twitch": { "endedStream": "%q has ended their stream!", "startedHrsAgo": "Stream started %q hours ago - Last updated", - "endedHrsAgo": "Stream ended %q hours ago", + "wasLiveFor": "Stream was Live for %q hours", "justWentLive": "%q just went live!", "justEnded": "%q just ended their stream!", "fields": { diff --git a/src/assets/json/translations/fr_FR/fr_FR.json b/src/assets/json/translations/fr_FR/fr_FR.json index a98e9f8df..93018c2e8 100644 --- a/src/assets/json/translations/fr_FR/fr_FR.json +++ b/src/assets/json/translations/fr_FR/fr_FR.json @@ -484,7 +484,7 @@ "twitch": { "endedStream": "%q has ended their stream!", "startedHrsAgo": "Stream started %q hours ago - Last updated", - "endedHrsAgo": "Stream ended %q hours ago", + "wasLiveFor": "Stream ended %q hours ago", "justWentLive": "%q just went live!", "justEnded": "%q just ended their stream!", "fields": { diff --git a/src/assets/json/translations/hu_HU/hu_HU.json b/src/assets/json/translations/hu_HU/hu_HU.json index a47c101ae..3383687e8 100644 --- a/src/assets/json/translations/hu_HU/hu_HU.json +++ b/src/assets/json/translations/hu_HU/hu_HU.json @@ -484,7 +484,7 @@ "twitch": { "endedStream": "%q befejezte a streamet!", "startedHrsAgo": "Stream indult %q órával ezelőtt - Utolsó frissítés", - "endedHrsAgo": "Az adatfolyam %q órával ezelőtt ért véget", + "wasLiveFor": "Az adatfolyam %q órával ezelőtt ért véget", "justWentLive": "%q épp most indult el!", "justEnded": "%q most fejezte be a streamet!", "fields": { diff --git a/src/assets/json/translations/pl_PL/pl_PL.json b/src/assets/json/translations/pl_PL/pl_PL.json index b2a10327a..398d99292 100644 --- a/src/assets/json/translations/pl_PL/pl_PL.json +++ b/src/assets/json/translations/pl_PL/pl_PL.json @@ -484,7 +484,7 @@ "twitch": { "endedStream": "%q zakończył swój stream!", "startedHrsAgo": "Stream rozpoczęty %q godzin temu - Ostatnia aktualizacja", - "endedHrsAgo": "Stream zakończył się %q godzin temu", + "wasLiveFor": "Stream zakończył się %q godzin temu", "justWentLive": "%q właśnie zostało uruchomione!", "justEnded": "%q właśnie zakończył swój stream!", "fields": { diff --git a/utils/classes/Notifications/Twitch/TwitchNotification.js b/utils/classes/Notifications/Twitch/TwitchNotification.js index e811f3555..8b05d3f0d 100644 --- a/utils/classes/Notifications/Twitch/TwitchNotification.js +++ b/utils/classes/Notifications/Twitch/TwitchNotification.js @@ -185,7 +185,7 @@ module.exports = class TwitchNotification extends TwitchNotifier { footer: { text: isLive ? global.t.trans(['info.notifications.twitch.startedHrsAgo', uptime]) - : global.t.trans(['info.notifications.twitch.endedHrsAgo', uptime]), + : global.t.trans(['info.notifications.twitch.wasLiveFor', uptime]), }, image: isLive ? stream.getThumbnailUrl(1920, 1080) : streamer.profilePictureUrl, url: isLive