thinhbuzz / laravel-google-captcha

Google captcha for Laravel 5, Laravel 6, Laravel 7, Laravel 8, Laravel 9 and Laravel 10, support multiple captcha on page
MIT License
200 stars 32 forks source link

Change language of captcha wrong ? #33

Closed ducvu91 closed 10 months ago

ducvu91 commented 6 years ago

Hi, I used your plugin, it perfect but when i change language, it sometime still wrong. i config my language by vi, in both file config/captcha.php and change option in display lang => vi but sometime it still english. Can you help me fix this ? pls and thanks you

https://photos.google.com/share/AF1QipMjw3iey2Y50l7zpoGjFXAm5EfLUKGYa3SqecL66ZIx-7xSgVzh0HKhOrLmo_mnhw?key=Ym9FZ1Z3VnhQWkxsMzUxNXBWekNYdHpBcTJwTnBn

thinhbuzz commented 6 years ago

i am going to check it!

thinhbuzz commented 6 years ago

iframe created automatic by reCapcha. Can you show your example source code?

ducvu91 commented 6 years ago

code when i show

config/captcha.php

return [ 'secret' => env('CAPTCHA_SECRET', 'xyz'), 'sitekey' => env('CAPTCHA_SITEKEY', 'xyz'), /**

in view : {!! app('captcha')->display($attributes = ['data-callback' => 'onReCaptchaSuccess'], $options = ['lang'=> 'vi']) !!}

thinhbuzz commented 6 years ago

:( i can not reproduce issue

nunomira commented 6 years ago

This is also happening to me. From my tests, it has to do with the languages that you have configured in your browser (tested both Firefox and Chrome) My browsers are configured to English first, so I always get English, no matter the parameter I specify in the options. If I change the browser preferences to another language, the captcha is displayed in that language, once again, ignoring the options.