Is it possible to change the reCAPTCHA language in different page?

I am using wordpress and WPML to make websites, and I apply reCAPTCHA under the contact form.

My website is mainly in Chinese, so the reCAPTCHA shows “I am not a robot” in Chinese. But after I duplicate the page into other languages, it still shows the wording in Chinese.

Read More

I’m wondering is there any way to change the wording of “I am not a robot” in English?

Thanks a lot for helping!!
enter image description here

Related posts

3 comments

  1. User1121883‘s solution is for the old text reCaptcha v.1.0, not the modern behaviour reCaptcha. It has limited customization options now.
    So if you want to change other language for other custom language page you’ll need to play with reloading it with other language that would have different hl GET parameter:

    <script src="https://www.google.com/recaptcha/api.js?hl=en-GB"></script>
    

    Update

    I’ve done it client-side (demo), but you may do it server-side or also use this client side code.

    <button class="btn" onclick="btnclick();return false;">Load reCaptcha in Chinese</button>
    <script>
    function callback() { console.log("Chinese reCaptcha loaded"); }
    function btnclick()
    {       
            s = document.createElement("script");
            s.src="https://www.google.com/recaptcha/api.js?hl=zh-CN";
            if(s.addEventListener) {
              s.addEventListener("load",callback,false);
            } 
            else if(s.readyState) {
              s.onreadystatechange = callback;
            }
            // we remove the inner html of old reCaptcha placeholder 
            var oldRecaptcha=document.getElementById('g-recaptcha');         
            while (oldRecaptcha.firstChild) {
                oldRecaptcha.removeChild(oldRecaptcha.firstChild);
            }
            document.body.appendChild(s); 
    }  
    </script>
    
  2. I am using WordPress 5+, at wp-config.php

    $locale='sv_SE';
    

    (For example, in the case of the Swedish language)

    enter image description here

Comments are closed.