Add Localization to Captcha
Closed this issue · 1 comments
GregOstry commented
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
biscolab commented
Hi @GregOstry, I'm on it. You'll find hl
parameter in next 3.6.0 version