biscolab/laravel-recaptcha

Add Localization to Captcha

Closed this issue · 1 comments

Hi,
is it possible to add localization to googles recaptcha ?

My steps in ReCaptchaBuilder class were:

Add Facade:
use Illuminate\Support\Facades\App;

Add propery
protected $locale; property.

Updated constructor
public function __construct(...) { ... $this->locale = App::getLocale(); }

and then make some changes in this method (showing changes just in version v2)

htmlScriptTagJsApi() {
     <script src=\"https://www.google.com/recaptcha/api.js?hl={$this->locale}\" async defer></script>
}

Valid code languages can be found here:
https://developers.google.com/recaptcha/docs/language

best regards
Greg

Hi @GregOstry, I'm on it. You'll find hl parameter in next 3.6.0 version