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
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,13 +114,8 @@ ReactDOM.render(
114
114
115
115
#### Global properties used by reCaptcha
116
116
117
-
__lang__: *DEPRECATED* By default google reCaptcha infers the user's interface language. In order to overwrite the language and update the translation for the reCaptcha widget, you can create a global variable configuring the desired language via `lang`.
118
-
119
-
*Instead use props.hl* reCaptcha now supports an hl property to be passed at render. The global lang parameter is no longer need and will be removed.
120
-
121
117
__useRecaptchaNet__: If google.com is blocked, you can set `useRecaptchaNet` to `true` so that the component uses recaptcha.net instead.
122
118
123
-
__removeOnUnmount__: *REMOVED* This was only useful for the lang changes. Lang is now changed through
124
119
125
120
Example global properties:
126
121
```js
@@ -148,6 +143,12 @@ render(
148
143
);
149
144
```
150
145
146
+
## Migrate to 2.0
147
+
148
+
-__options.removeOnUnmount__: *REMOVED* This was only useful for the lang changes. Lang is now changed through the `hl` prop.
149
+
-__options.lang__: *REMOVED* Instead pass it as the `hl` prop on the component.
150
+
151
+
151
152
## Notes on Requirements
152
153
At least `React@16.4.1` is required due to `forwardRef` usage in the dependency [react-async-script](https://github.com/dozoisch/react-async-script).
0 commit comments