Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically change language by using Blade syntax #105

Closed
pvetal opened this issue Sep 15, 2021 · 1 comment
Closed

Dynamically change language by using Blade syntax #105

pvetal opened this issue Sep 15, 2021 · 1 comment
Assignees
Labels

Comments

@pvetal
Copy link

pvetal commented Sep 15, 2021

  • noCaptcha Version: ^12.2
  • Laravel Version: 8.52
  • PHP Version: ^7.3

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
Copy link
Member

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants