appleboy / react-recaptcha

A react.js reCAPTCHA for Google
https://www.google.com/recaptcha/intro/index.html
BSD 3-Clause "New" or "Revised" License
635 stars 97 forks source link

The auto-detect of the language doesn't work. #258

Closed sergiop closed 5 years ago

sergiop commented 5 years ago

As reported in reCaptcha v2 docs, to allow reCaptcha to auto-detect the language, you don't have to specify hl param.

Schermata 2019-06-07 alle 16 32 18

If you set it to en in the defaultProps, it's impossible to set it to undefined and there isn't a way to enable the auto-detection of the language.

I created a PR to fix this: https://github.com/appleboy/react-recaptcha/pull/257

Let me know what do you think and if you can merge it. Thanks for your attention. 🙂

appleboy commented 5 years ago

Closed via #257