From 45c88ad1aceb2bfc00bfae05f1d6656b828b63ec Mon Sep 17 00:00:00 2001 From: Teekeks Date: Sun, 25 Feb 2024 01:56:00 +0100 Subject: [PATCH] feat(i18n): made the empty library page translatable --- client/components/app/BookShelfCategorized.vue | 12 ++++++------ client/strings/de.json | 1 + client/strings/en-us.json | 1 + 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/client/components/app/BookShelfCategorized.vue b/client/components/app/BookShelfCategorized.vue index eb4e9424a..e337abfe6 100644 --- a/client/components/app/BookShelfCategorized.vue +++ b/client/components/app/BookShelfCategorized.vue @@ -4,14 +4,14 @@
-

{{ libraryName }} Library is empty!

+

{{ $getString('MessageXLibraryIsEmpty', [libraryName]) }}

- Configure Scanner - Scan Library + {{ $strings.ButtonConfigureScanner }} + {{ $strings.ButtonScanLibrary }}
-

No results for query

+

{{ $strings.MessageNoQueryResults }}

@@ -276,11 +276,11 @@ export default { this.$store .dispatch('libraries/requestLibraryScan', { libraryId: this.$store.state.libraries.currentLibraryId }) .then(() => { - this.$toast.success('Library scan started') + this.$toast.success(this.$strings.ToastLibraryScanStarted) }) .catch((error) => { console.error('Failed to start scan', error) - this.$toast.error('Failed to start scan') + this.$toast.error(this.$strings.ToastLibraryScanFailedToStart) }) }, userUpdated(user) { diff --git a/client/strings/de.json b/client/strings/de.json index 46467734b..9d8de90be 100644 --- a/client/strings/de.json +++ b/client/strings/de.json @@ -653,6 +653,7 @@ "MessageNoMediaProgress": "Kein Medienfortschritt", "MessageNoNotifications": "Keine Benachrichtigungen", "MessageNoPodcastsFound": "Keine Podcasts gefunden", + "MessageNoQueryResults": "Keine Suchergebnisse für die Anfrage", "MessageNoResults": "Keine Ergebnisse", "MessageNoSearchResultsFor": "Keine Suchergebnisse für \"{0}\"", "MessageNoSeries": "Keine Serien", diff --git a/client/strings/en-us.json b/client/strings/en-us.json index b8860ffa5..050bb9404 100644 --- a/client/strings/en-us.json +++ b/client/strings/en-us.json @@ -653,6 +653,7 @@ "MessageNoMediaProgress": "No Media Progress", "MessageNoNotifications": "No Notifications", "MessageNoPodcastsFound": "No podcasts found", + "MessageNoQueryResults": "No results for query", "MessageNoResults": "No Results", "MessageNoSearchResultsFor": "No search results for \"{0}\"", "MessageNoSeries": "No Series",