Setting recaptcha in a different language other than english

后端 未结 6 2308
南笙
南笙 2021-02-13 20:37

Is it me or is recaptcha images cannot be translated to another language other than EN? I have \"enter

6条回答
  •  情深已故
    2021-02-13 20:44

    For reCAPTCHA 2. Since a while have passed

    This is your link to cdn look at the end, hl parameter

    
    

    This is your captcha inside the form

    This is your javascript you can specify the lang code here too, I assume one of them is enough

    var recaptcha1;
    var myCallBack = function() {
        //Render the recaptcha1 on the element with ID "recaptcha1"
        recaptcha1 = grecaptcha.render('recaptcha1', {
        'sitekey': '6LdJLws_your site key',
        'lang' : 'fr'
       });};
    

    You can add multiple reCAPTCHAs with this method.

    Here is full language reference: https://developers.google.com/recaptcha/docs/language?hl=en

提交回复
热议问题