* 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>
140 lines
6.2 KiB
PHP
140 lines
6.2 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' => 'Te dane logowania nie pasują do naszych rekordów.',
|
|
'password' => 'Podane hasło jest nieprawidłowe.',
|
|
'throttle' => 'Zbyt wiele prób logowania. Spróbuj ponownie za :seconds s.',
|
|
|
|
'flash' => [
|
|
'welcome' => 'Witamy w TryPost!',
|
|
'welcome_trial' => 'Witamy w TryPost! Twój okres próbny właśnie się rozpoczął.',
|
|
],
|
|
|
|
'legal' => 'Kontynuując, akceptujesz nasze <a href=":terms_url" target="_blank">Warunki korzystania z usługi</a> oraz <a href=":privacy_url" target="_blank">Politykę prywatności</a>.',
|
|
|
|
'slides' => [
|
|
'calendar' => [
|
|
'title' => 'Wizualny kalendarz',
|
|
'description' => 'Planuj i harmonogramuj treści na wszystkich swoich kontach społecznościowych dzięki intuicyjnemu kalendarzowi z funkcją przeciągnij i upuść.',
|
|
],
|
|
'scheduling' => [
|
|
'title' => 'Inteligentne planowanie',
|
|
'description' => 'Planuj posty na LinkedIn, X, Instagram, TikTok, YouTube i nie tylko — wszystko z jednego miejsca.',
|
|
],
|
|
'media' => [
|
|
'title' => 'Bogate multimedia',
|
|
'description' => 'Publikuj zdjęcia, karuzele, relacje i rolki. Każda platforma automatycznie otrzymuje właściwy format.',
|
|
],
|
|
'video' => [
|
|
'title' => 'Publikowanie wideo',
|
|
'description' => 'Prześlij film raz i opublikuj go na TikTok, YouTube Shorts, Instagram Reels i Facebook Reels.',
|
|
],
|
|
'team' => [
|
|
'title' => 'Zespołowe przestrzenie robocze',
|
|
'description' => 'Zaproś swój zespół, przypisz role i zarządzaj wieloma markami z osobnych przestrzeni roboczych.',
|
|
],
|
|
'signatures' => [
|
|
'title' => 'Sygnatury',
|
|
'description' => 'Zapisuj wielokrotnego użytku sygnatury (hasztagi, linki, zakończenia) i dołączaj je do postów jednym kliknięciem.',
|
|
],
|
|
],
|
|
|
|
'or_continue_with' => 'Lub kontynuuj przez',
|
|
'or_continue_with_email' => 'Lub kontynuuj przez e-mail',
|
|
'google_login' => 'Zaloguj się przez Google',
|
|
'google_signup' => 'Zarejestruj się przez Google',
|
|
'github_login' => 'Zaloguj się przez GitHub',
|
|
'github_signup' => 'Zarejestruj się przez GitHub',
|
|
'github_email_unavailable' => 'Nie udało się pobrać Twojego adresu e-mail z GitHuba. Ustaw swój adres e-mail w GitHubie jako publiczny lub przyznaj uprawnienie do e-maila, a następnie spróbuj ponownie.',
|
|
|
|
'login' => [
|
|
'title' => 'Zaloguj się na swoje konto',
|
|
'description' => 'Wprowadź poniżej swój e-mail i hasło, aby się zalogować',
|
|
'page_title' => 'Zaloguj się',
|
|
'email' => 'Adres e-mail',
|
|
'password' => 'Hasło',
|
|
'show_password' => 'Pokaż hasło',
|
|
'hide_password' => 'Ukryj hasło',
|
|
'forgot_password' => 'Nie pamiętasz hasła?',
|
|
'remember_me' => 'Zapamiętaj mnie',
|
|
'submit' => 'Zaloguj się',
|
|
'no_account' => 'Nie masz konta?',
|
|
'sign_up' => 'Zarejestruj się',
|
|
],
|
|
|
|
'register' => [
|
|
'title' => 'Cały Twój kalendarz społecznościowy w jednym miejscu',
|
|
'description' => 'Załóż konto i zacznij planować posty w każdej sieci.',
|
|
'page_title' => 'Rejestracja',
|
|
'signup_with_email' => 'Zarejestruj się przez e-mail',
|
|
'name' => 'Imię i nazwisko',
|
|
'name_placeholder' => 'Imię i nazwisko',
|
|
'email' => 'Adres e-mail',
|
|
'password' => 'Hasło',
|
|
'show_password' => 'Pokaż hasło',
|
|
'hide_password' => 'Ukryj hasło',
|
|
'submit' => 'Utwórz konto',
|
|
'has_account' => 'Masz już konto?',
|
|
'log_in' => 'Zaloguj się',
|
|
],
|
|
|
|
'forgot_password' => [
|
|
'title' => 'Nie pamiętasz hasła',
|
|
'description' => 'Wprowadź swój e-mail, aby otrzymać link do zresetowania hasła',
|
|
'page_title' => 'Nie pamiętasz hasła',
|
|
'email' => 'Adres e-mail',
|
|
'submit' => 'Wyślij link do resetu hasła',
|
|
'return_to' => 'Lub wróć do',
|
|
'log_in' => 'logowania',
|
|
],
|
|
|
|
'reset_password' => [
|
|
'title' => 'Zresetuj hasło',
|
|
'description' => 'Wprowadź poniżej swoje nowe hasło',
|
|
'page_title' => 'Zresetuj hasło',
|
|
'email' => 'E-mail',
|
|
'password' => 'Hasło',
|
|
'confirm_password' => 'Potwierdź hasło',
|
|
'confirm_placeholder' => 'Potwierdź hasło',
|
|
'submit' => 'Zresetuj hasło',
|
|
],
|
|
|
|
'verify_email' => [
|
|
'title' => 'Zweryfikuj e-mail',
|
|
'description' => 'Zweryfikuj swój adres e-mail, klikając w link, który właśnie do Ciebie wysłaliśmy.',
|
|
'page_title' => 'Weryfikacja e-maila',
|
|
'link_sent' => 'Nowy link weryfikacyjny został wysłany na adres e-mail podany podczas rejestracji.',
|
|
'resend' => 'Wyślij ponownie e-mail weryfikacyjny',
|
|
'log_out' => 'Wyloguj się',
|
|
],
|
|
|
|
'accept_invite' => [
|
|
'page_title' => 'Zaakceptuj zaproszenie',
|
|
'title' => 'Otrzymałeś zaproszenie!',
|
|
'description' => 'Otrzymałeś zaproszenie do przestrzeni roboczej :workspace.',
|
|
'workspace' => 'Przestrzeń robocza',
|
|
'your_role' => 'Twoja rola',
|
|
'email' => 'E-mail',
|
|
'accept' => 'Zaakceptuj zaproszenie',
|
|
'decline' => 'Odrzuć zaproszenie',
|
|
'login_prompt' => 'Zaloguj się lub załóż konto, aby zaakceptować to zaproszenie.',
|
|
'log_in' => 'Zaloguj się',
|
|
'create_account' => 'Utwórz konto',
|
|
'expired_title' => 'To zaproszenie jest już nieważne',
|
|
'expired_description' => 'Przestrzeń robocza z tego zaproszenia została usunięta. Poproś właściciela konta o nowe zaproszenie, jeśli nadal potrzebujesz dostępu.',
|
|
'expired_action' => 'Przejdź do strony głównej',
|
|
],
|
|
|
|
];
|