react-intlayer 4.1.3 → 4.1.4
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/README.md +7 -7
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ With Intlayer, you can declare your content in a structured way anywhere in your
|
|
|
54
54
|
|
|
55
55
|
By default, Intlayer scans for files with the extension `.content.{ts,tsx,js,jsx,mjs,cjs}`.
|
|
56
56
|
|
|
57
|
-
> You can modify the default extension by setting the `contentDir` property in the [configuration file](https://intlayer.org
|
|
57
|
+
> You can modify the default extension by setting the `contentDir` property in the [configuration file](https://intlayer.org/doc/concept/configuration).
|
|
58
58
|
|
|
59
59
|
```bash codeFormat="typescript"
|
|
60
60
|
.
|
|
@@ -157,17 +157,17 @@ const Component1Example = () => {
|
|
|
157
157
|
|
|
158
158
|
Intlayer provides a lot of features to help you internationalize your React application.
|
|
159
159
|
|
|
160
|
-
**To learn more about these features, refer to the [React Internationalization (i18n) with Intlayer and Vite and React](https://github.com/aymericzip/intlayer/blob/main/docs/en/intlayer_with_vite+react.md) guide for Vite and React Application, or the [React Internationalization (i18n) with Intlayer and React (CRA)](https://intlayer.org
|
|
160
|
+
**To learn more about these features, refer to the [React Internationalization (i18n) with Intlayer and Vite and React](https://github.com/aymericzip/intlayer/blob/main/docs/en/intlayer_with_vite+react.md) guide for Vite and React Application, or the [React Internationalization (i18n) with Intlayer and React (CRA)](https://intlayer.org/doc/environment/create-react-app) guide for React Create App.**
|
|
161
161
|
|
|
162
162
|
## Functions provided by `react-intlayer` package
|
|
163
163
|
|
|
164
164
|
The `react-intlayer` package also provides some functions to help you to internationalize your application.
|
|
165
165
|
|
|
166
|
-
- [`t()`](https://intlayer.org
|
|
167
|
-
- [`useIntlayer()`](https://intlayer.org
|
|
168
|
-
- [`useDictionary()`](https://intlayer.org
|
|
169
|
-
- [`useLocale()`](https://intlayer.org
|
|
170
|
-
- [`useIntlayerAsync()`](https://intlayer.org
|
|
166
|
+
- [`t()`](https://intlayer.org/doc/packages/react-intlayer/t)
|
|
167
|
+
- [`useIntlayer()`](https://intlayer.org/doc/packages/react-intlayer/useIntlayer)
|
|
168
|
+
- [`useDictionary()`](https://intlayer.org/doc/packages/react-intlayer/useDictionary)
|
|
169
|
+
- [`useLocale()`](https://intlayer.org/doc/packages/react-intlayer/useLocale)
|
|
170
|
+
- [`useIntlayerAsync()`](https://intlayer.org/doc/packages/react-intlayer/useIntlayerAsync)
|
|
171
171
|
|
|
172
172
|
## Read about Intlayer
|
|
173
173
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-intlayer",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your React applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
],
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"js-cookie": "^3.0.5",
|
|
71
|
-
"@intlayer/api": "4.1.
|
|
72
|
-
"@intlayer/
|
|
73
|
-
"@intlayer/
|
|
74
|
-
"@intlayer/dictionaries-entry": "4.1.
|
|
75
|
-
"@intlayer/
|
|
71
|
+
"@intlayer/api": "4.1.4",
|
|
72
|
+
"@intlayer/config": "4.1.4",
|
|
73
|
+
"@intlayer/core": "4.1.4",
|
|
74
|
+
"@intlayer/dictionaries-entry": "4.1.4",
|
|
75
|
+
"@intlayer/editor-react": "4.1.4"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@craco/types": "^7.1.0",
|
|
@@ -87,21 +87,21 @@
|
|
|
87
87
|
"tsc-alias": "^1.8.10",
|
|
88
88
|
"tsup": "^8.3.5",
|
|
89
89
|
"typescript": "^5.7.3",
|
|
90
|
-
"@intlayer/backend": "4.1.3",
|
|
91
90
|
"@utils/eslint-config": "1.0.4",
|
|
91
|
+
"@intlayer/backend": "4.1.4",
|
|
92
|
+
"@utils/ts-config": "1.0.4",
|
|
92
93
|
"@utils/ts-config-types": "1.0.4",
|
|
93
|
-
"@utils/tsup-config": "1.0.4"
|
|
94
|
-
"@utils/ts-config": "1.0.4"
|
|
94
|
+
"@utils/tsup-config": "1.0.4"
|
|
95
95
|
},
|
|
96
96
|
"peerDependencies": {
|
|
97
97
|
"react": ">=16.0.0",
|
|
98
98
|
"react-dom": ">=16.0.0",
|
|
99
|
-
"@intlayer/
|
|
100
|
-
"@intlayer/
|
|
101
|
-
"@intlayer/
|
|
102
|
-
"@intlayer/
|
|
103
|
-
"intlayer": "4.1.
|
|
104
|
-
"
|
|
99
|
+
"@intlayer/api": "4.1.4",
|
|
100
|
+
"@intlayer/config": "4.1.4",
|
|
101
|
+
"@intlayer/core": "4.1.4",
|
|
102
|
+
"@intlayer/dictionaries-entry": "4.1.4",
|
|
103
|
+
"@intlayer/editor-react": "4.1.4",
|
|
104
|
+
"intlayer": "4.1.4"
|
|
105
105
|
},
|
|
106
106
|
"engines": {
|
|
107
107
|
"node": ">=14.18"
|