@verbaly/unplugin 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 +2 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -52,7 +52,8 @@ npx verbaly extract # scan sources, sync catalogs, write the types (sr
|
|
|
52
52
|
npx verbaly extract --watch # keep extracting as you code (dev loop)
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
- **Same project module**: `import { t, setLocale } from 'verbaly/app'`. With webpack, write that name: webpack reads `virtual:verbaly`, the old one, as a URI scheme and stops before any plugin sees it.
|
|
55
|
+
- **Same project module**: `import { t, setLocale } from 'verbaly/app'`. With webpack, write that name: webpack reads `virtual:verbaly`, the old one, as a URI scheme and stops before any plugin sees it. A file that imports `@verbaly/react`, `@verbaly/vue` or `@verbaly/svelte` loads it too, so their hooks work with no provider in the browser.
|
|
56
|
+
- **The language a visitor chose**: `switchLocale` saves it in the browser and sets `<html lang>`, which `setLocale` sets too, saving nothing. A single-page app starts in its source language, so read the choice back before the first render: `setLocale(resolveLocale({ supported: locales, path: false })).then(render)`, with `resolveLocale` from `verbaly`.
|
|
56
57
|
- **Build report**: each build, and each rebuild of a watch, says what `verbaly check` would fail on and goes on. A problem is said once while it lasts, so a watch does not repeat it on every save. `failOnMissing: true` stops the build instead.
|
|
57
58
|
- **Files outside `include`**: the build names once, when it starts, every file outside your `include` that writes a `` t`…` ``, since that text ships untranslated.
|
|
58
59
|
- **Typed keys**: each build writes the types to `src/verbaly.d.ts` too, with the texts the code adds, so a fresh clone typechecks after its first build. A script that checks types first needs `npx verbaly typegen` before it.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verbaly/unplugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.80.0",
|
|
4
4
|
"description": "Verbaly for webpack, Rollup, esbuild and Rspack: extraction, virtual modules and build gate via unplugin.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"i18n",
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@verbaly/compiler": "0.
|
|
49
|
+
"@verbaly/compiler": "0.80.0",
|
|
50
50
|
"unplugin": "^3.7.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"verbaly": "^0.
|
|
53
|
+
"verbaly": "^0.80.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"esbuild": "^0.28.2",
|
|
57
|
-
"verbaly": "^0.
|
|
57
|
+
"verbaly": "^0.80.0",
|
|
58
58
|
"webpack": "^5.112.2"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|