preact-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 +44 -11
- 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/preact-intlayer"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
<a href="https://www.npmjs.com/package/preact-intlayer" target="blank"><img
|
|
9
|
+
align="center"
|
|
10
|
+
alt="npm"
|
|
11
|
+
src="https://img.shields.io/npm/v/preact-intlayer.svg?labelColor=49516F&color=8994BC&style=for-the-badge"
|
|
12
|
+
height="30" /></a>
|
|
13
|
+
<a href="https://npmjs.org/package/preact-intlayer" target="blank"><img
|
|
14
|
+
align="center"
|
|
15
|
+
src="https://img.shields.io/npm/dm/preact-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/preact-intlayer" target="blank"><img
|
|
20
|
+
align="center"
|
|
21
|
+
src="https://img.shields.io/npm/types/preact-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
|
> This package is in development.
|
|
@@ -73,7 +106,7 @@ By default, Intlayer scans for files with the extension `.content.{json,ts,tsx,j
|
|
|
73
106
|
|
|
74
107
|
### Declare your content
|
|
75
108
|
|
|
76
|
-
`preact-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.
|
|
109
|
+
`preact-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.
|
|
77
110
|
|
|
78
111
|
Here’s an example of content declaration:
|
|
79
112
|
|
|
@@ -110,7 +143,7 @@ export default component1Content;
|
|
|
110
143
|
|
|
111
144
|
Intlayer provides a lot of features to help you internationalize your Preact application.
|
|
112
145
|
|
|
113
|
-
**To learn more about these features, refer to the [Preact Internationalization (i18n) with Intlayer and Vite and Preact](https://github.com/aymericzip/intlayer/blob/main/docs/en/intlayer_with_vite+react.md) guide for Vite and Preact Application, or the [Preact Internationalization (i18n) with Intlayer and Preact (CRA)](https://intlayer.org/doc/environment/create-react-app) guide for Preact Create App.**
|
|
146
|
+
**To learn more about these features, refer to the [Preact Internationalization (i18n) with Intlayer and Vite and Preact](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_vite+react.md) guide for Vite and Preact Application, or the [Preact Internationalization (i18n) with Intlayer and Preact (CRA)](https://intlayer.org/doc/environment/create-react-app) guide for Preact Create App.**
|
|
114
147
|
|
|
115
148
|
## Functions provided by `preact-intlayer` package
|
|
116
149
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "preact-intlayer",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Preact applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"js-cookie": "^3.0.5",
|
|
60
60
|
"uuid": "^11.1.0",
|
|
61
|
-
"@intlayer/api": "5.5.
|
|
62
|
-
"@intlayer/
|
|
63
|
-
"@intlayer/
|
|
64
|
-
"@intlayer/editor": "5.5.
|
|
65
|
-
"@intlayer/
|
|
61
|
+
"@intlayer/api": "5.5.11",
|
|
62
|
+
"@intlayer/chokidar": "5.5.11",
|
|
63
|
+
"@intlayer/core": "5.5.11",
|
|
64
|
+
"@intlayer/editor": "5.5.11",
|
|
65
|
+
"@intlayer/config": "5.5.11"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@types/node": "^22.15.30",
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"tsc-alias": "^1.8.16",
|
|
76
76
|
"tsup": "^8.5.0",
|
|
77
77
|
"typescript": "^5.8.3",
|
|
78
|
+
"vitest": "^3.2.2",
|
|
78
79
|
"@utils/eslint-config": "1.0.4",
|
|
79
80
|
"@utils/ts-config": "1.0.4",
|
|
80
81
|
"@utils/ts-config-types": "1.0.4",
|
|
@@ -82,11 +83,11 @@
|
|
|
82
83
|
},
|
|
83
84
|
"peerDependencies": {
|
|
84
85
|
"preact": "^10.26.4",
|
|
85
|
-
"@intlayer/
|
|
86
|
-
"@intlayer/
|
|
87
|
-
"@intlayer/config": "5.5.
|
|
88
|
-
"@intlayer/
|
|
89
|
-
"@intlayer/
|
|
86
|
+
"@intlayer/chokidar": "5.5.11",
|
|
87
|
+
"@intlayer/api": "5.5.11",
|
|
88
|
+
"@intlayer/config": "5.5.11",
|
|
89
|
+
"@intlayer/editor": "5.5.11",
|
|
90
|
+
"@intlayer/core": "5.5.11"
|
|
90
91
|
},
|
|
91
92
|
"engines": {
|
|
92
93
|
"node": ">=14.18"
|
|
@@ -105,7 +106,8 @@
|
|
|
105
106
|
"prettier": "prettier . --check",
|
|
106
107
|
"prettier:fix": "prettier . --write",
|
|
107
108
|
"reset": "pnpm clean & pnpm build",
|
|
108
|
-
"test": "",
|
|
109
|
+
"test": "vitest run",
|
|
110
|
+
"test:watch": "vitest",
|
|
109
111
|
"typecheck": "tsup --project ./tsconfig.json --noEmit"
|
|
110
112
|
}
|
|
111
113
|
}
|