• When I run the Accessibility Insights test to determine if my page satisfies WCAG 2.1, the reCAPTCHA element on my Contact Us form fails with the following explanation:


    Path
    iframe[title=”reCAPTCHA”];html
    Snippet
    <html dir=”ltr” lang=”en_gb”>
    How to fix
    Fix the following:
    Value of lang attribute not included in the list of valid languages

    My form has the following:

    <p><label for=”your-name”>Your Name (required)</label><br />
    [text* your-name id:your-name] </p>

    <p><label for=”your-email”>Your Email (required)</label><br />
    [email* your-email id:your-email] </p>

    <p><label for=”your-subject”>Subject</label><br />
    [text* your-subject id:your-subject] </p>

    <p><label for=”your-message”>Your Message</label><br />
    [textarea* your-message id:your-message] </p>

    <p>[recaptcha recaptcha-192] <br /></p>

    <p>[submit “Send”]</p>`

    How can I override “en_gb” with “en”?

    Thanks in anticipation,
    Chris

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    I think it is impossible to override the lang="en_gb" because it is generated by Google’s script. I suggest you report this issue to Google. The value should be en-GB, I guess.

    By the way, Contact Form 7 has nothing to do with this issue. Also what you are using is not even v3.

    Thread Starter Chris Woodhouse

    (@shed53)

    I’ll raise a ticket with Google as you suggest.
    Thanks for setting me right, and for responding so promptly ??

    Thread Starter Chris Woodhouse

    (@shed53)

    For anyone else who experiences something similar, a further update…

    The site now uses reCAPTCHA V3 and passes the accessibility test, so no need to try to resolve the “lang” setting issue that the test revealed against V2.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘reCAPTCHA v3 lang en_gb invalid’ is closed to new replies.