Madhesh Madhesh - 1 year ago 148
Java Question

how to set localization in google recaptcha

I am using google recaptcha in my web application. My web application works for both English and French. Is it possible to add the localization in my google recaptcha too?

Answer Source

You can set language in recaptcha option. Place this code before you call recaptcha.

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

The language codes are available Here.

If you want to render recaptcha automatically using the widget, Here is the documentation is available.

You can use Javascript resources(api.js) by passing hl parameter to it.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download