react-intlayer 5.5.9 → 5.5.11

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.
Files changed (2) hide show
  1. package/README.md +44 -11
  2. package/package.json +17 -14
package/README.md CHANGED
@@ -5,15 +5,48 @@
5
5
  </div>
6
6
 
7
7
  <div align="center">
8
- <a href="https://www.npmjs.com/package/react-intlayer">
9
- <img alt="npm" src="https://img.shields.io/npm/v/react-intlayer.svg?labelColor=49516F&color=8994BC" />
10
- </a>
11
- <a href="https://npmjs.org/package/react-intlayer">
12
- <img alt="downloads" src="https://badgen.net/npm/dm/react-intlayer?labelColor=49516F&color=8994BC" />
13
- </a>
14
- <a href="https://npmjs.org/package/react-intlayer">
15
- <img alt="types included" src="https://badgen.net/npm/types/react-intlayer?labelColor=49516F&color=8994BC"
16
- />
8
+ <a href="https://www.npmjs.com/package/react-intlayer" target="blank"><img
9
+ align="center"
10
+ alt="npm"
11
+ src="https://img.shields.io/npm/v/react-intlayer.svg?labelColor=49516F&color=8994BC&style=for-the-badge"
12
+ height="30" /></a>
13
+ <a href="https://npmjs.org/package/react-intlayer" target="blank"><img
14
+ align="center"
15
+ src="https://img.shields.io/npm/dm/react-intlayer?labelColor=49516F&color=8994BC&style=for-the-badge"
16
+ alt="monthly downloads"
17
+ height="30"
18
+ /></a>
19
+ <a href="https://npmjs.org/package/react-intlayer" target="blank"><img
20
+ align="center"
21
+ src="https://img.shields.io/npm/types/react-intlayer?label=types%20included&labelColor=49516F&color=8994BC&style=for-the-badge"
22
+ alt="types included"
23
+ height="30"
24
+ /></a>
25
+ </div>
26
+
27
+ <div>
28
+ <br/>
29
+ <p align="center">
30
+ <a href="https://www.linkedin.com/company/intlayerorg" target="blank"><img align="center"
31
+ src="https://img.shields.io/badge/linkedin-%231DA1F2.svg?style=for-the-badge&logo=linkedin&logoColor=white"
32
+ alt="Intlayer LinkedIn" height="30"/></a>
33
+ <a href="https://www.facebook.com/intlayer" target="blank"><img align="center"
34
+ src="https://img.shields.io/badge/facebook-4267B2.svg?style=for-the-badge&logo=facebook&logoColor=white"
35
+ alt="Intlayer Facebook" height="30"/></a>
36
+ <a href="https://www.instagram.com/intlayer_org/" target="blank"><img align="center"
37
+ src="https://img.shields.io/badge/instagram-%23E4405F.svg?style=for-the-badge&logo=Instagram&logoColor=white"
38
+ alt="Intlayer Instagram" height="30"/></a>
39
+ <a href="https://x.com/Intlayer183096" target="blank"><img align="center"
40
+ src="https://img.shields.io/badge/x-1DA1F2.svg?style=for-the-badge&logo=x&logoColor=white"
41
+ alt="Intlayer X" height="30"/></a>
42
+ <a href="https://www.youtube.com/@intlayer" target="blank"><img align="center"
43
+ src="https://img.shields.io/badge/youtube-FF0000.svg?style=for-the-badge&logo=youtube&logoColor=white"
44
+ alt="Intlayer YouTube" height="30"/></a>
45
+ <a href="https://www.tiktok.com/@intlayer" target="blank"><img align="center"
46
+ src="https://img.shields.io/badge/tiktok-000000.svg?style=for-the-badge&logo=tiktok&logoColor=white"
47
+ alt="Intlayer TikTok" height="30"/></a>
48
+ <br>
49
+ </p>
17
50
  </div>
18
51
 
