trypost/lang/it/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
5.9 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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' => 'Queste credenziali non corrispondono ai nostri dati.',
'password' => 'La password fornita non è corretta.',
'throttle' => 'Troppi tentativi di accesso. Riprova tra :seconds secondi.',
'flash' => [
'welcome' => 'Benvenuto su TryPost!',
'welcome_trial' => 'Benvenuto su TryPost! La tua prova è iniziata.',
],
'legal' => 'Continuando, accetti i nostri <a href=":terms_url" target="_blank">Termini di servizio</a> e la nostra <a href=":privacy_url" target="_blank">Informativa sulla privacy</a>.',
'slides' => [
'calendar' => [
'title' => 'Calendario visivo',
'description' => 'Pianifica e programma i tuoi contenuti con un calendario drag-and-drop intuitivo su tutti i tuoi account social.',
],
'scheduling' => [
'title' => 'Pianificazione intelligente',
'description' => 'Programma i post su LinkedIn, X, Instagram, TikTok, YouTube e altro ancora, tutto da un unico posto.',
],
'media' => [
'title' => 'Contenuti multimediali',
'description' => 'Pubblica immagini, caroselli, storie e reel. Ogni piattaforma riceve automaticamente il formato giusto.',
],
'video' => [
'title' => 'Pubblicazione video',
'description' => 'Carica i video una volta sola e pubblicali su TikTok, YouTube Shorts, Instagram Reels e Facebook Reels.',
],
'team' => [
'title' => 'Workspace per team',
'description' => 'Invita il tuo team, assegna i ruoli e gestisci più brand da workspace separati.',
],
'signatures' => [
'title' => 'Firme',
'description' => 'Salva firme riutilizzabili (hashtag, link, saluti) e aggiungile ai post con un clic.',
],
],
'or_continue_with' => 'Oppure continua con',
'or_continue_with_email' => 'Oppure continua con l\'email',
'google_login' => 'Accedi con Google',
'google_signup' => 'Registrati con Google',
'github_login' => 'Accedi con GitHub',
'github_signup' => 'Registrati con GitHub',
'github_email_unavailable' => 'Impossibile recuperare la tua email da GitHub. Rendi pubblica la tua email GitHub o concedi l\'ambito email, poi riprova.',
'login' => [
'title' => 'Accedi al tuo account',
'description' => 'Inserisci la tua email e la password qui sotto per accedere',
'page_title' => 'Accedi',
'email' => 'Indirizzo email',
'password' => 'Password',
'show_password' => 'Mostra password',
'hide_password' => 'Nascondi password',
'forgot_password' => 'Password dimenticata?',
'remember_me' => 'Ricordami',
'submit' => 'Accedi',
'no_account' => 'Non hai un account?',
'sign_up' => 'Registrati',
],
'register' => [
'title' => 'Tutto il tuo calendario social, in un unico posto',
'description' => 'Crea il tuo account e inizia a programmare i post su ogni rete.',
'page_title' => 'Registrati',
'signup_with_email' => 'Registrati con l\'email',
'name' => 'Nome',
'name_placeholder' => 'Nome completo',
'email' => 'Indirizzo email',
'password' => 'Password',
'show_password' => 'Mostra password',
'hide_password' => 'Nascondi password',
'submit' => 'Crea account',
'has_account' => 'Hai già un account?',
'log_in' => 'Accedi',
],
'forgot_password' => [
'title' => 'Password dimenticata',
'description' => 'Inserisci la tua email per ricevere un link di reimpostazione della password',
'page_title' => 'Password dimenticata',
'email' => 'Indirizzo email',
'submit' => 'Invia il link di reimpostazione',
'return_to' => 'Oppure torna a',
'log_in' => 'accedi',
],
'reset_password' => [
'title' => 'Reimposta password',
'description' => 'Inserisci la tua nuova password qui sotto',
'page_title' => 'Reimposta password',
'email' => 'Email',
'password' => 'Password',
'confirm_password' => 'Conferma password',
'confirm_placeholder' => 'Conferma password',
'submit' => 'Reimposta password',
],
'verify_email' => [
'title' => 'Verifica email',
'description' => 'Verifica il tuo indirizzo email cliccando sul link che ti abbiamo appena inviato.',
'page_title' => 'Verifica email',
'link_sent' => 'Un nuovo link di verifica è stato inviato all\'indirizzo email fornito durante la registrazione.',
'resend' => 'Invia di nuovo l\'email di verifica',
'log_out' => 'Esci',
],
'accept_invite' => [
'page_title' => 'Accetta invito',
'title' => 'Sei stato invitato!',
'description' => 'Sei stato invitato a unirti al workspace :workspace.',
'workspace' => 'Workspace',
'your_role' => 'Il tuo ruolo',
'email' => 'Email',
'accept' => 'Accetta invito',
'decline' => 'Rifiuta invito',
'login_prompt' => 'Accedi o crea un account per accettare questo invito.',
'log_in' => 'Accedi',
'create_account' => 'Crea account',
'expired_title' => 'Questo invito non è più valido',
'expired_description' => 'Il workspace di questo invito è stato eliminato. Chiedi al proprietario dell’account un nuovo invito se ti serve ancora l’accesso.',
'expired_action' => 'Vai alla home',
],
];