* 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>
128 lines
5.6 KiB
PHP
128 lines
5.6 KiB
PHP
<?php
|
|
|
|
return [
|
|
'failed' => 'Estas credenciales no coinciden con nuestros registros.',
|
|
'password' => 'La contraseña proporcionada es incorrecta.',
|
|
'throttle' => 'Demasiados intentos de inicio de sesión. Inténtalo de nuevo en :seconds segundos.',
|
|
|
|
'flash' => [
|
|
'welcome' => '¡Bienvenido a TryPost!',
|
|
'welcome_trial' => '¡Bienvenido a TryPost! Tu prueba ha comenzado.',
|
|
],
|
|
|
|
'legal' => 'Al continuar, aceptas nuestros <a href=":terms_url" target="_blank">Términos de Servicio</a> y <a href=":privacy_url" target="_blank">Política de Privacidad</a>.',
|
|
|
|
'slides' => [
|
|
'calendar' => [
|
|
'title' => 'Calendario Visual',
|
|
'description' => 'Planifica y programa tu contenido con un calendario intuitivo de arrastrar y soltar en todas tus cuentas sociales.',
|
|
],
|
|
'scheduling' => [
|
|
'title' => 'Programación Inteligente',
|
|
'description' => 'Programa posts en LinkedIn, X, Instagram, TikTok, YouTube y más — todo desde un solo lugar.',
|
|
],
|
|
'media' => [
|
|
'title' => 'Contenido Multimedia',
|
|
'description' => 'Publica imágenes, carruseles, historias y reels. Cada plataforma recibe el formato correcto automáticamente.',
|
|
],
|
|
'video' => [
|
|
'title' => 'Publicación de Video',
|
|
'description' => 'Sube videos una vez y publícalos en TikTok, YouTube Shorts, Instagram Reels y Facebook Reels.',
|
|
],
|
|
'team' => [
|
|
'title' => 'Workspaces en Equipo',
|
|
'description' => 'Invita a tu equipo, asigna roles y gestiona múltiples marcas en workspaces separados.',
|
|
],
|
|
'signatures' => [
|
|
'title' => 'Firmas',
|
|
'description' => 'Guarda firmas reutilizables (hashtags, links, despedidas) y añádelas a tus posts con un clic.',
|
|
],
|
|
],
|
|
|
|
'or_continue_with' => 'O continuar con',
|
|
'or_continue_with_email' => 'O continúa con correo',
|
|
'google_login' => 'Iniciar sesión con Google',
|
|
'google_signup' => 'Registrarse con Google',
|
|
'github_login' => 'Iniciar sesión con GitHub',
|
|
'github_signup' => 'Registrarse con GitHub',
|
|
'github_email_unavailable' => 'No fue posible obtener tu correo de GitHub. Haz tu correo público en GitHub o concede el permiso de correo y vuelve a intentar.',
|
|
|
|
'login' => [
|
|
'title' => 'Inicia sesión en tu cuenta',
|
|
'description' => 'Introduce tu correo y contraseña para iniciar sesión',
|
|
'page_title' => 'Iniciar sesión',
|
|
'email' => 'Correo electrónico',
|
|
'password' => 'Contraseña',
|
|
'show_password' => 'Mostrar contraseña',
|
|
'hide_password' => 'Ocultar contraseña',
|
|
'forgot_password' => '¿Olvidaste tu contraseña?',
|
|
'remember_me' => 'Recuérdame',
|
|
'submit' => 'Iniciar sesión',
|
|
'no_account' => '¿No tienes una cuenta?',
|
|
'sign_up' => 'Regístrate',
|
|
],
|
|
|
|
'register' => [
|
|
'title' => 'Todo tu calendario social en un solo lugar',
|
|
'description' => 'Crea tu cuenta y empieza a programar publicaciones en todas las redes.',
|
|
'page_title' => 'Registro',
|
|
'signup_with_email' => 'Registrarse con correo',
|
|
'name' => 'Nombre',
|
|
'name_placeholder' => 'Nombre completo',
|
|
'email' => 'Correo electrónico',
|
|
'password' => 'Contraseña',
|
|
'show_password' => 'Mostrar contraseña',
|
|
'hide_password' => 'Ocultar contraseña',
|
|
'submit' => 'Crear cuenta',
|
|
'has_account' => '¿Ya tienes una cuenta?',
|
|
'log_in' => 'Iniciar sesión',
|
|
],
|
|
|
|
'forgot_password' => [
|
|
'title' => 'Olvidé mi contraseña',
|
|
'description' => 'Introduce tu correo para recibir un enlace de restablecimiento',
|
|
'page_title' => 'Olvidé mi contraseña',
|
|
'email' => 'Correo electrónico',
|
|
'submit' => 'Enviar enlace de restablecimiento',
|
|
'return_to' => 'O vuelve a',
|
|
'log_in' => 'iniciar sesión',
|
|
],
|
|
|
|
'reset_password' => [
|
|
'title' => 'Restablecer contraseña',
|
|
'description' => 'Introduce tu nueva contraseña',
|
|
'page_title' => 'Restablecer contraseña',
|
|
'email' => 'Correo electrónico',
|
|
'password' => 'Contraseña',
|
|
'confirm_password' => 'Confirmar contraseña',
|
|
'confirm_placeholder' => 'Confirmar contraseña',
|
|
'submit' => 'Restablecer contraseña',
|
|
],
|
|
|
|
'verify_email' => [
|
|
'title' => 'Verificar correo',
|
|
'description' => 'Verifica tu correo electrónico haciendo clic en el enlace que acabamos de enviarte.',
|
|
'page_title' => 'Verificación de correo',
|
|
'link_sent' => 'Se ha enviado un nuevo enlace de verificación al correo electrónico proporcionado durante el registro.',
|
|
'resend' => 'Reenviar correo de verificación',
|
|
'log_out' => 'Cerrar sesión',
|
|
],
|
|
|
|
'accept_invite' => [
|
|
'page_title' => 'Aceptar invitación',
|
|
'title' => '¡Has sido invitado!',
|
|
'description' => 'Has sido invitado a unirte al workspace :workspace.',
|
|
'workspace' => 'Workspace',
|
|
'your_role' => 'Tu rol',
|
|
'email' => 'Correo electrónico',
|
|
'accept' => 'Aceptar invitación',
|
|
'decline' => 'Rechazar invitación',
|
|
'login_prompt' => 'Inicia sesión o crea una cuenta para aceptar esta invitación.',
|
|
'log_in' => 'Iniciar sesión',
|
|
'create_account' => 'Crear cuenta',
|
|
'expired_title' => 'Esta invitación ya no es válida',
|
|
'expired_description' => 'El workspace de esta invitación fue eliminado. Pide al propietario de la cuenta una nueva invitación si aún necesitas acceso.',
|
|
'expired_action' => 'Ir al inicio',
|
|
],
|
|
|
|
];
|