sepiariver / recaptchav2

Google's ReCaptcha V2 + V3 for MODX CMS: https://sepiariver.com/modx/recaptchav2-supports-recaptchav3/
https://sepiariver.com/
GNU General Public License v2.0
21 stars 15 forks source link

language not detected #28

Closed elz64 closed 5 years ago

elz64 commented 6 years ago

Hi,

reCaptcha v2 with Formit and Modx 2.6.3 No error in the log from it but not language detection. Using 2 contexts (web = FR, EN = english) the text 'I'm not a robot' is always in the default language (French') ' Je ne suis pas un robot'. When I'm on the english contact form, the rendered html code in the Google iFrame shows lang='fr' html dir="ltr" lang="fr"

The [[++CultureKey] at this moment is however correct and set to 'en' ...?

elz64 commented 6 years ago

I saw that Google captcha v2 DOS NOT use lang parameter but hl instead... Where can I hack this if you can't ? Thank you

sepiariver commented 5 years ago

Hi @elz64 hacking isn’t necessary you can just change it in the template Chunk used by the Snippet when you call it. recaptchav2_html