How can I set this in another language, ie:. French
I've tried:
var RecaptchaOptions = { lang : 'fr', };
Found above here
Which does nothing.
I couldn't find relevant info under API Reference -> Version 2 on Google Docs for reCAPTCHA
Additional information:
I'm using this on rails, with gem "recaptcha"
Found here
Updating the Recaptcha language from English to another language is possible by adding a small script at the header section of your form. Recaptcha with updated language. 2.) In the Header/Footer dialog box, select HTML, click on the "Source" button in Header, and paste in all of the code from the attached text (.
Can I use reCAPTCHA globally? Yes, please use "www.recaptcha.net" in your code in circumstances when "www.google.com" is not accessible. After that, apply the same to everywhere else that uses "www.google.com/recaptcha/" on your site.
Custom theming allows you to control exactly how the reCAPTCHA image appears. (Here is a demo of custom theming.) In order to use custom theming, you must first set the theme property of the RecaptchaOptions to 'custom'. This tells reCAPTCHA that it should not create a user interface of its own.
For reCaptcha v2, use: grecaptcha. reset();
You just need to specify the parameter "?hl=" in the script's url:
<script src='https://www.google.com/recaptcha/api.js?hl=fr'></script>
Not very well documented, indeed!
find your language code here: https://developers.google.com/recaptcha/docs/language
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With