trypost/lang/nl/auth.php
Grigory Frolov 0db9e0706d
Visible Terms and Privacy links on the auth screens (#317)
* 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>
2026-09-01 18:20:38 -03:00

140 lines
6 KiB
PHP

<?php
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' => 'Deze gegevens komen niet overeen met onze administratie.',
'password' => 'Het opgegeven wachtwoord is onjuist.',
'throttle' => 'Te veel inlogpogingen. Probeer het over :seconds seconden opnieuw.',
'flash' => [
'welcome' => 'Welkom bij TryPost!',
'welcome_trial' => 'Welkom bij TryPost! Je proefperiode is gestart.',
],
'legal' => 'Door door te gaan ga je akkoord met onze <a href=":terms_url" target="_blank">Servicevoorwaarden</a> en <a href=":privacy_url" target="_blank">Privacybeleid</a>.',
'slides' => [
'calendar' => [
'title' => 'Visuele kalender',
'description' => 'Plan en agendeer je content met een intuïtieve drag-and-drop-kalender voor al je social accounts.',
],
'scheduling' => [
'title' => 'Slim plannen',
'description' => 'Plan posts voor LinkedIn, X, Instagram, TikTok, YouTube en meer — allemaal vanaf één plek.',
],
'media' => [
'title' => 'Rijke media',
'description' => 'Publiceer afbeeldingen, carrousels, stories en reels. Elk platform krijgt automatisch het juiste formaat.',
],
'video' => [
'title' => 'Video publiceren',
'description' => 'Upload video\'s één keer en publiceer naar TikTok, YouTube Shorts, Instagram Reels en Facebook Reels.',
],
'team' => [
'title' => 'Teamworkspaces',
'description' => 'Nodig je team uit, wijs rollen toe en beheer meerdere merken vanuit aparte workspaces.',
],
'signatures' => [
'title' => 'Handtekeningen',
'description' => 'Sla herbruikbare handtekeningen op (hashtags, links, afsluitingen) en voeg ze met één klik aan posts toe.',
],
],
'or_continue_with' => 'Of ga verder met',
'or_continue_with_email' => 'Of ga verder met e-mail',
'google_login' => 'Inloggen met Google',
'google_signup' => 'Aanmelden met Google',
'github_login' => 'Inloggen met GitHub',
'github_signup' => 'Aanmelden met GitHub',
'github_email_unavailable' => 'Kan je e-mailadres niet ophalen van GitHub. Maak je GitHub-e-mailadres openbaar of verleen de e-mailscope en probeer het opnieuw.',
'login' => [
'title' => 'Log in op je account',
'description' => 'Voer hieronder je e-mailadres en wachtwoord in om in te loggen',
'page_title' => 'Inloggen',
'email' => 'E-mailadres',
'password' => 'Wachtwoord',
'show_password' => 'Wachtwoord tonen',
'hide_password' => 'Wachtwoord verbergen',
'forgot_password' => 'Wachtwoord vergeten?',
'remember_me' => 'Ingelogd blijven',
'submit' => 'Inloggen',
'no_account' => 'Nog geen account?',
'sign_up' => 'Aanmelden',
],
'register' => [
'title' => 'Je hele social kalender, op één plek',
'description' => 'Maak je account aan en begin met het plannen van posts voor elk netwerk.',
'page_title' => 'Registreren',
'signup_with_email' => 'Aanmelden met e-mail',
'name' => 'Naam',
'name_placeholder' => 'Volledige naam',
'email' => 'E-mailadres',
'password' => 'Wachtwoord',
'show_password' => 'Wachtwoord tonen',
'hide_password' => 'Wachtwoord verbergen',
'submit' => 'Account aanmaken',
'has_account' => 'Heb je al een account?',
'log_in' => 'Inloggen',
],
'forgot_password' => [
'title' => 'Wachtwoord vergeten',
'description' => 'Voer je e-mailadres in om een link te ontvangen om je wachtwoord opnieuw in te stellen',
'page_title' => 'Wachtwoord vergeten',
'email' => 'E-mailadres',
'submit' => 'Stuur reset-link per e-mail',
'return_to' => 'Of ga terug naar',
'log_in' => 'inloggen',
],
'reset_password' => [
'title' => 'Wachtwoord opnieuw instellen',
'description' => 'Voer hieronder je nieuwe wachtwoord in',
'page_title' => 'Wachtwoord opnieuw instellen',
'email' => 'E-mail',
'password' => 'Wachtwoord',
'confirm_password' => 'Bevestig wachtwoord',
'confirm_placeholder' => 'Bevestig wachtwoord',
'submit' => 'Wachtwoord opnieuw instellen',
],
'verify_email' => [
'title' => 'E-mail verifiëren',
'description' => 'Verifieer je e-mailadres door op de link te klikken die we je zojuist per e-mail hebben gestuurd.',
'page_title' => 'E-mailverificatie',
'link_sent' => 'Er is een nieuwe verificatielink verstuurd naar het e-mailadres dat je bij registratie hebt opgegeven.',
'resend' => 'Verificatiemail opnieuw versturen',
'log_out' => 'Uitloggen',
],
'accept_invite' => [
'page_title' => 'Uitnodiging accepteren',
'title' => 'Je bent uitgenodigd!',
'description' => 'Je bent uitgenodigd om deel te nemen aan de workspace :workspace.',
'workspace' => 'Workspace',
'your_role' => 'Jouw rol',
'email' => 'E-mail',
'accept' => 'Uitnodiging accepteren',
'decline' => 'Uitnodiging weigeren',
'login_prompt' => 'Log in of maak een account aan om deze uitnodiging te accepteren.',
'log_in' => 'Inloggen',
'create_account' => 'Account aanmaken',
'expired_title' => 'Deze uitnodiging is niet meer geldig',
'expired_description' => 'De workspace van deze uitnodiging is verwijderd. Vraag de accounteigenaar om een nieuwe uitnodiging als je nog toegang nodig hebt.',
'expired_action' => 'Naar home',
],
];