* 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
8.3 KiB
PHP
140 lines
8.3 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' => 'Αυτά τα στοιχεία δεν ταιριάζουν με τα αρχεία μας.',
|
||
'password' => 'Ο κωδικός πρόσβασης που δώσατε είναι εσφαλμένος.',
|
||
'throttle' => 'Πάρα πολλές προσπάθειες σύνδεσης. Παρακαλούμε δοκιμάστε ξανά σε :seconds δευτερόλεπτα.',
|
||
|
||
'flash' => [
|
||
'welcome' => 'Καλώς ήρθατε στο TryPost!',
|
||
'welcome_trial' => 'Καλώς ήρθατε στο TryPost! Η δοκιμαστική σας περίοδος ξεκίνησε.',
|
||
],
|
||
|
||
'legal' => 'Συνεχίζοντας, συμφωνείτε με τους <a href=":terms_url" target="_blank">Όρους Χρήσης</a> και την <a href=":privacy_url" target="_blank">Πολιτική Απορρήτου</a> μας.',
|
||
|
||
'slides' => [
|
||
'calendar' => [
|
||
'title' => 'Οπτικό ημερολόγιο',
|
||
'description' => 'Σχεδιάστε και προγραμματίστε το περιεχόμενό σας με ένα διαισθητικό ημερολόγιο drag-and-drop σε όλους τους λογαριασμούς κοινωνικών δικτύων σας.',
|
||
],
|
||
'scheduling' => [
|
||
'title' => 'Έξυπνος προγραμματισμός',
|
||
'description' => 'Προγραμματίστε δημοσιεύσεις σε LinkedIn, X, Instagram, TikTok, YouTube και άλλα — όλα από ένα μέρος.',
|
||
],
|
||
'media' => [
|
||
'title' => 'Πλούσια πολυμέσα',
|
||
'description' => 'Δημοσιεύστε εικόνες, carousels, stories και reels. Κάθε πλατφόρμα λαμβάνει αυτόματα τη σωστή μορφή.',
|
||
],
|
||
'video' => [
|
||
'title' => 'Δημοσίευση βίντεο',
|
||
'description' => 'Μεταφορτώστε βίντεο μία φορά και δημοσιεύστε σε TikTok, YouTube Shorts, Instagram Reels και Facebook Reels.',
|
||
],
|
||
'team' => [
|
||
'title' => 'Workspaces ομάδας',
|
||
'description' => 'Προσκαλέστε την ομάδα σας, αναθέστε ρόλους και διαχειριστείτε πολλές μάρκες από ξεχωριστά workspaces.',
|
||
],
|
||
'signatures' => [
|
||
'title' => 'Υπογραφές',
|
||
'description' => 'Αποθηκεύστε επαναχρησιμοποιήσιμες υπογραφές (hashtags, συνδέσμους, κλεισίματα) και προσθέστε τις στις δημοσιεύσεις με ένα κλικ.',
|
||
],
|
||
],
|
||
|
||
'or_continue_with' => 'Ή συνεχίστε με',
|
||
'or_continue_with_email' => 'Ή συνεχίστε με email',
|
||
'google_login' => 'Σύνδεση με Google',
|
||
'google_signup' => 'Εγγραφή με Google',
|
||
'github_login' => 'Σύνδεση με GitHub',
|
||
'github_signup' => 'Εγγραφή με GitHub',
|
||
'github_email_unavailable' => 'Δεν ήταν δυνατή η ανάκτηση του email σας από το GitHub. Κάντε δημόσιο το email σας στο GitHub ή παραχωρήστε το scope email και δοκιμάστε ξανά.',
|
||
|
||
'login' => [
|
||
'title' => 'Συνδεθείτε στον λογαριασμό σας',
|
||
'description' => 'Εισάγετε το email και τον κωδικό πρόσβασής σας παρακάτω για να συνδεθείτε',
|
||
'page_title' => 'Σύνδεση',
|
||
'email' => 'Διεύθυνση email',
|
||
'password' => 'Κωδικός πρόσβασης',
|
||
'show_password' => 'Εμφάνιση κωδικού',
|
||
'hide_password' => 'Απόκρυψη κωδικού',
|
||
'forgot_password' => 'Ξεχάσατε τον κωδικό;',
|
||
'remember_me' => 'Να με θυμάσαι',
|
||
'submit' => 'Σύνδεση',
|
||
'no_account' => 'Δεν έχετε λογαριασμό;',
|
||
'sign_up' => 'Εγγραφή',
|
||
],
|
||
|
||
'register' => [
|
||
'title' => 'Όλο το κοινωνικό σας ημερολόγιο, σε ένα μέρος',
|
||
'description' => 'Δημιουργήστε τον λογαριασμό σας και ξεκινήστε να προγραμματίζετε δημοσιεύσεις σε κάθε δίκτυο.',
|
||
'page_title' => 'Εγγραφή',
|
||
'signup_with_email' => 'Εγγραφή με email',
|
||
'name' => 'Όνομα',
|
||
'name_placeholder' => 'Ονοματεπώνυμο',
|
||
'email' => 'Διεύθυνση email',
|
||
'password' => 'Κωδικός πρόσβασης',
|
||
'show_password' => 'Εμφάνιση κωδικού',
|
||
'hide_password' => 'Απόκρυψη κωδικού',
|
||
'submit' => 'Δημιουργία λογαριασμού',
|
||
'has_account' => 'Έχετε ήδη λογαριασμό;',
|
||
'log_in' => 'Σύνδεση',
|
||
],
|
||
|
||
'forgot_password' => [
|
||
'title' => 'Ξεχάσατε τον κωδικό',
|
||
'description' => 'Εισάγετε το email σας για να λάβετε έναν σύνδεσμο επαναφοράς κωδικού',
|
||
'page_title' => 'Ξεχάσατε τον κωδικό',
|
||
'email' => 'Διεύθυνση email',
|
||
'submit' => 'Αποστολή συνδέσμου επαναφοράς μέσω email',
|
||
'return_to' => 'Ή, επιστρέψτε στη',
|
||
'log_in' => 'σύνδεση',
|
||
],
|
||
|
||
'reset_password' => [
|
||
'title' => 'Επαναφορά κωδικού',
|
||
'description' => 'Παρακαλούμε εισάγετε τον νέο κωδικό πρόσβασής σας παρακάτω',
|
||
'page_title' => 'Επαναφορά κωδικού',
|
||
'email' => 'Email',
|
||
'password' => 'Κωδικός πρόσβασης',
|
||
'confirm_password' => 'Επιβεβαίωση κωδικού',
|
||
'confirm_placeholder' => 'Επιβεβαίωση κωδικού',
|
||
'submit' => 'Επαναφορά κωδικού',
|
||
],
|
||
|
||
'verify_email' => [
|
||
'title' => 'Επαλήθευση email',
|
||
'description' => 'Παρακαλούμε επαληθεύστε τη διεύθυνση email σας κάνοντας κλικ στον σύνδεσμο που μόλις σας στείλαμε.',
|
||
'page_title' => 'Επαλήθευση email',
|
||
'link_sent' => 'Ένας νέος σύνδεσμος επαλήθευσης στάλθηκε στη διεύθυνση email που δώσατε κατά την εγγραφή.',
|
||
'resend' => 'Επαναποστολή email επαλήθευσης',
|
||
'log_out' => 'Αποσύνδεση',
|
||
],
|
||
|
||
'accept_invite' => [
|
||
'page_title' => 'Αποδοχή πρόσκλησης',
|
||
'title' => 'Λάβατε πρόσκληση!',
|
||
'description' => 'Λάβατε πρόσκληση να συμμετάσχετε στο workspace :workspace.',
|
||
'workspace' => 'Workspace',
|
||
'your_role' => 'Ο ρόλος σας',
|
||
'email' => 'Email',
|
||
'accept' => 'Αποδοχή πρόσκλησης',
|
||
'decline' => 'Απόρριψη πρόσκλησης',
|
||
'login_prompt' => 'Συνδεθείτε ή δημιουργήστε λογαριασμό για να αποδεχτείτε αυτή την πρόσκληση.',
|
||
'log_in' => 'Σύνδεση',
|
||
'create_account' => 'Δημιουργία λογαριασμού',
|
||
'expired_title' => 'Αυτή η πρόσκληση δεν ισχύει πλέον',
|
||
'expired_description' => 'Το workspace αυτής της πρόσκλησης διαγράφηκε. Ζητήστε νέα πρόσκληση από τον κάτοχο του λογαριασμού αν χρειάζεστε ακόμα πρόσβαση.',
|
||
'expired_action' => 'Αρχική σελίδα',
|
||
],
|
||
|
||
];
|