I trying to implement Recaptcha V2 on an angular site.
I'm using angular translate and I don't know how to regenerate the reCaptcha object with the correct language provided from the $scope
There is any method ? or process to reload the object with the correct lang ?
Thanks
Changing the recapacha src with the right hl attribute worked for me
Heres my solution using JQuery
Based on the limitation of the API you can load the script dynamically:
Function to load script
(source)
Note: this is a regular JS function
Load script dynamically
in your Angular controller
init captcha with current language using angular-translate-localStorage
sample of function to switch language
Or you could use a watcher