From ff950244d5d617001e497debee993ce81842fa05 Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 23 Jul 2025 12:05:20 +0200 Subject: [PATCH] fix: complete restore page translations and fix structure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix restoreTypes translation structure (was under options.types) - Add missing restore.messages.restoreStarted translation - Ensure all restore wizard strings use translations - Add corresponding German translations for restore section - Fix translation key structure to match component expectations 🤖 Generated with Claude Code Co-Authored-By: Claude --- frontend/src/components/admin/RestoreWizard.jsx | 16 ++++++++-------- frontend/src/i18n/locales/de.json | 13 ++++++++----- frontend/src/i18n/locales/en.json | 13 ++++++++----- 3 files changed, 24 insertions(+), 18 deletions(-) diff --git a/frontend/src/components/admin/RestoreWizard.jsx b/frontend/src/components/admin/RestoreWizard.jsx index 08fd5dd..3ee571b 100644 --- a/frontend/src/components/admin/RestoreWizard.jsx +++ b/frontend/src/components/admin/RestoreWizard.jsx @@ -187,8 +187,8 @@ export const RestoreWizard = () => { const renderSourceSelection = () => (
-

Select Backup Source

-

Choose where to restore the backup from

+

{t('backup.restore.source.title')}

+

{t('backup.restore.source.subtitle')}

@@ -203,8 +203,8 @@ export const RestoreWizard = () => { -

Local Backup

-

Restore from local filesystem

+

{t('backup.restore.source.local.name')}

+

{t('backup.restore.source.local.description')}

diff --git a/frontend/src/i18n/locales/de.json b/frontend/src/i18n/locales/de.json index a535952..ffd1f43 100644 --- a/frontend/src/i18n/locales/de.json +++ b/frontend/src/i18n/locales/de.json @@ -1198,10 +1198,7 @@ "enterPassphrase": "Verschlüsselungs-Passphrase eingeben", "at": "um" }, - "options": { - "title": "Wiederherstellungsoptionen", - "subtitle": "Wählen Sie, was wiederhergestellt werden soll", - "types": { + "restoreTypes": { "full": { "name": "Vollständige Wiederherstellung", "description": "Alles wiederherstellen, einschließlich Datenbank, Fotos und Archive", @@ -1222,7 +1219,10 @@ "description": "Bestimmte Elemente zur Wiederherstellung auswählen", "warning": "Nur ausgewählte Elemente werden wiederhergestellt" } - }, + }, + "options": { + "title": "Wiederherstellungsoptionen", + "subtitle": "Wählen Sie, was wiederhergestellt werden soll", "additionalOptions": { "title": "Zusätzliche Optionen", "skipPreBackup": "Vor-Wiederherstellungs-Backup überspringen", @@ -1285,6 +1285,9 @@ "starting": "Starte...", "validating": "Validiere...", "startNewRestore": "Neue Wiederherstellung starten" + }, + "messages": { + "restoreStarted": "Wiederherstellung erfolgreich gestartet" } }, "messages": { diff --git a/frontend/src/i18n/locales/en.json b/frontend/src/i18n/locales/en.json index 6d4bcc2..0a65113 100644 --- a/frontend/src/i18n/locales/en.json +++ b/frontend/src/i18n/locales/en.json @@ -1254,10 +1254,7 @@ "enterPassphrase": "Enter encryption passphrase", "at": "at" }, - "options": { - "title": "Restore Options", - "subtitle": "Choose what to restore", - "types": { + "restoreTypes": { "full": { "name": "Full Restore", "description": "Restore everything including database, photos, and archives", @@ -1278,7 +1275,10 @@ "description": "Choose specific items to restore", "warning": "Only selected items will be restored" } - }, + }, + "options": { + "title": "Restore Options", + "subtitle": "Choose what to restore", "additionalOptions": { "title": "Additional Options", "skipPreBackup": "Skip Pre-Restore Backup", @@ -1341,6 +1341,9 @@ "starting": "Starting...", "validating": "Validating...", "startNewRestore": "Start New Restore" + }, + "messages": { + "restoreStarted": "Restore started successfully" } }, "messages": {