16
Views
3
Comments
Solved
[Google reCAPTCHA React] Google reCAPTCHA v2 Dynamic Language Switching Without Re-rendering Error
google-recaptcha-react
Reactive icon
Forge asset by Leandro Oliveira
Application Type
Reactive

I’ve developed a fix that checks if the widget is already rendered. If it is, instead of re-rendering, it dynamically updates the hl (language) parameter directly in the iframe's source. This allows the language to update seamlessly without crashing the script. 


Could you please consider incorporating this logic into the next version of the component? It would significantly improve the stability for multi-language applications. 

2019-10-25 19-52-02
Leandro Oliveira
Champion
Solution

New version 2.1.0 released with the possibility to change the captcha's language!

2023-10-16 05-50-48
Shingo Lam

oh, you had the solution for the dynamic multi-language. 

Thanks for greatly contributing for the community

2019-10-25 19-52-02
Leandro Oliveira
Champion

Hello @Gee Kay !

Thank you for the contribution. I'll take a look in the next days and update as soon as I can.

2019-10-25 19-52-02
Leandro Oliveira
Champion
Solution

New version 2.1.0 released with the possibility to change the captcha's language!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.