[web] Update captcha notice (#32286)

* feat: remove translations

* feat: remove scss

* fix: remove the last translation

* feat: remove pug

* fix: forgotten conditions

* feat: also remove from react

* Revert changes

* Remove links from `recaptcha_conditions`

* Center short reCAPTCHA notice on CIAM screens

* Re-add the Chinese translation

---------

Co-authored-by: Antoine Clausse <antoine.clausse@overleaf.com>
GitOrigin-RevId: 64e7b8a38c2a4b4f7e60d5c9df6740c35b8763d8
This commit is contained in:
Olzhas Askar
2026-04-14 08:05:15 +00:00
committed by Copybot
co-authored by Antoine Clausse
parent 0b99e8e029
commit b345bf9485
7 changed files with 15 additions and 34 deletions
@@ -1,32 +1,6 @@
import { Trans } from 'react-i18next'
import { useTranslation } from 'react-i18next'
export default function RecaptchaConditions() {
// the component link children below will be overwritten by the translation string
return (
<div className="recaptcha-branding">
<Trans
i18nKey="recaptcha_conditions"
components={{
1: (
<a
rel="noopener noreferrer"
target="_blank"
href="https://policies.google.com/privacy"
>
Privacy Policy
</a>
),
2: (
<a
rel="noopener noreferrer"
target="_blank"
href="https://policies.google.com/terms"
>
Terms of Service
</a>
),
}}
/>
</div>
)
const { t } = useTranslation()
return <div className="recaptcha-branding">{t('recaptcha_conditions')}</div>
}