express-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.
- package/README.md +45 -12
- package/package.json +14 -12
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/express-intlayer"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
<a href="https://www.npmjs.com/package/express-intlayer" target="blank"><img
|
|
9
|
+
align="center"
|
|
10
|
+
alt="npm"
|
|
11
|
+
src="https://img.shields.io/npm/v/express-intlayer.svg?labelColor=49516F&color=8994BC&style=for-the-badge"
|
|
12
|
+
height="30" /></a>
|
|
13
|
+
<a href="https://npmjs.org/package/express-intlayer" target="blank"><img
|
|
14
|
+
align="center"
|
|
15
|
+
src="https://img.shields.io/npm/dm/express-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/express-intlayer" target="blank"><img
|
|
20
|
+
align="center"
|
|
21
|
+
src="https://img.shields.io/npm/types/express-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
|
# express-intlayer: JavaScript Package to internationalize (i18n) an Express.js application
|
|
@@ -190,9 +223,9 @@ app.listen(3000, () => console.log(`Listening on port 3000`));
|
|
|
190
223
|
|
|
191
224
|
`express-intlayer` is fully compatible with:
|
|
192
225
|
|
|
193
|
-
- [`react-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/en/packages/react-intlayer/index.md) for React applications
|
|
194
|
-
- [`next-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/en/packages/next-intlayer/index.md) for Next.js applications
|
|
195
|
-
- [`vite-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/en/packages/vite-intlayer/index.md) for Vite applications
|
|
226
|
+
- [`react-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/react-intlayer/index.md) for React applications
|
|
227
|
+
- [`next-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/next-intlayer/index.md) for Next.js applications
|
|
228
|
+
- [`vite-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/vite-intlayer/index.md) for Vite applications
|
|
196
229
|
|
|
197
230
|
It also works seamlessly with any internationalization solution across various environments, including browsers and API requests. You can customize the middleware to detect locale through headers or cookies:
|
|
198
231
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "express-intlayer",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Manage internationalization i18n in a simple way for express application.",
|
|
6
6
|
"keywords": [
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"cls-hooked": "^4.2.2",
|
|
65
|
-
"@intlayer/
|
|
66
|
-
"@intlayer/
|
|
67
|
-
"@intlayer/
|
|
68
|
-
"intlayer": "5.5.
|
|
65
|
+
"@intlayer/config": "5.5.11",
|
|
66
|
+
"@intlayer/chokidar": "5.5.11",
|
|
67
|
+
"@intlayer/core": "5.5.11",
|
|
68
|
+
"intlayer": "5.5.11"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@changesets/changelog-github": "0.5.1",
|
|
@@ -82,16 +82,17 @@
|
|
|
82
82
|
"tsc-alias": "^1.8.16",
|
|
83
83
|
"tsup": "^8.5.0",
|
|
84
84
|
"typescript": "^5.8.3",
|
|
85
|
+
"vitest": "^3.2.2",
|
|
85
86
|
"@utils/eslint-config": "1.0.4",
|
|
86
|
-
"@utils/ts-config": "1.0.4",
|
|
87
87
|
"@utils/tsup-config": "1.0.4",
|
|
88
|
-
"@utils/ts-config-types": "1.0.4"
|
|
88
|
+
"@utils/ts-config-types": "1.0.4",
|
|
89
|
+
"@utils/ts-config": "1.0.4"
|
|
89
90
|
},
|
|
90
91
|
"peerDependencies": {
|
|
91
|
-
"@intlayer/chokidar": "5.5.
|
|
92
|
-
"@intlayer/config": "5.5.
|
|
93
|
-
"@intlayer/core": "5.5.
|
|
94
|
-
"intlayer": "5.5.
|
|
92
|
+
"@intlayer/chokidar": "5.5.11",
|
|
93
|
+
"@intlayer/config": "5.5.11",
|
|
94
|
+
"@intlayer/core": "5.5.11",
|
|
95
|
+
"intlayer": "5.5.11"
|
|
95
96
|
},
|
|
96
97
|
"engines": {
|
|
97
98
|
"node": ">=14.18"
|
|
@@ -110,7 +111,8 @@
|
|
|
110
111
|
"prettier": "prettier . --check",
|
|
111
112
|
"prettier:fix": "prettier . --write",
|
|
112
113
|
"reset": "pnpm clean & pnpm build",
|
|
113
|
-
"test": "",
|
|
114
|
+
"test": "vitest run",
|
|
115
|
+
"test:watch": "vitest",
|
|
114
116
|
"typecheck": "tsup --project ./tsconfig.json --noEmit"
|
|
115
117
|
}
|
|
116
118
|
}
|