jsardev / reaptcha

Google reCAPTCHA v2 for React

Home Page:https://sarneeh.github.io/reaptcha

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change lang and theme dynamically

robinalexandre opened this issue · comments

Hello there,

First, thanks for the library !

I have a question about hl and theme props:
The user of my app can change the theme or the lang of the app dynamically so I would like the reCaptcha to change according to his choice.
But when I receive the props (let's say about the lang, it's the same process) in my component, and call recaptchaRef.reset(), the reCaptcha lang is still the same..

Am I doing something wrong ?

Thanks,
Alexandre

Hi! Unfortunately, it's a bug in the library. Will try to fix that in the nearest future.

I will follow up on this subject, as I also need to change the theme or the language dynamically.

Fixed in 1.10.0