ARCANEDEV / noCAPTCHA

:passport_control: Helper for Google's new noCAPTCHA (reCAPTCHA v2 & v3)
MIT License
359 stars 56 forks source link

Dynamically change language by using Blade syntax #105

Closed pvetal closed 2 years ago

pvetal commented 3 years ago

Description: Hi. I try to use this package for multi language project. Tell me please, can I dynamically change language by using Blade syntax?

Maybe for example some like:

{!! Form::open([...]) !!} // Other inputs... {!! no_captcha()->display(['lang'=>'en']) !!} {!! Form::submit('Submit') !!} {!! Form::close() !!}

// Remember what your mother told you {!! no_captcha()->script() !!}

Thanks ))

Steps To Reproduce:

arcanedev-maroc commented 2 years ago

Have you tried using the no_captcha()->setLang() method ? something like that:

{{ no_captcha()->setLang('en')->display() }}