fehlende Nachrichtenübersetzungen für die erfolgreiche E-Mail-Verifikation ergänzt

This commit is contained in:
Codex Agent
2025-12-23 12:19:59 +01:00
parent 886b24b06b
commit 20ff3044e2
3 changed files with 33 additions and 0 deletions

View File

@@ -41,6 +41,8 @@ return [
'verification' => [ 'verification' => [
'notice' => 'Bitte bestätigen Sie Ihre E-Mail-Adresse.', 'notice' => 'Bitte bestätigen Sie Ihre E-Mail-Adresse.',
'resend' => 'E-Mail erneut senden', '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.', '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.', 'no_tenant_associated' => 'Deinem Konto ist kein Tenant zugeordnet. Bitte kontaktiere den Support.',

View File

@@ -21,6 +21,12 @@ return [
'loading' => 'Signing in …', 'loading' => 'Signing in …',
'support' => 'Need help? Contact support@fotospiel.de.', '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.', '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.', '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.', 'not_authorized' => 'You are not authorized to access the tenant dashboard.',

View File

@@ -0,0 +1,25 @@
<?php
namespace Tests\Feature;
use Tests\TestCase;
class AuthVerificationTranslationsTest extends TestCase
{
public function test_auth_verification_translations_exist_in_de_and_en(): void
{
$this->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);
}
}