@verbaly/astro 0.77.0 → 0.79.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 CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  Write your text in place, in the frontmatter or right in the markup of your `.astro` files. The compiler extracts the messages, generates stable keys, typed params and one catalog per language, and the dev server keeps them in sync while you code.
15
15
 
16
- One line in `astro.config` wires everything: the Vite plugin (live extraction, the `virtual:verbaly` module and the build report) and, if you use the mirror flow, `verbaly render` runs by itself after every build. The generated types live inside Astro's own `.astro` folder (via `injectTypes`), so no extra file lands in your project.
16
+ One line in `astro.config` wires everything: the Vite plugin (live extraction, the `verbaly/app` module and the build report) and, if you use the mirror flow, `verbaly render` runs by itself after every build. The generated types live inside Astro's own `.astro` folder (via `injectTypes`), so no extra file lands in your project.
17
17
 
18
18
  ## 🚀 Install
19
19
 
@@ -61,7 +61,7 @@ Every message becomes a stable key with typed params. A build lists what `verbal
61
61
 
62
62
  ```astro
63
63
  ---
64
- import { createRequestInstance, sourceLocale } from 'virtual:verbaly';
64
+ import { createRequestInstance, sourceLocale } from 'verbaly/app';
65
65
  const { t } = await createRequestInstance(Astro.currentLocale ?? sourceLocale);
66
66
  ---
67
67
  ```
@@ -82,7 +82,7 @@ export default {
82
82
 
83
83
  Force it on or off with the integration option: `verbaly({ render: true })`.
84
84
 
85
- Every url the mirror and `virtual:verbaly` write (hreflang, sitemap, canonical, links and `localePath`) follows Astro's own `trailingSlash`, so with `'never'` the Spanish home is `/es`, never `/es/`. With `<ClientRouter />`, `virtual:verbaly` takes the language of each page before the swap, so a live `bindDom` paints the incoming page in its own language. Its default root is the whole document, so it keeps working after the router replaces the `body`.
85
+ Every url the mirror and `verbaly/app` write (hreflang, sitemap, canonical, links and `localePath`) follows Astro's own `trailingSlash`, so with `'never'` the Spanish home is `/es`, never `/es/`. With `<ClientRouter />`, `verbaly/app` takes the language of each page before the swap, so a live `bindDom` paints the incoming page in its own language. Its default root is the whole document, so it keeps working after the router replaces the `body`.
86
86
 
87
87
  ## 📚 Docs
88
88
 
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ function verbaly(options = {}) {
35
35
  const cfg = await loadConfig(root, vite, { plugin: true });
36
36
  if (!(render === void 0 ? Object.keys(cfg.render).length > 0 : Boolean(render))) return;
37
37
  if (buildOutput === "server") {
38
- console.warn("[verbaly] render skipped: only static output can be mirrored per locale. In server output, build the instance per request: `createRequestInstance(Astro.currentLocale ?? sourceLocale)` from 'virtual:verbaly'");
38
+ console.warn("[verbaly] render skipped: only static output can be mirrored per locale. In server output, build the instance per request: `createRequestInstance(Astro.currentLocale ?? sourceLocale)` from 'verbaly/app'");
39
39
  return;
40
40
  }
41
41
  const site = relative(cfg.root, fileURLToPath(dir)) || ".";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verbaly/astro",
3
- "version": "0.77.0",
3
+ "version": "0.79.0",
4
4
  "description": "Astro integration for Verbaly: write-in-source extraction for .astro files plus automatic per-locale static rendering.",
5
5
  "keywords": [
6
6
  "i18n",
@@ -45,15 +45,15 @@
45
45
  "access": "public"
46
46
  },
47
47
  "dependencies": {
48
- "@verbaly/compiler": "^0.77.0",
49
- "@verbaly/vite": "^0.77.0"
48
+ "@verbaly/compiler": "^0.79.0",
49
+ "@verbaly/vite": "^0.79.0"
50
50
  },
51
51
  "peerDependencies": {
52
- "verbaly": "^0.77.0"
52
+ "verbaly": "^0.79.0"
53
53
  },
54
54
  "devDependencies": {
55
55
  "astro": "^7.4.4",
56
- "verbaly": "^0.77.0"
56
+ "verbaly": "^0.79.0"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "tsdown",