trypost/lang/fr/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.5 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' => 'Ces identifiants ne correspondent pas à nos enregistrements.',
'password' => 'Le mot de passe fourni est incorrect.',
'throttle' => 'Trop de tentatives de connexion. Veuillez réessayer dans :seconds secondes.',
'flash' => [
'welcome' => 'Bienvenue sur TryPost !',
'welcome_trial' => 'Bienvenue sur TryPost ! Votre essai a commencé.',
],
'legal' => 'En continuant, vous acceptez nos <a href=":terms_url" target="_blank">Conditions d\'utilisation</a> et notre <a href=":privacy_url" target="_blank">Politique de confidentialité</a>.',
'slides' => [
'calendar' => [
'title' => 'Calendrier visuel',
'description' => 'Planifiez et programmez votre contenu avec un calendrier intuitif en glisser-déposer, sur tous vos comptes sociaux.',
],
'scheduling' => [
'title' => 'Programmation intelligente',
'description' => 'Programmez des publications sur LinkedIn, X, Instagram, TikTok, YouTube et plus encore — le tout depuis un seul endroit.',
],
'media' => [
'title' => 'Médias riches',
'description' => 'Publiez des images, des carrousels, des stories et des reels. Chaque plateforme reçoit automatiquement le bon format.',
],
'video' => [
'title' => 'Publication de vidéos',
'description' => 'Importez vos vidéos une seule fois et publiez-les sur TikTok, YouTube Shorts, Instagram Reels et Facebook Reels.',
],
'team' => [
'title' => 'Espaces de travail d\'équipe',
'description' => 'Invitez votre équipe, attribuez des rôles et gérez plusieurs marques depuis des espaces de travail distincts.',
],
'signatures' => [
'title' => 'Signatures',
'description' => 'Enregistrez des signatures réutilisables (hashtags, liens, formules de fin) et ajoutez-les à vos publications en un clic.',
],
],
'or_continue_with' => 'Ou continuer avec',
'or_continue_with_email' => 'Ou continuer avec l\'e-mail',
'google_login' => 'Se connecter avec Google',
'google_signup' => 'S\'inscrire avec Google',
'github_login' => 'Se connecter avec GitHub',
'github_signup' => 'S\'inscrire avec GitHub',
'github_email_unavailable' => 'Impossible de récupérer votre e-mail depuis GitHub. Rendez votre e-mail GitHub public ou accordez l\'autorisation d\'accès à l\'e-mail, puis réessayez.',
'login' => [
'title' => 'Connectez-vous à votre compte',
'description' => 'Saisissez votre e-mail et votre mot de passe ci-dessous pour vous connecter',
'page_title' => 'Connexion',
'email' => 'Adresse e-mail',
'password' => 'Mot de passe',
'show_password' => 'Afficher le mot de passe',
'hide_password' => 'Masquer le mot de passe',
'forgot_password' => 'Mot de passe oublié ?',
'remember_me' => 'Se souvenir de moi',
'submit' => 'Se connecter',
'no_account' => 'Vous n\'avez pas de compte ?',
'sign_up' => 'S\'inscrire',
],
'register' => [
'title' => 'Tout votre calendrier social, au même endroit',
'description' => 'Créez votre compte et commencez à programmer des publications sur tous les réseaux.',
'page_title' => 'Inscription',
'signup_with_email' => 'S\'inscrire avec un e-mail',
'name' => 'Nom',
'name_placeholder' => 'Nom complet',
'email' => 'Adresse e-mail',
'password' => 'Mot de passe',
'show_password' => 'Afficher le mot de passe',
'hide_password' => 'Masquer le mot de passe',
'submit' => 'Créer un compte',
'has_account' => 'Vous avez déjà un compte ?',
'log_in' => 'Se connecter',
],
'forgot_password' => [
'title' => 'Mot de passe oublié',
'description' => 'Saisissez votre e-mail pour recevoir un lien de réinitialisation du mot de passe',
'page_title' => 'Mot de passe oublié',
'email' => 'Adresse e-mail',
'submit' => 'Envoyer le lien de réinitialisation',
'return_to' => 'Ou revenez à la',
'log_in' => 'connexion',
],
'reset_password' => [
'title' => 'Réinitialiser le mot de passe',
'description' => 'Veuillez saisir votre nouveau mot de passe ci-dessous',
'page_title' => 'Réinitialiser le mot de passe',
'email' => 'E-mail',
'password' => 'Mot de passe',
'confirm_password' => 'Confirmer le mot de passe',
'confirm_placeholder' => 'Confirmer le mot de passe',
'submit' => 'Réinitialiser le mot de passe',
],
'verify_email' => [
'title' => 'Vérifier l\'e-mail',
'description' => 'Veuillez vérifier votre adresse e-mail en cliquant sur le lien que nous venons de vous envoyer.',
'page_title' => 'Vérification de l\'e-mail',
'link_sent' => 'Un nouveau lien de vérification a été envoyé à l\'adresse e-mail que vous avez fournie lors de l\'inscription.',
'resend' => 'Renvoyer l\'e-mail de vérification',
'log_out' => 'Se déconnecter',
],
'accept_invite' => [
'page_title' => 'Accepter l\'invitation',
'title' => 'Vous avez été invité !',
'description' => 'Vous avez été invité à rejoindre l\'espace de travail :workspace.',
'workspace' => 'Espace de travail',
'your_role' => 'Votre rôle',
'email' => 'E-mail',
'accept' => 'Accepter l\'invitation',
'decline' => 'Refuser l\'invitation',
'login_prompt' => 'Connectez-vous ou créez un compte pour accepter cette invitation.',
'log_in' => 'Se connecter',
'create_account' => 'Créer un compte',
'expired_title' => 'Cette invitation nest plus valide',
'expired_description' => 'Lespace de travail de cette invitation a été supprimé. Demandez une nouvelle invitation au propriétaire du compte si vous avez encore besoin daccès.',
'expired_action' => 'Retour à laccueil',
],
];