Translating reCAPTCHA branding when badge is invisible

Created on 9 August 2023, over 1 year ago
Updated 17 January 2024, 10 months ago

Problem/Motivation

We are allowed to hide the badge as long as you include the reCAPTCHA branding visibly in the user flow.
In my case, I have a multilingual website which I need to translate the below:

This site is protected by reCAPTCHA and the Google
    <a href="https://policies.google.com/privacy">Privacy Policy</a> and
    <a href="https://policies.google.com/terms">Terms of Service</a> apply.

But when trying to translate it in "User interface translation" I get an error

"The submitted string contains disallowed HTML: <div class="recaptcha-legal">هذا الموقع محمي بواسطة reCAPTCHA و Google <a target="_blank" href=":google-privacy">سياسة الخصوصية</a> and <a target="_blank" href=":google-terms">Tشروط الخدمة</a>.</div>"

Steps to reproduce

  1. Create a webform
  2. Add simple recaptcha webform handler
  3. Check "Hide reCAPTCHA badge"
  4. Try to translate the reCAPTCHA branding
  5. ERROR: The submitted string contains disallowed HTML....

Proposed resolution

To exclude the disallowed HTML from the translated string

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

RTBC

Component

Code

Created by

🇯🇴Jordan ammar qala

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024