neo neo - 12 days ago 5
Javascript Question

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

Answer

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!