19
52
  # react-intlayer: Internationalize (i18n) an React application
@@ -71,7 +104,7 @@ By default, Intlayer scans for files with the extension `.content.{json,ts,tsx,j
71
104
 
72
105
  ### Declare your content
73
106
 
74
- `react-intlayer` is made to work with the [`intlayer` package](https://github.com/aymericzip/intlayer/blob/main/docs/en/packages/intlayer/index.md).`intlayer` is a package that allows you to declare your content anywhere in your code. It converts multilingual content declarations into structured dictionaries that integrate seamlessly into your application.
107
+ `react-intlayer` is made to work with the [`intlayer` package](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/intlayer/index.md).`intlayer` is a package that allows you to declare your content anywhere in your code. It converts multilingual content declarations into structured dictionaries that integrate seamlessly into your application.
75
108
 
76
109
  Here’s an example of content declaration:
77
110
 
@@ -157,7 +190,7 @@ const Component1Example = () => {
157
190
 
158
191
  Intlayer provides a lot of features to help you internationalize your React application.
159
192
 
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.**
193
+ **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/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
194
 
162
195
  ## Functions provided by `react-intlayer` package
163
196
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-intlayer",
3
- "version": "5.5.9",
3
+ "version": "5.5.11",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your React applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -69,11 +69,11 @@
69
69
  ],
70
70
  "dependencies": {
71
71
  "js-cookie": "^3.0.5",
72
- "@intlayer/api": "5.5.9",
73
- "@intlayer/config": "5.5.9",
74
- "@intlayer/core": "5.5.9",
75
- "@intlayer/dictionaries-entry": "5.5.9",
76
- "@intlayer/editor-react": "5.5.9"
72
+ "@intlayer/config": "5.5.11",
73
+ "@intlayer/dictionaries-entry": "5.5.11",
74
+ "@intlayer/core": "5.5.11",
75
+ "@intlayer/api": "5.5.11",
76
+ "@intlayer/editor-react": "5.5.11"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@craco/types": "^7.1.0",
@@ -89,7 +89,9 @@
89
89
  "tsc-alias": "^1.8.16",
90
90
  "tsup": "^8.5.0",
91
91
  "typescript": "^5.8.3",
92
- "@intlayer/backend": "5.5.9",
92
+ "uuid": "^11.1.0",
93
+ "vitest": "^3.2.2",
94
+ "@intlayer/backend": "5.5.11",
93
95
  "@utils/eslint-config": "1.0.4",
94
96
  "@utils/ts-config": "1.0.4",
95
97
  "@utils/ts-config-types": "1.0.4",
@@ -98,12 +100,12 @@
98
100
  "peerDependencies": {
99
101
  "react": ">=16.0.0",
100
102
  "react-dom": ">=16.0.0",
101
- "@intlayer/api": "5.5.9",
102
- "@intlayer/config": "5.5.9",
103
- "@intlayer/core": "5.5.9",
104
- "@intlayer/dictionaries-entry": "5.5.9",
105
- "@intlayer/editor-react": "5.5.9",
106
- "intlayer": "5.5.9"
103
+ "@intlayer/editor-react": "5.5.11",
104
+ "@intlayer/dictionaries-entry": "5.5.11",
105
+ "@intlayer/config": "5.5.11",
106
+ "@intlayer/core": "5.5.11",
107
+ "@intlayer/api": "5.5.11",
108
+ "intlayer": "5.5.11"
107
109
  },
108
110
  "engines": {
109
111
  "node": ">=14.18"
@@ -122,7 +124,8 @@
122
124
  "prettier": "prettier . --check",
123
125
  "prettier:fix": "prettier . --write",
124
126
  "reset": "pnpm clean & pnpm build",
125
- "test": "",
127
+ "test": "vitest run",
128
+ "test:watch": "vitest",
126
129
  "typecheck": "tsup --project ./tsconfig.json --noEmit"
127
130
  }
128
131
  }