From 20ff3044e236383e78f73f4c45313e425d1c6f10 Mon Sep 17 00:00:00 2001 From: Codex Agent Date: Tue, 23 Dec 2025 12:19:59 +0100 Subject: [PATCH] =?UTF-8?q?fehlende=20Nachrichten=C3=BCbersetzungen=20f?= =?UTF-8?q?=C3=BCr=20die=20erfolgreiche=20E-Mail-Verifikation=20erg=C3=A4n?= =?UTF-8?q?zt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/lang/de/auth.php | 2 ++ resources/lang/en/auth.php | 6 +++++ .../AuthVerificationTranslationsTest.php | 25 +++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 tests/Feature/AuthVerificationTranslationsTest.php diff --git a/resources/lang/de/auth.php b/resources/lang/de/auth.php index 507fef1..e561fb3 100644 --- a/resources/lang/de/auth.php +++ b/resources/lang/de/auth.php @@ -41,6 +41,8 @@ return [ 'verification' => [ 'notice' => 'Bitte bestätigen Sie Ihre E-Mail-Adresse.', 'resend' => 'E-Mail erneut senden', + 'success_title' => 'E-Mail bestätigt', + 'checkout_success_message' => 'Danke! Ihr Kauf wurde bestätigt und Ihr Event-Paket ist aktiviert.', ], 'verify_email' => 'Bitte bestätigen Sie Ihre E-Mail-Adresse. Wir haben dir eine Bestätigungs-E-Mail geschickt.', 'no_tenant_associated' => 'Deinem Konto ist kein Tenant zugeordnet. Bitte kontaktiere den Support.', diff --git a/resources/lang/en/auth.php b/resources/lang/en/auth.php index e40d410..6aed111 100644 --- a/resources/lang/en/auth.php +++ b/resources/lang/en/auth.php @@ -21,6 +21,12 @@ return [ 'loading' => 'Signing in …', 'support' => 'Need help? Contact support@fotospiel.de.', ], + 'verification' => [ + 'notice' => 'Please verify your email address.', + 'resend' => 'Resend verification email', + 'success_title' => 'Email verified', + 'checkout_success_message' => 'Thank you! Your purchase is confirmed and your event package is active.', + ], 'verify_email' => 'Your email address is not verified. Please check your inbox for the verification link.', 'no_tenant_associated' => 'We could not find a tenant for your account. Please contact support.', 'not_authorized' => 'You are not authorized to access the tenant dashboard.', diff --git a/tests/Feature/AuthVerificationTranslationsTest.php b/tests/Feature/AuthVerificationTranslationsTest.php new file mode 100644 index 0000000..a383be5 --- /dev/null +++ b/tests/Feature/AuthVerificationTranslationsTest.php @@ -0,0 +1,25 @@ +assertTranslationExists('de', 'auth.verification.success_title'); + $this->assertTranslationExists('de', 'auth.verification.checkout_success_message'); + $this->assertTranslationExists('en', 'auth.verification.success_title'); + $this->assertTranslationExists('en', 'auth.verification.checkout_success_message'); + } + + private function assertTranslationExists(string $locale, string $key): void + { + app()->setLocale($locale); + + $translation = __($key); + + $this->assertNotSame($key, $translation); + } +}