var Rec...">

Recaptcha Translation

Does anyone know how to change text language from Recaptcha?

I already tried:

<script type="text/javascript">
var RecaptchaOptions = {
   lang : 'fr',
};
</script>

But that does not change.

+5
source share
7 answers

If you mean the language in real images that you are trying to solve, unfortunately, you cannot change the language of this text, at least not yet. The only thing you can change is the interface language (text / prompt in widgets, etc.).

Reply to comment : well, according to the docs , it looks like everything is right with you. Is this code a place on the same page where the widget appears?

The docs also say:

HTML <form>, reCAPTCHA ( , script, reCAPTCHA )

, <form>, reCAPTCHA.

+3

reCAPTCHA V2 javascript. docs.

<script src="https://www.google.com/recaptcha/api.js?hl=fr"></script>
+8

api, ( "" ):

https://www.google.com/recaptcha/api.js?hl=fa

https://developers.google.com/recaptcha/docs/language

+5

&amp;hl=fr .

+4

:

define('RECAPTCHA_PUBLIC_KEY', '__YOUR_PUBLIC_KEY_HERE__&amp;hl=fr');
echo recaptcha_get_html(RECAPTCHA_PUBLIC_KEY);

So you can remove your JavaScript from your code. Or leave it if you use other options, but delete "lang: 'fr'"

+4
source

RecaptchaOptions never works.

Another solution is to add parametrt hl = langCode, while we include the captcha script

<script type="text/javascript" src="'. $server . '/challenge?k=' . $pubkey .  &hl=de">/script>
+3
source

You have inserted the wrong js. There should not be a comma after lang: 'fr' . The correct code is:

<script type="text/javascript">
var RecaptchaOptions = {
   lang : 'fr'
};
</script>
0
source

All Articles