trypost/lang/tr/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

142 lines
6 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
declare(strict_types=1);
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' => 'Bu kimlik bilgileri kayıtlarımızla eşleşmiyor.',
'password' => 'Girilen parola yanlış.',
'throttle' => 'Çok fazla giriş denemesi. Lütfen :seconds saniye sonra tekrar deneyin.',
'flash' => [
'welcome' => 'TryPost\'a hoş geldiniz!',
'welcome_trial' => 'TryPost\'a hoş geldiniz! Deneme süreniz başladı.',
],
'legal' => 'Devam ederek <a href=":terms_url" target="_blank">Hizmet Şartları</a> ve <a href=":privacy_url" target="_blank">Gizlilik Politikası</a>\'nı kabul etmiş olursunuz.',
'slides' => [
'calendar' => [
'title' => 'Görsel Takvim',
'description' => 'Tüm sosyal hesaplarınızda içeriklerinizi sezgisel bir sürükle-bırak takvimiyle planlayın ve zamanlayın.',
],
'scheduling' => [
'title' => 'Akıllı Zamanlama',
'description' => 'LinkedIn, X, Instagram, TikTok, YouTube ve daha fazlasında gönderileri tek bir yerden zamanlayın.',
],
'media' => [
'title' => 'Zengin Medya',
'description' => 'Görseller, karuseller, hikayeler ve reels paylaşın. Her platform doğru formatı otomatik olarak alır.',
],
'video' => [
'title' => 'Video Yayınlama',
'description' => 'Videoları bir kez yükleyin; TikTok, YouTube Shorts, Instagram Reels ve Facebook Reels\'de yayınlayın.',
],
'team' => [
'title' => 'Ekip Çalışma Alanları',
'description' => 'Ekibinizi davet edin, roller atayın ve birden fazla markayı ayrı çalışma alanlarından yönetin.',
],
'signatures' => [
'title' => 'İmzalar',
'description' => 'Yeniden kullanılabilir imzalar (hashtag\'ler, bağlantılar, kapanışlar) kaydedin ve tek tıklamayla gönderilere ekleyin.',
],
],
'or_continue_with' => 'Veya şununla devam et',
'or_continue_with_email' => 'Veya e-posta ile devam et',
'google_login' => 'Google ile giriş yap',
'google_signup' => 'Google ile kayıt ol',
'github_login' => 'GitHub ile giriş yap',
'github_signup' => 'GitHub ile kayıt ol',
'github_email_unavailable' => 'GitHub\'dan e-postanız alınamadı. GitHub e-postanızı herkese açık yapın veya e-posta iznini verin, ardından tekrar deneyin.',
'login' => [
'title' => 'Hesabınıza giriş yapın',
'description' => 'Giriş yapmak için e-posta ve parolanızı aşağıya girin',
'page_title' => 'Giriş yap',
'email' => 'E-posta adresi',
'password' => 'Parola',
'show_password' => 'Parolayı göster',
'hide_password' => 'Parolayı gizle',
'forgot_password' => 'Parolanızı mı unuttunuz?',
'remember_me' => 'Beni hatırla',
'submit' => 'Giriş yap',
'no_account' => 'Hesabınız yok mu?',
'sign_up' => 'Kayıt ol',
],
'register' => [
'title' => 'Tüm sosyal takviminiz tek bir yerde',
'description' => 'Hesabınızı oluşturun ve her ağda gönderi zamanlamaya başlayın.',
'page_title' => 'Kayıt ol',
'signup_with_email' => 'E-posta ile kayıt ol',
'name' => 'Ad',
'name_placeholder' => 'Ad soyad',
'email' => 'E-posta adresi',
'password' => 'Parola',
'show_password' => 'Parolayı göster',
'hide_password' => 'Parolayı gizle',
'submit' => 'Hesap oluştur',
'has_account' => 'Zaten bir hesabınız var mı?',
'log_in' => 'Giriş yap',
],
'forgot_password' => [
'title' => 'Parolamı unuttum',
'description' => 'Parola sıfırlama bağlantısı almak için e-postanızı girin',
'page_title' => 'Parolamı unuttum',
'email' => 'E-posta adresi',
'submit' => 'Parola sıfırlama bağlantısını e-postayla gönder',
'return_to' => 'Ya da şuraya dönün:',
'log_in' => 'giriş yap',
],
'reset_password' => [
'title' => 'Parolayı sıfırla',
'description' => 'Lütfen yeni parolanızı aşağıya girin',
'page_title' => 'Parolayı sıfırla',
'email' => 'E-posta',
'password' => 'Parola',
'confirm_password' => 'Parolayı Onayla',
'confirm_placeholder' => 'Parolayı onayla',
'submit' => 'Parolayı sıfırla',
],
'verify_email' => [
'title' => 'E-postayı doğrula',
'description' => 'Lütfen size e-postayla gönderdiğimiz bağlantıya tıklayarak e-posta adresinizi doğrulayın.',
'page_title' => 'E-posta doğrulama',
'link_sent' => 'Kayıt sırasında verdiğiniz e-posta adresine yeni bir doğrulama bağlantısı gönderildi.',
'resend' => 'Doğrulama e-postasını yeniden gönder',
'log_out' => ıkış yap',
],
'accept_invite' => [
'page_title' => 'Daveti Kabul Et',
'title' => 'Davet edildiniz!',
'description' => ':workspace çalışma alanına katılmaya davet edildiniz.',
'workspace' => 'Çalışma alanı',
'your_role' => 'Rolünüz',
'email' => 'E-posta',
'accept' => 'Daveti Kabul Et',
'decline' => 'Daveti Reddet',
'login_prompt' => 'Bu daveti kabul etmek için giriş yapın veya bir hesap oluşturun.',
'log_in' => 'Giriş yap',
'create_account' => 'Hesap Oluştur',
'expired_title' => 'Bu davet artık geçerli değil',
'expired_description' => 'Bu davetin çalışma alanı silindi. Hâlâ erişime ihtiyacınız varsa hesap sahibinden yeni bir davet isteyin.',
'expired_action' => 'Ana sayfaya git',
],
];