From d8f9585ac8bc79f45400484e90c097d6bc1f75f8 Mon Sep 17 00:00:00 2001 From: elpatron Date: Thu, 28 May 2026 16:47:30 +0200 Subject: [PATCH] feat(i18n): localize hardcoded headers and recovery fallback flows --- client/src/components/AuthOnboarding.tsx | 24 ++++++++++++------------ client/src/components/LogEntryEditor.tsx | 4 ++-- client/src/i18n/locales/de.json | 18 +++++++++++++++++- client/src/i18n/locales/en.json | 18 +++++++++++++++++- 4 files changed, 48 insertions(+), 16 deletions(-) diff --git a/client/src/components/AuthOnboarding.tsx b/client/src/components/AuthOnboarding.tsx index f6138e9..1665fbd 100644 --- a/client/src/components/AuthOnboarding.tsx +++ b/client/src/components/AuthOnboarding.tsx @@ -79,10 +79,10 @@ export default function AuthOnboarding({ onAuthenticated }: AuthOnboardingProps) if (success) { onAuthenticated() } else { - setError('Incorrect recovery phrase. Decryption failed.') + setError(t('auth.error_incorrect_recovery')) } } catch (err: any) { - setError('Decryption failed. Please check your recovery phrase.') + setError(t('auth.error_decryption_failed')) } finally { setLoading(false) } @@ -121,7 +121,7 @@ export default function AuthOnboarding({ onAuthenticated }: AuthOnboardingProps)