@verbaly/nuxt 0.23.0 → 0.24.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 -4
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -71,10 +71,10 @@ That's it. The module negotiates the locale per request (cookie → `Accept-Lang
|
|
|
71
71
|
|
|
72
72
|
Via the `verbaly` key in `nuxt.config` or inline module options (fully typed in `nuxt.config.ts`: autocomplete and typo checking, since 0.21.0). Every [`@verbaly/vite`](https://www.npmjs.com/package/@verbaly/vite) option passes through, plus:
|
|
73
73
|
|
|
74
|
-
| Option
|
|
75
|
-
|
|
|
76
|
-
| `cookie`
|
|
77
|
-
| `fallback` | Locale when nothing matches (defaults to the source locale).
|
|
74
|
+
| Option | What it does |
|
|
75
|
+
| ---------- | ------------------------------------------------------------------------------------------------------- |
|
|
76
|
+
| `cookie` | Cookie read/written for the user's choice (default `verbaly-locale`); `false` = `Accept-Language` only. |
|
|
77
|
+
| `fallback` | Locale when nothing matches (defaults to the source locale). |
|
|
78
78
|
|
|
79
79
|
- No dependency on `nuxt` or `@nuxt/kit`: the module is typed structurally; the only moving parts are core primitives (`resolveRequestLocale`) and the generated `createRequestInstance`.
|
|
80
80
|
- For fully static sites (`nuxi generate`), consider [`verbaly render`](https://www.npmjs.com/package/@verbaly/compiler) for pre-translated output per locale.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verbaly/nuxt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"description": "Nuxt integration for Verbaly: zero-config module with per-request locale negotiation and flash-free hydration.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"i18n",
|
|
@@ -41,19 +41,19 @@
|
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@verbaly/vite": "^0.
|
|
44
|
+
"@verbaly/vite": "^0.24.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"vue": "^3.4.0",
|
|
48
|
-
"verbaly": "^0.
|
|
49
|
-
"@verbaly/vue": "^0.
|
|
48
|
+
"verbaly": "^0.24.0",
|
|
49
|
+
"@verbaly/vue": "^0.24.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@nuxt/schema": "^4.4.8",
|
|
53
53
|
"happy-dom": "^20.10.6",
|
|
54
54
|
"vue": "^3.5.39",
|
|
55
|
-
"verbaly": "0.
|
|
56
|
-
"
|
|
55
|
+
"@verbaly/vue": "0.24.0",
|
|
56
|
+
"verbaly": "0.24.0"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "tsdown",
|