Mehrsprachigkeit der Oberfläche (Deutsch Standard, Englisch wählbar)
- Sprache je Benutzer (users.locale), Middleware SetLocale, Auswahl unter Einstellungen → Darstellung; angebotene Sprachen in config/app.php - Übersetzungen über Laravel Lang (lang/de.json, lang/de/*.php), Seitentitel aus #[Title] werden übersetzt - Eigene Texte und Korrekturen in lang/project/de.json, übernommen mit `artisan lang:apply-project` (überstehen `lang:update`) - Tests: jede im Code verwendete Übersetzung ist vorhanden, eigene Übersetzungen sind übernommen, Sprachwahl und Standardsprache; SecurityTest prüft Texte sprachunabhängig über __() - lang/ von Pint ausgenommen (erzeugte Dateien) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
cdd2d5b676
commit
db2d5d6228
@@ -39,10 +39,10 @@ class SecurityTest extends TestCase
|
||||
|
||||
$response->assertOk();
|
||||
|
||||
$response->assertSee('Passkeys');
|
||||
$response->assertSee('No passkeys yet');
|
||||
$response->assertSee('Two-factor authentication');
|
||||
$response->assertSee('Enable 2FA');
|
||||
$response->assertSee(__('Passkeys'));
|
||||
$response->assertSee(__('No passkeys yet'));
|
||||
$response->assertSee(__('Two-factor authentication'));
|
||||
$response->assertSee(__('Enable 2FA'));
|
||||
}
|
||||
|
||||
public function test_security_settings_page_requires_password_confirmation_when_enabled(): void
|
||||
@@ -65,10 +65,10 @@ class SecurityTest extends TestCase
|
||||
->withSession(['auth.password_confirmed_at' => time()])
|
||||
->get(route('security.edit'))
|
||||
->assertOk()
|
||||
->assertSee('Update password')
|
||||
->assertDontSee('Manage your passkeys for passwordless sign-in')
|
||||
->assertDontSee('Add a passkey to sign in without a password')
|
||||
->assertDontSee('Two-factor authentication');
|
||||
->assertSee(__('Update password'))
|
||||
->assertDontSee(__('Manage your passkeys for passwordless sign-in'))
|
||||
->assertDontSee(__('Add a passkey to sign in without a password'))
|
||||
->assertDontSee(__('Two-factor authentication'));
|
||||
}
|
||||
|
||||
public function test_two_factor_authentication_disabled_when_confirmation_abandoned_between_requests(): void
|
||||
|
||||
Reference in New Issue
Block a user