@verbaly/sveltekit 0.79.0 → 0.80.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/README.md +4 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -17,8 +17,12 @@ Server-rendered pages arrive already translated in the visitor's language (cooki
|
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
19
|
pnpm add verbaly @verbaly/sveltekit @verbaly/svelte @verbaly/vite
|
|
20
|
+
pnpm add -D @verbaly/compiler # the verbaly command: init, extract, check
|
|
21
|
+
npx verbaly init
|
|
20
22
|
```
|
|
21
23
|
|
|
24
|
+
`init` writes `verbaly.config.ts` and your source catalog. List your languages there (`locales: ['en', 'es']`): the build, `verbaly extract` and `verbaly check` all read them.
|
|
25
|
+
|
|
22
26
|
## ⚡ Wire it up
|
|
23
27
|
|
|
24
28
|
**1. Vite plugin** (extraction + the `verbaly/app` module):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verbaly/sveltekit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.80.0",
|
|
4
4
|
"description": "SvelteKit SSR integration for Verbaly: per-request locale negotiation and flash-free hydration.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"i18n",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"verbaly": "^0.
|
|
47
|
+
"verbaly": "^0.80.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@sveltejs/kit": "^3.1.1",
|
|
51
51
|
"svelte": "^5.57.3",
|
|
52
|
-
"verbaly": "^0.
|
|
52
|
+
"verbaly": "^0.80.0"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "tsdown",
|