Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting reCAPTCHA Version 2 set another language other than English

enter image description here

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

like image 783
neo Avatar asked Feb 27 '15 16:02

neo


People also ask

How do I change the language on reCAPTCHA?

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?

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.

Can I customize reCAPTCHA?

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.

How do I reset reCAPTCHA v2?

For reCaptcha v2, use: grecaptcha. reset();


1 Answers

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

like image 88
LuBre Avatar answered Oct 21 '22 13:10

LuBre