vue-recaptcha icon indicating copy to clipboard operation
vue-recaptcha copied to clipboard

the language prop not work

Open eliyahuKriel opened this issue 5 years ago • 3 comments

hi guys , thanks fro this great plugin

the language not work, its not effect on the recptcha wigidt

ah this image you can see the the chalenge is in english (default), buy the selected lang by props is 'ih' -> Hindi

image

the code look like this

    <vue-recaptcha
                language="hi"
                @verify="submit"
                ref="invisibleRecaptcha"
                :sitekey="$store.state.appMetaData.siteKey"
                size="invisible">
        </vue-recaptcha>

eliyahuKriel avatar Oct 11 '20 07:10 eliyahuKriel

It only work if you also set loadRecaptchaScript to true

DanSnow avatar Oct 11 '20 09:10 DanSnow

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 25 '20 13:12 stale[bot]

what is said here didn't work for me and language didn't change

language="fa"
:loadRecaptchaScript="true"

instead this method worked fine and I got recaptcha in my desire language putting this script in index.html head with parameter &hl=fa at the end and also :loadRecaptchaScript="true" must be removed from the template

    <script src="https://www.google.com/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit&hl=fa" async defer>
    </script>

find your language code here: https://developers.google.com/recaptcha/docs/language

misaghkarimi avatar Apr 20 '21 05:04 misaghkarimi