You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ render(
39
39
ref="recaptcha"
40
40
sitekey="Your client site key"
41
41
onChange={onChange}
42
-
/>,
42
+
/>,
43
43
document.body
44
44
);
45
45
```
@@ -58,6 +58,14 @@ Other properties can be used to customised the rendering.
58
58
| onExpired | func |*optional* callback when the challenge is expired and has to be redone by user. By default it will call the onChange with null to signify expired callback. |
59
59
| stoken | string |*optional* set the stoken parameter, which allows the captcha to be used from different domains, see [reCAPTCHA secure-token]|
60
60
61
+
In order to translate the reCaptcha widget you should create a global variable configuring the desire language, if you don't provide it reCaptcha will pick up the user's interface language.
62
+
63
+
```
64
+
window.recaptchaOptions = {
65
+
lang: 'fr'
66
+
}
67
+
```
68
+
61
69
## Component API
62
70
63
71
The component also has some utility functions that can be called.
0 commit comments