@wordpress/react-i18n 3.28.0 → 3.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/README.md +2 -5
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -48,9 +48,7 @@ _Returns_
|
|
|
48
48
|
|
|
49
49
|
### useI18n
|
|
50
50
|
|
|
51
|
-
React hook providing access to i18n functions. It exposes the `__`, `_x`, `_n`, `_nx`,
|
|
52
|
-
`isRTL` and `hasTranslation` functions from [`@wordpress/i18n`](../i18n).
|
|
53
|
-
Refer to their documentation there.
|
|
51
|
+
React hook providing access to i18n functions. It exposes the `__`, `_x`, `_n`, `_nx`, `isRTL` and `hasTranslation` functions from [`@wordpress/i18n`](../i18n). Refer to their documentation there.
|
|
54
52
|
|
|
55
53
|
_Usage_
|
|
56
54
|
|
|
@@ -65,8 +63,7 @@ function MyComponent() {
|
|
|
65
63
|
|
|
66
64
|
### withI18n
|
|
67
65
|
|
|
68
|
-
React higher-order component that passes the i18n translate functions (the same set
|
|
69
|
-
as exposed by the `useI18n` hook) to the wrapped component as props.
|
|
66
|
+
React higher-order component that passes the i18n translate functions (the same set as exposed by the `useI18n` hook) to the wrapped component as props.
|
|
70
67
|
|
|
71
68
|
_Usage_
|
|
72
69
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/react-i18n",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.29.0",
|
|
4
4
|
"description": "React bindings for @wordpress/i18n.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"sideEffects": false,
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@babel/runtime": "^7.16.0",
|
|
31
|
-
"@wordpress/element": "^5.
|
|
32
|
-
"@wordpress/i18n": "^4.
|
|
31
|
+
"@wordpress/element": "^5.8.0",
|
|
32
|
+
"@wordpress/i18n": "^4.31.0",
|
|
33
33
|
"utility-types": "^3.10.0"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "d61700b9f1c72ba0b030fc815ef1685b4f4031ec"
|
|
39
39
|
}
|