* feat: visible Terms/Privacy links on the auth screens Social-platform app reviews (TikTok explicitly) require both links to be reachable from the public site without logging in or opening a menu. * Cover the legal links with tests and tidy the layout The links are a compliance artifact an outside reviewer checks, but nothing asserted they exist. A refactor of this layout could drop the footer silently and the next platform submission would fail the same check that prompted the PR. A feature test asserts the shared prop reaches both guest screens and carries whatever the install configured, and a browser test asserts the two links actually render to a logged-out visitor. Declares legal on SharedData, so the props read through the interface rather than its index signature and the inline cast goes away. Adds rel="noopener noreferrer" to both anchors, matching every other target="_blank" in the codebase, and orders the imports the way eslint expects so the file lands clean rather than relying on --fix in CI. Drops the comment explaining why the links are there: that rationale belongs in the commit and the pull request, and the sibling comments in this file describe markup rather than justify decisions. * Reuse the legal sentence the register screen already had The register screen has shown "By continuing, you agree to our Terms of Service and Privacy Policy" in production for a long time, translated into all sixteen locales. Only the login screen was missing it, and the two URLs were hardcoded inside the translated string, so a self-hosted install could not point them at its own documents. So this keeps what already worked and changes only those two things. The markup moves into one component, which the login screen now renders as well. The translated sentence keeps its wording and its link labels; only the href becomes an i18n placeholder that the component fills from config. That is one line per locale, and no new translation keys. Reverting the footer out of AuthSplitLayout also stops the links from appearing on the workspace index and create screens, which reach that layout too and are seen after login rather than before it. The sentence no longer hides on a self-hosted install. It was hidden because it named TryPost's own documents; now that the URLs are configuration, an install that sets them wants it shown. A feature test covers the shared prop on both screens and the placeholder in every locale; a browser test covers the rendered sentence, since the links are a compliance artifact an outside reviewer checks and nothing guarded them. * Let the browser assertions do their own waiting The test hand-rolled a polling loop in injected JavaScript to wait for the element to mount, because the project notes say browser assertions do not wait for SPA paint. They do. visit() returns a PendingAwaitablePage backed by AwaitableWebpage, whose __call wraps every method in Execution::waitForExpectation and retries until the Playwright timeout, which defaults to five seconds. The plugin even deprecates waitForText in favour of assertSee for this reason. The loop was re-implementing the retry that already surrounded each call, less well and with a helper whose name has to be unique across the whole suite because these are global functions. Halves the file and drops the injected script. assertSeeLink also says more than the old check did: it asserts the labels are links, not just text that happens to appear. --------- Co-authored-by: Paulo Castellano <paulo@castellanos.llc>
142 lines
6.3 KiB
PHP
142 lines
6.3 KiB
PHP
<?php
|
||
|
||
declare(strict_types=1);
|
||
|
||
return [
|
||
|
||
/*
|
||
|--------------------------------------------------------------------------
|
||
| Authentication Language Lines
|
||
|--------------------------------------------------------------------------
|
||
|
|
||
| The following language lines are used during authentication for various
|
||
| messages that we need to display to the user. You are free to modify
|
||
| these language lines according to your application's requirements.
|
||
|
|
||
*/
|
||
|
||
'failed' => 'Diese Zugangsdaten stimmen nicht mit unseren Aufzeichnungen überein.',
|
||
'password' => 'Das angegebene Passwort ist falsch.',
|
||
'throttle' => 'Zu viele Anmeldeversuche. Bitte versuche es in :seconds Sekunden erneut.',
|
||
|
||
'flash' => [
|
||
'welcome' => 'Willkommen bei TryPost!',
|
||
'welcome_trial' => 'Willkommen bei TryPost! Deine Testphase hat begonnen.',
|
||
],
|
||
|
||
'legal' => 'Indem du fortfährst, stimmst du unseren <a href=":terms_url" target="_blank">Nutzungsbedingungen</a> und unserer <a href=":privacy_url" target="_blank">Datenschutzerklärung</a> zu.',
|
||
|
||
'slides' => [
|
||
'calendar' => [
|
||
'title' => 'Visueller Kalender',
|
||
'description' => 'Plane und terminiere deine Inhalte mit einem intuitiven Drag-and-drop-Kalender für alle deine Social-Media-Konten.',
|
||
],
|
||
'scheduling' => [
|
||
'title' => 'Intelligente Planung',
|
||
'description' => 'Plane Beiträge für LinkedIn, X, Instagram, TikTok, YouTube und mehr – alles von einem Ort aus.',
|
||
],
|
||
'media' => [
|
||
'title' => 'Rich Media',
|
||
'description' => 'Veröffentliche Bilder, Karussells, Storys und Reels. Jede Plattform erhält automatisch das richtige Format.',
|
||
],
|
||
'video' => [
|
||
'title' => 'Video-Veröffentlichung',
|
||
'description' => 'Lade Videos einmal hoch und veröffentliche sie auf TikTok, YouTube Shorts, Instagram Reels und Facebook Reels.',
|
||
],
|
||
'team' => [
|
||
'title' => 'Team-Workspaces',
|
||
'description' => 'Lade dein Team ein, weise Rollen zu und verwalte mehrere Marken in separaten Workspaces.',
|
||
],
|
||
'signatures' => [
|
||
'title' => 'Signaturen',
|
||
'description' => 'Speichere wiederverwendbare Signaturen (Hashtags, Links, Grußformeln) und füge sie mit einem Klick zu Beiträgen hinzu.',
|
||
],
|
||
],
|
||
|
||
'or_continue_with' => 'Oder fortfahren mit',
|
||
'or_continue_with_email' => 'Oder mit E-Mail fortfahren',
|
||
'google_login' => 'Mit Google anmelden',
|
||
'google_signup' => 'Mit Google registrieren',
|
||
'github_login' => 'Mit GitHub anmelden',
|
||
'github_signup' => 'Mit GitHub registrieren',
|
||
'github_email_unavailable' => 'Deine E-Mail-Adresse konnte nicht von GitHub abgerufen werden. Mache deine GitHub-E-Mail-Adresse öffentlich oder erteile die Berechtigung für den E-Mail-Zugriff und versuche es dann erneut.',
|
||
|
||
'login' => [
|
||
'title' => 'Melde dich bei deinem Konto an',
|
||
'description' => 'Gib unten deine E-Mail-Adresse und dein Passwort ein, um dich anzumelden',
|
||
'page_title' => 'Anmelden',
|
||
'email' => 'E-Mail-Adresse',
|
||
'password' => 'Passwort',
|
||
'show_password' => 'Passwort anzeigen',
|
||
'hide_password' => 'Passwort verbergen',
|
||
'forgot_password' => 'Passwort vergessen?',
|
||
'remember_me' => 'Angemeldet bleiben',
|
||
'submit' => 'Anmelden',
|
||
'no_account' => 'Noch kein Konto?',
|
||
'sign_up' => 'Registrieren',
|
||
],
|
||
|
||
'register' => [
|
||
'title' => 'Dein gesamter Social-Media-Kalender an einem Ort',
|
||
'description' => 'Erstelle dein Konto und beginne, Beiträge für jedes Netzwerk zu planen.',
|
||
'page_title' => 'Registrieren',
|
||
'signup_with_email' => 'Mit E-Mail registrieren',
|
||
'name' => 'Name',
|
||
'name_placeholder' => 'Vollständiger Name',
|
||
'email' => 'E-Mail-Adresse',
|
||
'password' => 'Passwort',
|
||
'show_password' => 'Passwort anzeigen',
|
||
'hide_password' => 'Passwort verbergen',
|
||
'submit' => 'Konto erstellen',
|
||
'has_account' => 'Hast du bereits ein Konto?',
|
||
'log_in' => 'Anmelden',
|
||
],
|
||
|
||
'forgot_password' => [
|
||
'title' => 'Passwort vergessen',
|
||
'description' => 'Gib deine E-Mail-Adresse ein, um einen Link zum Zurücksetzen des Passworts zu erhalten',
|
||
'page_title' => 'Passwort vergessen',
|
||
'email' => 'E-Mail-Adresse',
|
||
'submit' => 'Link zum Zurücksetzen des Passworts senden',
|
||
'return_to' => 'Oder zurück zur',
|
||
'log_in' => 'Anmeldung',
|
||
],
|
||
|
||
'reset_password' => [
|
||
'title' => 'Passwort zurücksetzen',
|
||
'description' => 'Bitte gib unten dein neues Passwort ein',
|
||
'page_title' => 'Passwort zurücksetzen',
|
||
'email' => 'E-Mail',
|
||
'password' => 'Passwort',
|
||
'confirm_password' => 'Passwort bestätigen',
|
||
'confirm_placeholder' => 'Passwort bestätigen',
|
||
'submit' => 'Passwort zurücksetzen',
|
||
],
|
||
|
||
'verify_email' => [
|
||
'title' => 'E-Mail bestätigen',
|
||
'description' => 'Bitte bestätige deine E-Mail-Adresse, indem du auf den Link klickst, den wir dir gerade per E-Mail gesendet haben.',
|
||
'page_title' => 'E-Mail-Bestätigung',
|
||
'link_sent' => 'Ein neuer Bestätigungslink wurde an die E-Mail-Adresse gesendet, die du bei der Registrierung angegeben hast.',
|
||
'resend' => 'Bestätigungs-E-Mail erneut senden',
|
||
'log_out' => 'Abmelden',
|
||
],
|
||
|
||
'accept_invite' => [
|
||
'page_title' => 'Einladung annehmen',
|
||
'title' => 'Du wurdest eingeladen!',
|
||
'description' => 'Du wurdest eingeladen, dem Workspace :workspace beizutreten.',
|
||
'workspace' => 'Workspace',
|
||
'your_role' => 'Deine Rolle',
|
||
'email' => 'E-Mail',
|
||
'accept' => 'Einladung annehmen',
|
||
'decline' => 'Einladung ablehnen',
|
||
'login_prompt' => 'Melde dich an oder erstelle ein Konto, um diese Einladung anzunehmen.',
|
||
'log_in' => 'Anmelden',
|
||
'create_account' => 'Konto erstellen',
|
||
'expired_title' => 'Diese Einladung ist nicht mehr gültig',
|
||
'expired_description' => 'Der Workspace für diese Einladung wurde gelöscht. Bitte den Kontoinhaber um eine neue Einladung, falls du weiterhin Zugriff brauchst.',
|
||
'expired_action' => 'Zur Startseite',
|
||
],
|
||
|
||
];
|