* 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
7 KiB
PHP
140 lines
7 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' => '直感的なドラッグ&ドロップのカレンダーで、すべてのソーシャルアカウントのコンテンツを計画・スケジュールできます。',
|
|
],
|
|
'scheduling' => [
|
|
'title' => 'スマートスケジューリング',
|
|
'description' => 'LinkedIn、X、Instagram、TikTok、YouTube など、複数のプラットフォームへの投稿を 1 か所からスケジュールできます。',
|
|
],
|
|
'media' => [
|
|
'title' => 'リッチメディア',
|
|
'description' => '画像、カルーセル、ストーリー、リールを公開できます。各プラットフォームに最適な形式が自動で適用されます。',
|
|
],
|
|
'video' => [
|
|
'title' => '動画の公開',
|
|
'description' => '動画を一度アップロードすれば、TikTok、YouTube ショート、Instagram リール、Facebook リールに公開できます。',
|
|
],
|
|
'team' => [
|
|
'title' => 'チームワークスペース',
|
|
'description' => 'チームを招待し、役割を割り当て、複数のブランドを別々のワークスペースで管理できます。',
|
|
],
|
|
'signatures' => [
|
|
'title' => '署名',
|
|
'description' => '再利用できる署名(ハッシュタグ、リンク、締めの一言)を保存し、ワンクリックで投稿に追加できます。',
|
|
],
|
|
],
|
|
|
|
'or_continue_with' => 'または次で続行',
|
|
'or_continue_with_email' => 'またはメールで続行',
|
|
'google_login' => 'Google でログイン',
|
|
'google_signup' => 'Google で登録',
|
|
'github_login' => 'GitHub でログイン',
|
|
'github_signup' => 'GitHub で登録',
|
|
'github_email_unavailable' => 'GitHub からメールアドレスを取得できませんでした。GitHub のメールアドレスを公開するか、email スコープを許可してから、もう一度お試しください。',
|
|
|
|
'login' => [
|
|
'title' => 'アカウントにログイン',
|
|
'description' => 'ログインするにはメールアドレスとパスワードを入力してください',
|
|
'page_title' => 'ログイン',
|
|
'email' => 'メールアドレス',
|
|
'password' => 'パスワード',
|
|
'show_password' => 'パスワードを表示',
|
|
'hide_password' => 'パスワードを隠す',
|
|
'forgot_password' => 'パスワードをお忘れですか?',
|
|
'remember_me' => 'ログイン状態を保持',
|
|
'submit' => 'ログイン',
|
|
'no_account' => 'アカウントをお持ちでないですか?',
|
|
'sign_up' => '登録',
|
|
],
|
|
|
|
'register' => [
|
|
'title' => 'すべてのソーシャルカレンダーを 1 か所に',
|
|
'description' => 'アカウントを作成して、あらゆるネットワークへの投稿スケジュールを始めましょう。',
|
|
'page_title' => '登録',
|
|
'signup_with_email' => 'メールで登録',
|
|
'name' => '名前',
|
|
'name_placeholder' => '氏名',
|
|
'email' => 'メールアドレス',
|
|
'password' => 'パスワード',
|
|
'show_password' => 'パスワードを表示',
|
|
'hide_password' => 'パスワードを隠す',
|
|
'submit' => 'アカウントを作成',
|
|
'has_account' => 'すでにアカウントをお持ちですか?',
|
|
'log_in' => 'ログイン',
|
|
],
|
|
|
|
'forgot_password' => [
|
|
'title' => 'パスワードをお忘れの方',
|
|
'description' => 'パスワード再設定リンクを受け取るにはメールアドレスを入力してください',
|
|
'page_title' => 'パスワードをお忘れの方',
|
|
'email' => 'メールアドレス',
|
|
'submit' => 'パスワード再設定リンクを送信',
|
|
'return_to' => 'または、次に戻る',
|
|
'log_in' => 'ログイン',
|
|
],
|
|
|
|
'reset_password' => [
|
|
'title' => 'パスワードを再設定',
|
|
'description' => '新しいパスワードを入力してください',
|
|
'page_title' => 'パスワードの再設定',
|
|
'email' => 'メールアドレス',
|
|
'password' => 'パスワード',
|
|
'confirm_password' => 'パスワードの確認',
|
|
'confirm_placeholder' => 'パスワードを確認',
|
|
'submit' => 'パスワードを再設定',
|
|
],
|
|
|
|
'verify_email' => [
|
|
'title' => 'メールアドレスの確認',
|
|
'description' => 'ただいまお送りしたメール内のリンクをクリックして、メールアドレスを確認してください。',
|
|
'page_title' => 'メールアドレスの確認',
|
|
'link_sent' => '登録時に入力されたメールアドレスに、新しい確認リンクを送信しました。',
|
|
'resend' => '確認メールを再送信',
|
|
'log_out' => 'ログアウト',
|
|
],
|
|
|
|
'accept_invite' => [
|
|
'page_title' => '招待を承諾',
|
|
'title' => '招待されました!',
|
|
'description' => ':workspace ワークスペースへの参加に招待されました。',
|
|
'workspace' => 'ワークスペース',
|
|
'your_role' => 'あなたの役割',
|
|
'email' => 'メールアドレス',
|
|
'accept' => '招待を承諾',
|
|
'decline' => '招待を辞退',
|
|
'login_prompt' => 'この招待を承諾するには、ログインまたはアカウントを作成してください。',
|
|
'log_in' => 'ログイン',
|
|
'create_account' => 'アカウントを作成',
|
|
'expired_title' => 'この招待は無効です',
|
|
'expired_description' => 'この招待のワークスペースは削除されました。引き続きアクセスが必要な場合は、アカウント所有者に新しい招待を依頼してください。',
|
|
'expired_action' => 'ホームへ',
|
|
],
|
|
|
|
];
|