@menapo/vi18n 0.1.0 → 0.1.1

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.
Files changed (45) hide show
  1. package/README.md +14 -14
  2. package/dist/{check-DyrAbv73.js → check-BIKEuu6B.js} +2 -2
  3. package/dist/check-HsmmpJZg.js +1 -0
  4. package/dist/cli.js +1 -1
  5. package/dist/{compile-B5Mz6WJm.js → compile-BaDh0cHG.js} +2 -2
  6. package/dist/{engine-B7p40M__.js → engine-C2ENBRJe.js} +10 -10
  7. package/dist/{export-DGsMbcTZ.js → export-C9Sy6UWv.js} +3 -3
  8. package/dist/{extract-Dujlsgnk.js → extract-C3S8btx0.js} +5 -5
  9. package/dist/{formats-KPIg-08V.js → formats-9unqj_fZ.js} +1 -1
  10. package/dist/i18next-9HAoxwUI.js +1 -0
  11. package/dist/{i18next-CrUnKFfh.js → i18next-BEJgv_S8.js} +1 -1
  12. package/dist/{import-Cwdhcywt.js → import-nANvQutw.js} +4 -4
  13. package/dist/{init-BecCTvKi.js → init-C2ScuW6a.js} +3 -3
  14. package/dist/{lingui--PcOOYry.js → lingui-zUiCl9Um.js} +2 -2
  15. package/dist/lint.js +2 -2
  16. package/dist/{lsp-Cq1Nuu-Q.js → lsp-RMMMc88P.js} +1 -1
  17. package/dist/{mcp-Cf0T7qPW.js → mcp-CHVwBoRP.js} +1 -1
  18. package/dist/{merge-driver-CpiiSVIc.js → merge-driver-BTX87aVm.js} +2 -2
  19. package/dist/{messages-Cxa-5tR0.js → messages-BfjIExyB.js} +1 -1
  20. package/dist/{migrate-dPgq9uzy.js → migrate-IpLDMXmq.js} +6 -6
  21. package/dist/migrate-rCQuOGsf.js +1 -0
  22. package/dist/{output-DsaHKHEt.js → output-DWE3SIUA.js} +1 -1
  23. package/dist/{pipeline-C7g11THL.js → pipeline-C9Dbotkh.js} +1 -1
  24. package/dist/{pipeline-wxS0SApG.js → pipeline-DbX6rlo5.js} +1 -1
  25. package/dist/{project-pXipT8iG.js → project-Bw9UPIdx.js} +1 -1
  26. package/dist/{project-Dwx7iPm6.js → project-C4GpaN-n.js} +4 -4
  27. package/dist/{react-intl-CaBVwJ9u.js → react-intl-BP0u-D5m.js} +2 -2
  28. package/dist/{restore-Btq66Tid.js → restore-CiYv-jxS.js} +3 -3
  29. package/dist/{rewrite-CiTRAICl.js → rewrite-EsIw_lsq.js} +1 -1
  30. package/dist/{run-DYD_VXKy.js → run-BEcnBbu-.js} +18 -18
  31. package/dist/{server-qv3mz70d.js → server-Da1Ot9IN.js} +9 -9
  32. package/dist/{server-BDkykMjb.js → server-deBOq2vq.js} +4 -4
  33. package/dist/{sitemap-DV3o8QD7.js → sitemap-DJXzKoza.js} +2 -2
  34. package/dist/{status-DZArW5aE.js → status-zr4jY59Y.js} +2 -2
  35. package/dist/{sync-CcVzger_.js → sync-B9V2KFwb.js} +1 -1
  36. package/dist/{translate-DZR3MkSA.js → translate-CQnJfLjO.js} +3 -3
  37. package/dist/{version-BlyLGlOa.js → version-Byqi2guX.js} +2 -2
  38. package/dist/{vite-scan-B_YW4X_a.js → vite-scan-CT_vsp4g.js} +1 -1
  39. package/dist/vite.js +5 -5
  40. package/dist/{vue-i18n-CEMnpv7k.js → vue-i18n-g0iGy6CZ.js} +3 -3
  41. package/dist/{which-C6PFI1Dm.js → which-BOemZ5Q8.js} +2 -2
  42. package/package.json +4 -4
  43. package/dist/check-D34P-S--.js +0 -1
  44. package/dist/i18next-Rgo-v9l0.js +0 -1
  45. package/dist/migrate-CntqvrW4.js +0 -1
package/README.md CHANGED
@@ -74,20 +74,20 @@ Requires Vite 8.3 or a later 8.x and Node 22.18 or newer.
74
74
 
75
75
  ## Documentation
76
76
 
77
- - [Getting started](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/getting-started.md)
78
- - [Writing messages](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/messages.md): `t`, ICU, `msg`, rich text, `fmt`, the locale API
79
- - [Catalogs and the CLI](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/catalogs-and-cli.md): `extract`, `check`, `status`, `compile`, `translate`, `export` / `import`, `restore`, `which`, the git merge driver
80
- - [Configuration reference](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/configuration.md)
81
- - [Localized paths, domains and sitemaps](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/localized-urls.md)
82
- - [Linting](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/lint.md): the `@menapo/vi18n/lint` rules
83
- - [Testing](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/testing.md): `@menapo/vi18n/test` · [Web Workers](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/workers.md) · [Libraries](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/libraries.md)
84
- - Recipes: [SPAs](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/recipes/spa.md) (React, Preact, Vue, Svelte, Solid, plain JS) · [SvelteKit](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/recipes/sveltekit.md) · [Astro](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/recipes/astro.md) · [TanStack Start](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/recipes/tanstack-start.md) · [React Router](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/recipes/react-router.md) · [Nuxt](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/recipes/nuxt.md) · [SolidStart](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/recipes/solid-start.md) · [Hono and Workers](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/recipes/hono-workers.md)
85
- - [Deploying: cache headers per host](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/deploy.md) · [Content Security Policy](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/csp.md)
86
- - [Migrating from i18next, react-intl, Lingui or vue-i18n](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/migrate-from-libraries.md) · [from `@saas/i18n`](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/migrate-from-saas-i18n.md)
87
- - Design: [PLAN.md](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/PLAN.md)
77
+ - [Getting started](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/getting-started.md)
78
+ - [Writing messages](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/messages.md): `t`, ICU, `msg`, rich text, `fmt`, the locale API
79
+ - [Catalogs and the CLI](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/catalogs-and-cli.md): `extract`, `check`, `status`, `compile`, `translate`, `export` / `import`, `restore`, `which`, the git merge driver
80
+ - [Configuration reference](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/configuration.md)
81
+ - [Localized paths, domains and sitemaps](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/localized-urls.md)
82
+ - [Linting](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/lint.md): the `@menapo/vi18n/lint` rules
83
+ - [Testing](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/testing.md): `@menapo/vi18n/test` · [Web Workers](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/workers.md) · [Libraries](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/libraries.md)
84
+ - Recipes: [SPAs](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/recipes/spa.md) (React, Preact, Vue, Svelte, Solid, plain JS) · [SvelteKit](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/recipes/sveltekit.md) · [Astro](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/recipes/astro.md) · [TanStack Start](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/recipes/tanstack-start.md) · [React Router](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/recipes/react-router.md) · [Nuxt](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/recipes/nuxt.md) · [SolidStart](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/recipes/solid-start.md) · [Hono and Workers](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/recipes/hono-workers.md)
85
+ - [Deploying: cache headers per host](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/deploy.md) · [Content Security Policy](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/csp.md)
86
+ - [Migrating from i18next, react-intl, Lingui or vue-i18n](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/migrate-from-libraries.md) · [from `@saas/i18n`](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/migrate-from-saas-i18n.md)
87
+ - Design: [PLAN.md](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/PLAN.md)
88
88
 
89
89
  The same pages, with the benchmarks, build as a site from
90
- [`site/`](https://github.com/menapo/vite-plugins/tree/main/site) in the
90
+ [`site/`](https://github.com/menapo/kit/tree/main/site) in the
91
91
  repository; `vp run --filter @menapo/site dev` serves it locally.
92
92
 
93
93
  ## Entry points
@@ -99,8 +99,8 @@ repository; `vp run --filter @menapo/site dev` serves it locally.
99
99
  | `@menapo/vi18n/parse` | Text that is not in your code (a CMS, a database): `parse`, `format`, `onParseError`, for ICU and MessageFormat 2 |
100
100
  | `@menapo/vi18n/vite` | The `vi18n()` plugin, and `vi18nTransform()` for Rollup/Rolldown pipelines |
101
101
  | `@menapo/vi18n/config` | `defineConfig`, build-time `localizedPaths` and the `openaiCompatible` provider for `vi18n.config.ts` |
102
- | `@menapo/vi18n/lint` | Lint rules for `vp check`, oxlint or ESLint: untranslated text, dynamic messages, ICU errors with fixes ([guide](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/lint.md)) |
103
- | `@menapo/vi18n/test` | Tests in another locale: `createTestI18n`, `loadCatalog`, `setPseudoLocale`, `scanPseudo` ([guide](https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/testing.md)) |
102
+ | `@menapo/vi18n/lint` | Lint rules for `vp check`, oxlint or ESLint: untranslated text, dynamic messages, ICU errors with fixes ([guide](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/lint.md)) |
103
+ | `@menapo/vi18n/test` | Tests in another locale: `createTestI18n`, `loadCatalog`, `setPseudoLocale`, `scanPseudo` ([guide](https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/testing.md)) |
104
104
  | `vi18n` | The CLI: `init`, `extract`, `check`, `status`, `compile`, `translate`, `migrate`, `sitemap`, `export`, `import`, `restore`, `which`, `merge-driver`, `lsp`, `mcp` |
105
105
 
106
106
  There is no per-framework package: the plugin generates the little glue a
@@ -3,9 +3,9 @@ import { r as validateTranslation } from "./validate-BxpupdAf.js";
3
3
  import { s as catalogPath } from "./library-D5CWvTQs.js";
4
4
  import { r as resolveDuplicates, t as duplicateDiagnostics } from "./duplicates-yuRljQ6h.js";
5
5
  import { t as findCollisions } from "./collisions-CfpZU8e4.js";
6
- import { i as rootRelative, r as plural, t as countBySeverity } from "./output-DsaHKHEt.js";
6
+ import { i as rootRelative, r as plural, t as countBySeverity } from "./output-DWE3SIUA.js";
7
7
  import { t as EXIT } from "./types-wSh9fCBY.js";
8
- import { a as loadCatalogs, c as ownStatus, d as referencedMessages, f as scan, o as loadProject, s as occurrencesOf } from "./project-Dwx7iPm6.js";
8
+ import { a as loadCatalogs, c as ownStatus, d as referencedMessages, f as scan, o as loadProject, s as occurrencesOf } from "./project-C4GpaN-n.js";
9
9
  //#region src/cli/commands/check.ts
10
10
  /**
11
11
  * `vi18n check [missing] [placeholders] [syntax] [--ci] [--format …]`
@@ -0,0 +1 @@
1
+ export { t as check } from "./check-BIKEuu6B.js";
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as run } from "./run-DYD_VXKy.js";
2
+ import { t as run } from "./run-BEcnBbu-.js";
3
3
  import { createInterface } from "node:readline/promises";
4
4
  //#region src/cli/bin.ts
5
5
  /**
@@ -1,9 +1,9 @@
1
1
  import { i as toRuntimeConfig } from "./runtime-DTMmliT1.js";
2
2
  import { a as assetCatalogsModule, i as SERVER_FILES, o as serverCatalogVersion, s as serverCatalogsDir, t as compileLocales } from "./locales-DX4MOBFE.js";
3
3
  import { t as findCollisions } from "./collisions-CfpZU8e4.js";
4
- import { a as table, i as rootRelative, r as plural } from "./output-DsaHKHEt.js";
4
+ import { a as table, i as rootRelative, r as plural } from "./output-DWE3SIUA.js";
5
5
  import { t as EXIT } from "./types-wSh9fCBY.js";
6
- import { a as loadCatalogs, f as scan, i as hasErrors, n as compareText, o as loadProject, r as computeDrift, s as occurrencesOf, u as readErrors } from "./project-Dwx7iPm6.js";
6
+ import { a as loadCatalogs, f as scan, i as hasErrors, n as compareText, o as loadProject, r as computeDrift, s as occurrencesOf, u as readErrors } from "./project-C4GpaN-n.js";
7
7
  import { dirname, join, resolve } from "node:path";
8
8
  import { randomBytes } from "node:crypto";
9
9
  import { mkdir, readFile, readdir, rename, rm, writeFile } from "node:fs/promises";
@@ -1,13 +1,13 @@
1
1
  import { o as isDiagnosticError } from "./types-D3QGM8XO.js";
2
2
  import { r as validateTranslation } from "./validate-BxpupdAf.js";
3
3
  import { m as updateCatalogFile, s as catalogPath } from "./library-D5CWvTQs.js";
4
- import { i as listProjectFiles, r as isIncluded } from "./project-pXipT8iG.js";
5
- import { t as VERSION } from "./version-BlyLGlOa.js";
6
- import { i as rootRelative, r as plural } from "./output-DsaHKHEt.js";
4
+ import { i as listProjectFiles, r as isIncluded } from "./project-Bw9UPIdx.js";
5
+ import { t as VERSION } from "./version-Byqi2guX.js";
6
+ import { i as rootRelative, r as plural } from "./output-DWE3SIUA.js";
7
7
  import { t as EXIT } from "./types-wSh9fCBY.js";
8
- import { a as loadCatalogs, i as hasErrors, n as compareText, o as loadProject } from "./project-Dwx7iPm6.js";
9
- import { _ as toManualId, a as encodeMarkup, d as positionOf, i as atomicWrite, l as planCatalogs, t as MESSAGES_MODULE, u as plannedCatalog, v as usage } from "./migrate-dPgq9uzy.js";
10
- import { f as jsString, n as RUNTIME_MODULE, r as renderPlan } from "./rewrite-CiTRAICl.js";
8
+ import { a as loadCatalogs, i as hasErrors, n as compareText, o as loadProject } from "./project-C4GpaN-n.js";
9
+ import { _ as toManualId, a as encodeMarkup, d as positionOf, i as atomicWrite, l as planCatalogs, t as MESSAGES_MODULE, u as plannedCatalog, v as usage } from "./migrate-IpLDMXmq.js";
10
+ import { f as jsString, n as RUNTIME_MODULE, r as renderPlan } from "./rewrite-EsIw_lsq.js";
11
11
  import { basename, dirname, extname, join, relative, resolve } from "node:path";
12
12
  import { readFile, readdir, stat } from "node:fs/promises";
13
13
  //#region src/cli/commands/migrate/engine.ts
@@ -216,10 +216,10 @@ function assignIds(keys, defs, keepIds, codec) {
216
216
  }
217
217
  async function createAdapter(library) {
218
218
  switch (library) {
219
- case "i18next": return (await import("./i18next-Rgo-v9l0.js")).createI18nextAdapter();
220
- case "react-intl": return (await import("./react-intl-CaBVwJ9u.js")).createReactIntlAdapter();
221
- case "lingui": return (await import("./lingui--PcOOYry.js")).createLinguiAdapter();
222
- case "vue-i18n": return (await import("./vue-i18n-CEMnpv7k.js")).createVueI18nAdapter();
219
+ case "i18next": return (await import("./i18next-9HAoxwUI.js")).createI18nextAdapter();
220
+ case "react-intl": return (await import("./react-intl-BP0u-D5m.js")).createReactIntlAdapter();
221
+ case "lingui": return (await import("./lingui-zUiCl9Um.js")).createLinguiAdapter();
222
+ case "vue-i18n": return (await import("./vue-i18n-g0iGy6CZ.js")).createVueI18nAdapter();
223
223
  }
224
224
  }
225
225
  /** Where the `msg()` table goes: beside the source catalog when that is extracted, else in the first include root. */
@@ -1,8 +1,8 @@
1
1
  import { c as sourceIndexOf, n as EXTENSIONS, o as exchangeUnits } from "./units-CQ5Q99RC.js";
2
- import { r as plural } from "./output-DsaHKHEt.js";
2
+ import { r as plural } from "./output-DWE3SIUA.js";
3
3
  import { t as EXIT } from "./types-wSh9fCBY.js";
4
- import { a as loadCatalogs, o as loadProject, t as CliExit, u as readErrors } from "./project-Dwx7iPm6.js";
5
- import { n as serializeExport } from "./formats-KPIg-08V.js";
4
+ import { a as loadCatalogs, o as loadProject, t as CliExit, u as readErrors } from "./project-C4GpaN-n.js";
5
+ import { n as serializeExport } from "./formats-9unqj_fZ.js";
6
6
  import { join, resolve } from "node:path";
7
7
  import { mkdir, writeFile } from "node:fs/promises";
8
8
  //#region src/cli/commands/export.ts
@@ -1,11 +1,11 @@
1
1
  import { m as updateCatalogFile, n as libraryCoverage, s as catalogPath } from "./library-D5CWvTQs.js";
2
- import { n as scanProject, r as isIncluded } from "./project-pXipT8iG.js";
3
- import { t as VERSION } from "./version-BlyLGlOa.js";
4
- import { a as writeGenFile, n as syncCatalogs, t as syncCatalog } from "./sync-CcVzger_.js";
2
+ import { n as scanProject, r as isIncluded } from "./project-Bw9UPIdx.js";
3
+ import { t as VERSION } from "./version-Byqi2guX.js";
4
+ import { a as writeGenFile, n as syncCatalogs, t as syncCatalog } from "./sync-B9V2KFwb.js";
5
5
  import { t as findCollisions } from "./collisions-CfpZU8e4.js";
6
- import { a as table, i as rootRelative, r as plural } from "./output-DsaHKHEt.js";
6
+ import { a as table, i as rootRelative, r as plural } from "./output-DWE3SIUA.js";
7
7
  import { t as EXIT } from "./types-wSh9fCBY.js";
8
- import { a as loadCatalogs, f as scan, i as hasErrors, o as loadProject, r as computeDrift, s as occurrencesOf, u as readErrors } from "./project-Dwx7iPm6.js";
8
+ import { a as loadCatalogs, f as scan, i as hasErrors, o as loadProject, r as computeDrift, s as occurrencesOf, u as readErrors } from "./project-C4GpaN-n.js";
9
9
  import { dirname, join, resolve } from "node:path";
10
10
  import { watch } from "node:fs";
11
11
  import { stat } from "node:fs/promises";
@@ -1,5 +1,5 @@
1
1
  import { _ as parseJsonCatalog, g as serializePo, h as parsePo, v as serializeJsonCatalog, y as createEntry } from "./library-D5CWvTQs.js";
2
- import { t as VERSION } from "./version-BlyLGlOa.js";
2
+ import { t as VERSION } from "./version-Byqi2guX.js";
3
3
  import { a as exchangeKey, s as parseExchangeKey } from "./units-CQ5Q99RC.js";
4
4
  //#region src/core/exchange/csv.ts
5
5
  /**
@@ -0,0 +1 @@
1
+ export { n as createI18nextAdapter } from "./i18next-BEJgv_S8.js";
@@ -2,7 +2,7 @@ import { o as isDiagnosticError } from "./types-D3QGM8XO.js";
2
2
  import { t as pluralCategories } from "./validate-BxpupdAf.js";
3
3
  import { n as printICU } from "./codec-DuvU2VQy.js";
4
4
  import { l as langFromId, u as parseModule } from "./worker-84U6uYB3.js";
5
- import { _ as keyName, a as attributeExpression, b as stringValue, c as cleanJsxText, d as isNode, f as jsString, g as jsxNameNodes, h as jsxName, i as analyzeModule, l as identifierName, m as jsxChildren, o as attributeString, p as jsxAttributes, s as childEntries, t as ModuleBuilder, u as inJsxChildren, v as memberParts, x as unwrap, y as objectProperties } from "./rewrite-CiTRAICl.js";
5
+ import { _ as keyName, a as attributeExpression, b as stringValue, c as cleanJsxText, d as isNode, f as jsString, g as jsxNameNodes, h as jsxName, i as analyzeModule, l as identifierName, m as jsxChildren, o as attributeString, p as jsxAttributes, s as childEntries, t as ModuleBuilder, u as inJsxChildren, v as memberParts, x as unwrap, y as objectProperties } from "./rewrite-EsIw_lsq.js";
6
6
  import { extname } from "node:path";
7
7
  import { createHash } from "node:crypto";
8
8
  import { readFileSync } from "node:fs";
@@ -1,10 +1,10 @@
1
1
  import { m as updateCatalogFile } from "./library-D5CWvTQs.js";
2
- import { t as VERSION } from "./version-BlyLGlOa.js";
2
+ import { t as VERSION } from "./version-Byqi2guX.js";
3
3
  import { c as sourceIndexOf } from "./units-CQ5Q99RC.js";
4
- import { i as rootRelative, r as plural } from "./output-DsaHKHEt.js";
4
+ import { i as rootRelative, r as plural } from "./output-DWE3SIUA.js";
5
5
  import { t as EXIT } from "./types-wSh9fCBY.js";
6
- import { a as loadCatalogs, o as loadProject, t as CliExit, u as readErrors } from "./project-Dwx7iPm6.js";
7
- import { t as readImport } from "./formats-KPIg-08V.js";
6
+ import { a as loadCatalogs, o as loadProject, t as CliExit, u as readErrors } from "./project-C4GpaN-n.js";
7
+ import { t as readImport } from "./formats-9unqj_fZ.js";
8
8
  import { t as applyImport } from "./apply-Bre-lY9J.js";
9
9
  import { basename, extname, resolve } from "node:path";
10
10
  import { readFile } from "node:fs/promises";
@@ -2,11 +2,11 @@ import { o as isDiagnosticError, t as CONFIG_FILE } from "./types-D3QGM8XO.js";
2
2
  import { i as idScheme } from "./validate-BxpupdAf.js";
3
3
  import { b as emptyCatalog, o as catalogLayout, p as serializeCatalog, s as catalogPath } from "./library-D5CWvTQs.js";
4
4
  import { n as loadConfig, r as resolveConfig } from "./load-gW-oJt1Q.js";
5
- import { t as VERSION } from "./version-BlyLGlOa.js";
5
+ import { t as VERSION } from "./version-Byqi2guX.js";
6
6
  import { l as langFromId, u as parseModule } from "./worker-84U6uYB3.js";
7
- import { a as writeGenFile, r as GEN_FILE } from "./sync-CcVzger_.js";
7
+ import { a as writeGenFile, r as GEN_FILE } from "./sync-B9V2KFwb.js";
8
8
  import { t as EXIT } from "./types-wSh9fCBY.js";
9
- import { t as CliExit } from "./project-Dwx7iPm6.js";
9
+ import { t as CliExit } from "./project-C4GpaN-n.js";
10
10
  import { createRequire } from "node:module";
11
11
  import { basename, dirname, extname, isAbsolute, join, relative, resolve, sep } from "node:path";
12
12
  import { randomBytes } from "node:crypto";
@@ -2,8 +2,8 @@ import { o as isDiagnosticError } from "./types-D3QGM8XO.js";
2
2
  import { n as printICU } from "./codec-DuvU2VQy.js";
3
3
  import { h as parsePo } from "./library-D5CWvTQs.js";
4
4
  import { l as langFromId, s as decodeEntities, u as parseModule } from "./worker-84U6uYB3.js";
5
- import { _ as keyName, a as attributeExpression, b as stringValue, g as jsxNameNodes, h as jsxName, i as analyzeModule, l as identifierName, o as attributeString, p as jsxAttributes, s as childEntries, t as ModuleBuilder, u as inJsxChildren, v as memberParts, x as unwrap, y as objectProperties } from "./rewrite-CiTRAICl.js";
6
- import { _ as linguiId, c as newNaming, d as richCall, f as selfClosingTags, l as reactTypes, o as elementHandler, p as siteHandlers, s as entry, t as MODULE_EXTENSIONS, u as renameTags, v as parseJson } from "./i18next-CrUnKFfh.js";
5
+ import { _ as keyName, a as attributeExpression, b as stringValue, g as jsxNameNodes, h as jsxName, i as analyzeModule, l as identifierName, o as attributeString, p as jsxAttributes, s as childEntries, t as ModuleBuilder, u as inJsxChildren, v as memberParts, x as unwrap, y as objectProperties } from "./rewrite-EsIw_lsq.js";
6
+ import { _ as linguiId, c as newNaming, d as richCall, f as selfClosingTags, l as reactTypes, o as elementHandler, p as siteHandlers, s as entry, t as MODULE_EXTENSIONS, u as renameTags, v as parseJson } from "./i18next-BEJgv_S8.js";
7
7
  import { extname } from "node:path";
8
8
  import { readFileSync } from "node:fs";
9
9
  //#region src/cli/commands/migrate/lingui.ts
package/dist/lint.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { r as DEFAULT_IMPORT_SOURCES } from "./types-D3QGM8XO.js";
2
2
  import { f as parseICU, p as quoteStarts, u as normalizeSource } from "./validate-BxpupdAf.js";
3
3
  import { t as createCodec } from "./codec-DuvU2VQy.js";
4
- import { t as VERSION } from "./version-BlyLGlOa.js";
4
+ import { t as VERSION } from "./version-Byqi2guX.js";
5
5
  import { a as isIgnored, i as findMarkers, n as sourceSpecifiers, r as scanModule } from "./sources-D19czDSA.js";
6
6
  import { t as findCapturedValues } from "./captured-Bj8bO6vd.js";
7
7
  import { extname } from "node:path";
@@ -283,7 +283,7 @@ function reportRange(context, range, messageId, data, fix) {
283
283
  ...fix === void 0 ? {} : { fix }
284
284
  });
285
285
  }
286
- const DOCS = "https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/lint.md";
286
+ const DOCS = "https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/lint.md";
287
287
  /** Rule docs link: the guide's section of that rule. */
288
288
  function docs(rule, description, recommended = true) {
289
289
  return {
@@ -10,7 +10,7 @@ import { t as protocolConsole } from "./stdio-CVaJfxA7.js";
10
10
  async function lsp(ctx, _flags) {
11
11
  const streams = ctx.io.streams;
12
12
  if (streams === void 0) throw new Error("vi18n lsp needs the process's stdin and stdout");
13
- const { startLanguageServer } = await import("./server-BDkykMjb.js");
13
+ const { startLanguageServer } = await import("./server-deBOq2vq.js");
14
14
  const restore = protocolConsole(streams.output);
15
15
  try {
16
16
  return {
@@ -4,7 +4,7 @@ import { t as protocolConsole } from "./stdio-CVaJfxA7.js";
4
4
  async function mcp(ctx, _flags) {
5
5
  const streams = ctx.io.streams;
6
6
  if (streams === void 0) throw new Error("vi18n mcp needs the process's stdin and stdout");
7
- const { serveMcp } = await import("./server-qv3mz70d.js");
7
+ const { serveMcp } = await import("./server-Da1Ot9IN.js");
8
8
  const restore = protocolConsole(streams.output);
9
9
  try {
10
10
  await serveMcp({
@@ -1,7 +1,7 @@
1
1
  import { d as parseCatalogBytes, o as catalogLayout, p as serializeCatalog } from "./library-D5CWvTQs.js";
2
2
  import { n as loadConfig } from "./load-gW-oJt1Q.js";
3
- import { t as VERSION } from "./version-BlyLGlOa.js";
4
- import { r as plural } from "./output-DsaHKHEt.js";
3
+ import { t as VERSION } from "./version-Byqi2guX.js";
4
+ import { r as plural } from "./output-DWE3SIUA.js";
5
5
  import { t as EXIT } from "./types-wSh9fCBY.js";
6
6
  import { dirname, resolve } from "node:path";
7
7
  import { readFile, writeFile } from "node:fs/promises";
@@ -1,6 +1,6 @@
1
1
  import { C as usableTranslation, S as entryKey } from "./library-D5CWvTQs.js";
2
2
  import { r as resolveDuplicates, t as duplicateDiagnostics } from "./duplicates-yuRljQ6h.js";
3
- import { i as rootRelative } from "./output-DsaHKHEt.js";
3
+ import { i as rootRelative } from "./output-DWE3SIUA.js";
4
4
  import { createRequire } from "node:module";
5
5
  //#region \0rolldown/runtime.js
6
6
  var __create = Object.create;
@@ -2,13 +2,13 @@ import { o as isDiagnosticError } from "./types-D3QGM8XO.js";
2
2
  import { o as isValidManualId, r as validateTranslation } from "./validate-BxpupdAf.js";
3
3
  import { n as printICU } from "./codec-DuvU2VQy.js";
4
4
  import { S as entryKey, m as updateCatalogFile, p as serializeCatalog, s as catalogPath, w as sourceMatches } from "./library-D5CWvTQs.js";
5
- import { i as listProjectFiles, r as isIncluded } from "./project-pXipT8iG.js";
6
- import { t as VERSION } from "./version-BlyLGlOa.js";
5
+ import { i as listProjectFiles, r as isIncluded } from "./project-Bw9UPIdx.js";
6
+ import { t as VERSION } from "./version-Byqi2guX.js";
7
7
  import { l as langFromId, u as parseModule } from "./worker-84U6uYB3.js";
8
- import { t as syncCatalog } from "./sync-CcVzger_.js";
9
- import { i as rootRelative, r as plural } from "./output-DsaHKHEt.js";
8
+ import { t as syncCatalog } from "./sync-B9V2KFwb.js";
9
+ import { i as rootRelative, r as plural } from "./output-DWE3SIUA.js";
10
10
  import { t as EXIT } from "./types-wSh9fCBY.js";
11
- import { a as loadCatalogs, i as hasErrors, n as compareText, o as loadProject, t as CliExit } from "./project-Dwx7iPm6.js";
11
+ import { a as loadCatalogs, i as hasErrors, n as compareText, o as loadProject, t as CliExit } from "./project-C4GpaN-n.js";
12
12
  import { basename, dirname, extname, join, resolve } from "node:path";
13
13
  import { randomBytes } from "node:crypto";
14
14
  import { readFile, rename, rm, writeFile } from "node:fs/promises";
@@ -1037,7 +1037,7 @@ function positionOf(text, offset) {
1037
1037
  }
1038
1038
  async function migrate(ctx, flags) {
1039
1039
  if (flags.from !== "saas-i18n") {
1040
- const { migrateLibrary } = await import("./engine-B7p40M__.js");
1040
+ const { migrateLibrary } = await import("./engine-C2ENBRJe.js");
1041
1041
  return migrateLibrary(ctx, flags);
1042
1042
  }
1043
1043
  const project = await loadProject(ctx);
@@ -0,0 +1 @@
1
+ export { c as migrate } from "./migrate-IpLDMXmq.js";
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "./version-BlyLGlOa.js";
1
+ import { t as VERSION } from "./version-Byqi2guX.js";
2
2
  import { dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
3
3
  import { existsSync } from "node:fs";
4
4
  //#region src/cli/output.ts
@@ -3,7 +3,7 @@ import { a as isManualId, f as parseICU, r as validateTranslation, t as pluralCa
3
3
  import { n as printICU, t as createCodec } from "./codec-DuvU2VQy.js";
4
4
  import { C as usableTranslation, S as entryKey, b as emptyCatalog, m as updateCatalogFile, o as catalogLayout, s as catalogPath, w as sourceMatches, y as createEntry } from "./library-D5CWvTQs.js";
5
5
  import { t as excludeKind } from "./exclude-Du-Zd_qI.js";
6
- import { t as VERSION } from "./version-BlyLGlOa.js";
6
+ import { t as VERSION } from "./version-Byqi2guX.js";
7
7
  import { r as resolveDuplicates } from "./duplicates-yuRljQ6h.js";
8
8
  import { a as answerItems, c as exchange, d as readKey, f as requestText, i as MAX_DELAY_MS, l as field, m as sleep, o as count$1, p as retryAfterDelay, r as openaiPreset, s as detail, u as providerError } from "./openai-CTaMDcl-.js";
9
9
  import { t as adaptiveConcurrency } from "./concurrency-C9UUWuDC.js";
@@ -1 +1 @@
1
- export { t as MAX_RETRIES, n as catalogPersister, r as createProvider, i as estimateUsage, a as firstRequests, o as planTranslations, s as replayProvider, c as runTranslations } from "./pipeline-C7g11THL.js";
1
+ export { t as MAX_RETRIES, n as catalogPersister, r as createProvider, i as estimateUsage, a as firstRequests, o as planTranslations, s as replayProvider, c as runTranslations } from "./pipeline-C9Dbotkh.js";
@@ -1,5 +1,5 @@
1
1
  import { D as dependencyRef, E as dependencyOf, O as listDependencyFiles, r as libraryIds } from "./library-D5CWvTQs.js";
2
- import { n as cacheVersion } from "./version-BlyLGlOa.js";
2
+ import { n as cacheVersion } from "./version-Byqi2guX.js";
3
3
  import { i as scanSource, n as WORKER_MARKER, r as scanConfig, t as ABORT_CODES } from "./worker-84U6uYB3.js";
4
4
  import { dirname, join, relative, resolve, sep } from "node:path";
5
5
  import { hash, randomBytes } from "node:crypto";
@@ -2,11 +2,11 @@ import { o as isDiagnosticError } from "./types-D3QGM8XO.js";
2
2
  import { a as isManualId } from "./validate-BxpupdAf.js";
3
3
  import { t as createCodec } from "./codec-DuvU2VQy.js";
4
4
  import { C as usableTranslation, S as entryKey, i as libraryTranslation, l as loadCatalogSet, o as catalogLayout, s as catalogPath } from "./library-D5CWvTQs.js";
5
- import { n as scanProject } from "./project-pXipT8iG.js";
5
+ import { n as scanProject } from "./project-Bw9UPIdx.js";
6
6
  import { n as loadConfig } from "./load-gW-oJt1Q.js";
7
- import { i as genFileUpToDate, n as syncCatalogs, r as GEN_FILE } from "./sync-CcVzger_.js";
7
+ import { i as genFileUpToDate, n as syncCatalogs, r as GEN_FILE } from "./sync-B9V2KFwb.js";
8
8
  import { r as resolveDuplicates, t as duplicateDiagnostics } from "./duplicates-yuRljQ6h.js";
9
- import { i as rootRelative, r as plural } from "./output-DsaHKHEt.js";
9
+ import { i as rootRelative, r as plural } from "./output-DWE3SIUA.js";
10
10
  import { t as EXIT } from "./types-wSh9fCBY.js";
11
11
  import { dirname, join } from "node:path";
12
12
  import { readFile } from "node:fs/promises";
@@ -64,7 +64,7 @@ async function loadProject(ctx) {
64
64
  * compiler, empty root) ends the command.
65
65
  */
66
66
  async function scan(project, options = {}) {
67
- const result = options.vite === true ? await (await import("./vite-scan-B_YW4X_a.js")).scanWithVite(project.config) : await scanProject(project.config, project.codec, { cache: true });
67
+ const result = options.vite === true ? await (await import("./vite-scan-CT_vsp4g.js")).scanWithVite(project.config) : await scanProject(project.config, project.codec, { cache: true });
68
68
  if (result.aborted) throw new CliExit(EXIT.failure, result.diagnostics.filter(isAbortCause));
69
69
  return result;
70
70
  }
@@ -1,8 +1,8 @@
1
1
  import { o as isDiagnosticError } from "./types-D3QGM8XO.js";
2
2
  import { n as printICU } from "./codec-DuvU2VQy.js";
3
3
  import { l as langFromId, u as parseModule } from "./worker-84U6uYB3.js";
4
- import { a as attributeExpression, b as stringValue, g as jsxNameNodes, h as jsxName, i as analyzeModule, l as identifierName, o as attributeString, p as jsxAttributes, s as childEntries, t as ModuleBuilder, u as inJsxChildren, v as memberParts, x as unwrap, y as objectProperties } from "./rewrite-CiTRAICl.js";
5
- import { a as annotateHandlers, g as formatjsId, h as formatjsAstToIcu, l as reactTypes, t as MODULE_EXTENSIONS, v as parseJson } from "./i18next-CrUnKFfh.js";
4
+ import { a as attributeExpression, b as stringValue, g as jsxNameNodes, h as jsxName, i as analyzeModule, l as identifierName, o as attributeString, p as jsxAttributes, s as childEntries, t as ModuleBuilder, u as inJsxChildren, v as memberParts, x as unwrap, y as objectProperties } from "./rewrite-EsIw_lsq.js";
5
+ import { a as annotateHandlers, g as formatjsId, h as formatjsAstToIcu, l as reactTypes, t as MODULE_EXTENSIONS, v as parseJson } from "./i18next-BEJgv_S8.js";
6
6
  import { extname } from "node:path";
7
7
  import { readFileSync } from "node:fs";
8
8
  //#region src/cli/commands/migrate/react-intl.ts
@@ -1,11 +1,11 @@
1
1
  import { s as parseIdScheme } from "./validate-BxpupdAf.js";
2
2
  import { t as createCodec } from "./codec-DuvU2VQy.js";
3
3
  import { d as parseCatalogBytes, m as updateCatalogFile } from "./library-D5CWvTQs.js";
4
- import { t as VERSION } from "./version-BlyLGlOa.js";
4
+ import { t as VERSION } from "./version-Byqi2guX.js";
5
5
  import { c as sourceIndexOf } from "./units-CQ5Q99RC.js";
6
- import { i as rootRelative, r as plural } from "./output-DsaHKHEt.js";
6
+ import { i as rootRelative, r as plural } from "./output-DWE3SIUA.js";
7
7
  import { t as EXIT } from "./types-wSh9fCBY.js";
8
- import { a as loadCatalogs, o as loadProject, p as targetLocales, t as CliExit, u as readErrors } from "./project-Dwx7iPm6.js";
8
+ import { a as loadCatalogs, o as loadProject, p as targetLocales, t as CliExit, u as readErrors } from "./project-C4GpaN-n.js";
9
9
  import { n as applyRestore } from "./apply-Bre-lY9J.js";
10
10
  import { basename, dirname } from "node:path";
11
11
  import { promisify } from "node:util";
@@ -1,5 +1,5 @@
1
1
  import { s as decodeEntities } from "./worker-84U6uYB3.js";
2
- import { o as importLineEdit } from "./migrate-dPgq9uzy.js";
2
+ import { o as importLineEdit } from "./migrate-IpLDMXmq.js";
3
3
  //#region src/cli/commands/migrate/js.ts
4
4
  /**
5
5
  * ESTree analysis for the library codemods (`vi18n migrate --from i18next |
@@ -1,10 +1,10 @@
1
1
  import { n as DEFAULT_CONFIG, o as isDiagnosticError } from "./types-D3QGM8XO.js";
2
- import { t as VERSION } from "./version-BlyLGlOa.js";
2
+ import { t as VERSION } from "./version-Byqi2guX.js";
3
3
  import { t as PROVIDER_PRESETS } from "./openai-CTaMDcl-.js";
4
4
  import { t as EXCHANGE_FORMATS } from "./units-CQ5Q99RC.js";
5
- import { n as createOutput } from "./output-DsaHKHEt.js";
5
+ import { n as createOutput } from "./output-DWE3SIUA.js";
6
6
  import { t as EXIT } from "./types-wSh9fCBY.js";
7
- import { t as CliExit } from "./project-Dwx7iPm6.js";
7
+ import { t as CliExit } from "./project-C4GpaN-n.js";
8
8
  import { resolve } from "node:path";
9
9
  import { parseArgs } from "node:util";
10
10
  //#region src/cli/args.ts
@@ -628,48 +628,48 @@ async function run(argv, io) {
628
628
  let result;
629
629
  switch (parsed.command) {
630
630
  case "init":
631
- result = await (await import("./init-BecCTvKi.js")).init(ctx, parsed.flags);
631
+ result = await (await import("./init-C2ScuW6a.js")).init(ctx, parsed.flags);
632
632
  break;
633
633
  case "extract":
634
- result = await (await import("./extract-Dujlsgnk.js")).extract(ctx, parsed.flags);
634
+ result = await (await import("./extract-C3S8btx0.js")).extract(ctx, parsed.flags);
635
635
  break;
636
636
  case "check":
637
- result = await (await import("./check-D34P-S--.js")).check(ctx, parsed.flags);
637
+ result = await (await import("./check-HsmmpJZg.js")).check(ctx, parsed.flags);
638
638
  break;
639
639
  case "status":
640
- result = await (await import("./status-DZArW5aE.js")).status(ctx, parsed.flags);
640
+ result = await (await import("./status-zr4jY59Y.js")).status(ctx, parsed.flags);
641
641
  break;
642
642
  case "compile":
643
- result = await (await import("./compile-B5Mz6WJm.js")).compile(ctx, parsed.flags);
643
+ result = await (await import("./compile-BaDh0cHG.js")).compile(ctx, parsed.flags);
644
644
  break;
645
645
  case "translate":
646
- result = await (await import("./translate-DZR3MkSA.js")).translate(ctx, parsed.flags);
646
+ result = await (await import("./translate-CQnJfLjO.js")).translate(ctx, parsed.flags);
647
647
  break;
648
648
  case "migrate":
649
- result = await (await import("./migrate-CntqvrW4.js")).migrate(ctx, parsed.flags);
649
+ result = await (await import("./migrate-rCQuOGsf.js")).migrate(ctx, parsed.flags);
650
650
  break;
651
651
  case "sitemap":
652
- result = await (await import("./sitemap-DV3o8QD7.js")).sitemap(ctx, parsed.flags);
652
+ result = await (await import("./sitemap-DJXzKoza.js")).sitemap(ctx, parsed.flags);
653
653
  break;
654
654
  case "export":
655
- result = await (await import("./export-DGsMbcTZ.js")).exportCatalogs(ctx, parsed.flags);
655
+ result = await (await import("./export-C9Sy6UWv.js")).exportCatalogs(ctx, parsed.flags);
656
656
  break;
657
657
  case "import":
658
- result = await (await import("./import-Cwdhcywt.js")).importCatalogs(ctx, parsed.flags);
658
+ result = await (await import("./import-nANvQutw.js")).importCatalogs(ctx, parsed.flags);
659
659
  break;
660
660
  case "restore":
661
- result = await (await import("./restore-Btq66Tid.js")).restore(ctx, parsed.flags);
661
+ result = await (await import("./restore-CiYv-jxS.js")).restore(ctx, parsed.flags);
662
662
  break;
663
663
  case "which":
664
- result = await (await import("./which-C6PFI1Dm.js")).which(ctx, parsed.flags);
664
+ result = await (await import("./which-BOemZ5Q8.js")).which(ctx, parsed.flags);
665
665
  break;
666
666
  case "merge-driver":
667
- result = await (await import("./merge-driver-CpiiSVIc.js")).mergeDriver(ctx, parsed.flags);
667
+ result = await (await import("./merge-driver-BTX87aVm.js")).mergeDriver(ctx, parsed.flags);
668
668
  break;
669
669
  case "lsp":
670
- result = await (await import("./lsp-Cq1Nuu-Q.js")).lsp(ctx, parsed.flags);
670
+ result = await (await import("./lsp-RMMMc88P.js")).lsp(ctx, parsed.flags);
671
671
  break;
672
- case "mcp": result = await (await import("./mcp-Cf0T7qPW.js")).mcp(ctx, parsed.flags);
672
+ case "mcp": result = await (await import("./mcp-CHVwBoRP.js")).mcp(ctx, parsed.flags);
673
673
  }
674
674
  exitCode = result.exitCode;
675
675
  data = result.data;
@@ -1,13 +1,13 @@
1
- import { a as __commonJSMin, i as messageView, n as indexCatalogs, u as __toESM } from "./messages-Cxa-5tR0.js";
1
+ import { a as __commonJSMin, i as messageView, n as indexCatalogs, u as __toESM } from "./messages-BfjIExyB.js";
2
2
  import { o as isDiagnosticError } from "./types-D3QGM8XO.js";
3
3
  import { r as validateTranslation } from "./validate-BxpupdAf.js";
4
4
  import { l as loadCatalogSet } from "./library-D5CWvTQs.js";
5
- import { t as VERSION } from "./version-BlyLGlOa.js";
6
- import { t as run } from "./run-DYD_VXKy.js";
7
- import { n as createOutput } from "./output-DsaHKHEt.js";
8
- import { a as loadCatalogs, d as referencedMessages, f as scan, o as loadProject, t as CliExit } from "./project-Dwx7iPm6.js";
5
+ import { t as VERSION } from "./version-Byqi2guX.js";
6
+ import { t as run } from "./run-BEcnBbu-.js";
7
+ import { n as createOutput } from "./output-DWE3SIUA.js";
8
+ import { a as loadCatalogs, d as referencedMessages, f as scan, o as loadProject, t as CliExit } from "./project-C4GpaN-n.js";
9
9
  import { A as PingRequestSchema, B as isJSONRPCNotification, C as ListResourcesRequestSchema, D as ListToolsRequestSchema, E as ListTasksResultSchema, F as SetLevelRequestSchema, H as isJSONRPCResultResponse, I as TaskStatusNotificationSchema, L as assertCompleteRequestPrompt, M as RELATED_TASK_META_KEY, N as ReadResourceRequestSchema, O as LoggingLevelSchema, P as SUPPORTED_PROTOCOL_VERSIONS, R as assertCompleteRequestResourceTemplate, S as ListResourceTemplatesRequestSchema, T as ListTasksRequestSchema, U as isTaskAugmentedRequestParams, V as isJSONRPCRequest, _ as InitializeRequestSchema, a as CancelledNotificationSchema, b as LATEST_PROTOCOL_VERSION, c as CreateMessageResultWithToolsSchema, d as EmptyResultSchema, f as ErrorCode, g as GetTaskResultSchema, h as GetTaskRequestSchema, i as CancelTaskResultSchema, j as ProgressNotificationSchema, k as McpError, l as CreateTaskResultSchema, m as GetTaskPayloadRequestSchema, n as CallToolResultSchema, o as CompleteRequestSchema, p as GetPromptRequestSchema, r as CancelTaskRequestSchema, s as CreateMessageResultSchema, t as CallToolRequestSchema, u as ElicitResultSchema, v as InitializedNotificationSchema, w as ListRootsResultSchema, x as ListPromptsRequestSchema, z as isJSONRPCErrorResponse } from "./types-DtvQ7UdD.js";
10
- import { n as catalogPersister } from "./pipeline-C7g11THL.js";
10
+ import { n as catalogPersister } from "./pipeline-C9Dbotkh.js";
11
11
  import { ZodOptional, z } from "zod";
12
12
  import * as z3rt from "zod/v3";
13
13
  import { ZodFirstPartyTypeKind } from "zod/v3";
@@ -8406,7 +8406,7 @@ var require_ajv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8406
8406
  });
8407
8407
  }));
8408
8408
  //#endregion
8409
- //#region ../../node_modules/.pnpm/ajv-formats@3.0.1/node_modules/ajv-formats/dist/formats.js
8409
+ //#region ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js
8410
8410
  var require_formats = /* @__PURE__ */ __commonJSMin(((exports) => {
8411
8411
  Object.defineProperty(exports, "__esModule", { value: true });
8412
8412
  exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
@@ -8594,7 +8594,7 @@ var require_formats = /* @__PURE__ */ __commonJSMin(((exports) => {
8594
8594
  }
8595
8595
  }));
8596
8596
  //#endregion
8597
- //#region ../../node_modules/.pnpm/ajv-formats@3.0.1/node_modules/ajv-formats/dist/limit.js
8597
+ //#region ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/limit.js
8598
8598
  var require_limit = /* @__PURE__ */ __commonJSMin(((exports) => {
8599
8599
  Object.defineProperty(exports, "__esModule", { value: true });
8600
8600
  exports.formatLimitDefinition = void 0;
@@ -8672,7 +8672,7 @@ var require_limit = /* @__PURE__ */ __commonJSMin(((exports) => {
8672
8672
  exports.default = formatLimitPlugin;
8673
8673
  }));
8674
8674
  //#endregion
8675
- //#region ../../node_modules/.pnpm/ajv-formats@3.0.1/node_modules/ajv-formats/dist/index.js
8675
+ //#region ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/index.js
8676
8676
  var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8677
8677
  Object.defineProperty(exports, "__esModule", { value: true });
8678
8678
  const formats_1 = require_formats();
@@ -1,13 +1,13 @@
1
- import { a as __commonJSMin, c as __require, i as messageView, l as __toCommonJS, o as __esmMin, r as localeView, s as __exportAll, t as indexCatalog } from "./messages-Cxa-5tR0.js";
1
+ import { a as __commonJSMin, c as __require, i as messageView, l as __toCommonJS, o as __esmMin, r as localeView, s as __exportAll, t as indexCatalog } from "./messages-BfjIExyB.js";
2
2
  import { o as isDiagnosticError } from "./types-D3QGM8XO.js";
3
3
  import { r as validateTranslation } from "./validate-BxpupdAf.js";
4
4
  import { t as createCodec } from "./codec-DuvU2VQy.js";
5
5
  import { l as loadCatalogSet, o as catalogLayout, s as catalogPath, u as parseCatalog } from "./library-D5CWvTQs.js";
6
- import { a as toPosix, r as isIncluded } from "./project-pXipT8iG.js";
6
+ import { a as toPosix, r as isIncluded } from "./project-Bw9UPIdx.js";
7
7
  import { n as loadConfig, t as findConfigFile } from "./load-gW-oJt1Q.js";
8
- import { t as VERSION } from "./version-BlyLGlOa.js";
8
+ import { t as VERSION } from "./version-Byqi2guX.js";
9
9
  import { i as scanSource, r as scanConfig } from "./worker-84U6uYB3.js";
10
- import { n as syntaxOfEntry } from "./check-DyrAbv73.js";
10
+ import { n as syntaxOfEntry } from "./check-BIKEuu6B.js";
11
11
  import { dirname, relative } from "node:path";
12
12
  import { fileURLToPath, pathToFileURL } from "node:url";
13
13
  //#region ../../node_modules/.pnpm/vscode-languageserver-textdocument@1.0.15/node_modules/vscode-languageserver-textdocument/lib/esm/main.js
@@ -1,8 +1,8 @@
1
1
  import { i as toRuntimeConfig, n as normalizeBase } from "./runtime-DTMmliT1.js";
2
2
  import { n as localeOrigin, r as localizePath, t as atHome } from "./url-CRfCOhUI.js";
3
- import { r as plural } from "./output-DsaHKHEt.js";
3
+ import { r as plural } from "./output-DWE3SIUA.js";
4
4
  import { t as EXIT } from "./types-wSh9fCBY.js";
5
- import { o as loadProject, t as CliExit } from "./project-Dwx7iPm6.js";
5
+ import { o as loadProject, t as CliExit } from "./project-C4GpaN-n.js";
6
6
  import { dirname, resolve } from "node:path";
7
7
  import { randomBytes } from "node:crypto";
8
8
  import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
@@ -1,7 +1,7 @@
1
1
  import { s as catalogPath } from "./library-D5CWvTQs.js";
2
- import { a as table, i as rootRelative } from "./output-DsaHKHEt.js";
2
+ import { a as table, i as rootRelative } from "./output-DWE3SIUA.js";
3
3
  import { t as EXIT } from "./types-wSh9fCBY.js";
4
- import { a as loadCatalogs, c as ownStatus, d as referencedMessages, f as scan, i as hasErrors, l as percent, o as loadProject, p as targetLocales } from "./project-Dwx7iPm6.js";
4
+ import { a as loadCatalogs, c as ownStatus, d as referencedMessages, f as scan, i as hasErrors, l as percent, o as loadProject, p as targetLocales } from "./project-C4GpaN-n.js";
5
5
  import { dirname, join, relative } from "node:path";
6
6
  import { readFile, stat } from "node:fs/promises";
7
7
  //#region src/cli/commands/status.ts
@@ -1,7 +1,7 @@
1
1
  import { o as isDiagnosticError, t as CONFIG_FILE } from "./types-D3QGM8XO.js";
2
2
  import { s as parseIdScheme } from "./validate-BxpupdAf.js";
3
3
  import { S as entryKey, a as ownedMessages, b as emptyCatalog, f as sameCatalogText, n as libraryCoverage, o as catalogLayout, p as serializeCatalog, r as libraryIds, s as catalogPath, y as createEntry } from "./library-D5CWvTQs.js";
4
- import { t as VERSION } from "./version-BlyLGlOa.js";
4
+ import { t as VERSION } from "./version-Byqi2guX.js";
5
5
  import { n as mergeDuplicates } from "./duplicates-yuRljQ6h.js";
6
6
  import { dirname, isAbsolute, join, relative, sep } from "node:path";
7
7
  import { randomBytes } from "node:crypto";
@@ -1,10 +1,10 @@
1
1
  import { o as isDiagnosticError } from "./types-D3QGM8XO.js";
2
2
  import { a as ownedMessages, n as libraryCoverage, o as catalogLayout } from "./library-D5CWvTQs.js";
3
- import { a as table, r as plural } from "./output-DsaHKHEt.js";
3
+ import { a as table, r as plural } from "./output-DWE3SIUA.js";
4
4
  import { t as EXIT } from "./types-wSh9fCBY.js";
5
- import { a as loadCatalogs, f as scan, i as hasErrors, o as loadProject, p as targetLocales, t as CliExit, u as readErrors } from "./project-Dwx7iPm6.js";
5
+ import { a as loadCatalogs, f as scan, i as hasErrors, o as loadProject, p as targetLocales, t as CliExit, u as readErrors } from "./project-C4GpaN-n.js";
6
6
  import { t as adaptiveConcurrency } from "./concurrency-C9UUWuDC.js";
7
- import { a as firstRequests, c as runTranslations, i as estimateUsage, n as catalogPersister, o as planTranslations, r as createProvider, s as replayProvider } from "./pipeline-C7g11THL.js";
7
+ import { a as firstRequests, c as runTranslations, i as estimateUsage, n as catalogPersister, o as planTranslations, r as createProvider, s as replayProvider } from "./pipeline-C9Dbotkh.js";
8
8
  //#region src/cli/commands/translate.ts
9
9
  /**
10
10
  * `vi18n translate [--locale l]… [--provider name] [--model id] [--tier t]
@@ -4,7 +4,7 @@ import "node:fs";
4
4
  import "node:url";
5
5
  //#endregion
6
6
  //#region src/core/version.ts
7
- const VERSION = "0.1.0";
7
+ const VERSION = "0.1.1";
8
8
  let fingerprint;
9
9
  let cacheVersionMemo;
10
10
  /**
@@ -16,7 +16,7 @@ let cacheVersionMemo;
16
16
  */
17
17
  function codeFingerprint() {
18
18
  if (fingerprint !== void 0) return fingerprint;
19
- fingerprint = "VKVhJedZs0rKSG_B";
19
+ fingerprint = "0UPRQnKMBktq7h16";
20
20
  return fingerprint;
21
21
  }
22
22
  /** `VERSION` and `codeFingerprint()`: the version every cache key and `configHash` carries. */
@@ -1,4 +1,4 @@
1
- import { a as toPosix, i as listProjectFiles, o as aggregateOccurrences, t as refMapper } from "./project-pXipT8iG.js";
1
+ import { a as toPosix, i as listProjectFiles, o as aggregateOccurrences, t as refMapper } from "./project-Bw9UPIdx.js";
2
2
  import { t as ABORT_CODES } from "./worker-84U6uYB3.js";
3
3
  import { n as setCollector } from "./collect-Cx4_SKOe.js";
4
4
  import { createRequire } from "node:module";
package/dist/vite.js CHANGED
@@ -2,12 +2,12 @@ import { a as diagnosticError, o as isDiagnosticError, r as DEFAULT_IMPORT_SOURC
2
2
  import { r as validateTranslation } from "./validate-BxpupdAf.js";
3
3
  import { t as createCodec } from "./codec-DuvU2VQy.js";
4
4
  import { C as usableTranslation, D as dependencyRef, S as entryKey, T as dependenciesOf, c as contentHash, l as loadCatalogSet, m as updateCatalogFile, n as libraryCoverage, o as catalogLayout, r as libraryIds, s as catalogPath, t as MESSAGES_FILE, x as entryCanonical } from "./library-D5CWvTQs.js";
5
- import { a as toPosix, n as scanProject, o as aggregateOccurrences, r as isIncluded, s as configHash } from "./project-pXipT8iG.js";
5
+ import { a as toPosix, n as scanProject, o as aggregateOccurrences, r as isIncluded, s as configHash } from "./project-Bw9UPIdx.js";
6
6
  import { n as loadConfig } from "./load-gW-oJt1Q.js";
7
- import { n as cacheVersion, t as VERSION } from "./version-BlyLGlOa.js";
7
+ import { n as cacheVersion, t as VERSION } from "./version-Byqi2guX.js";
8
8
  import { d as listImports, l as lineColumn, r as scanModule, t as sourceNeedles, u as locateLiteral } from "./sources-D19czDSA.js";
9
9
  import { a as expandMacros, c as armRawParsing, l as langFromId, o as macroNames, u as parseModule } from "./worker-84U6uYB3.js";
10
- import { a as writeGenFile, t as syncCatalog } from "./sync-CcVzger_.js";
10
+ import { a as writeGenFile, t as syncCatalog } from "./sync-B9V2KFwb.js";
11
11
  import { i as toRuntimeConfig, n as normalizeBase, r as pseudoActive, t as hasRoutes } from "./runtime-DTMmliT1.js";
12
12
  import { a as assetCatalogsModule, c as hash8, i as SERVER_FILES, n as compileMessage, o as serverCatalogVersion, r as STATE_KEY, s as serverCatalogsDir, t as compileLocales } from "./locales-DX4MOBFE.js";
13
13
  import { a as pathTable, r as localizePath } from "./url-CRfCOhUI.js";
@@ -3241,7 +3241,7 @@ function configPlugin(store, options) {
3241
3241
  /** Quiet period before a run: longer than the writer's, so a burst of edits is one run. */
3242
3242
  const DEV_TRANSLATE_DELAY_MS = 1500;
3243
3243
  const loadAi = async () => ({
3244
- pipeline: await import("./pipeline-wxS0SApG.js"),
3244
+ pipeline: await import("./pipeline-DbX6rlo5.js"),
3245
3245
  limits: await import("./concurrency-DONL7t4V.js")
3246
3246
  });
3247
3247
  var DevTranslator = class {
@@ -3582,7 +3582,7 @@ function dockPage() {
3582
3582
  * The persister lives with the AI code and is imported on the first save:
3583
3583
  * a dev server whose page never saves loads none of it.
3584
3584
  */
3585
- const loadPipeline = () => import("./pipeline-wxS0SApG.js");
3585
+ const loadPipeline = () => import("./pipeline-DbX6rlo5.js");
3586
3586
  /** Each locale's catalog entries by key, after the duplicate pick, for one answer. */
3587
3587
  function entriesOf(store, set) {
3588
3588
  const layout = catalogLayout(store.config);
@@ -1,9 +1,9 @@
1
1
  import { o as isDiagnosticError } from "./types-D3QGM8XO.js";
2
2
  import { n as printICU } from "./codec-DuvU2VQy.js";
3
3
  import { u as parseModule } from "./worker-84U6uYB3.js";
4
- import { f as readString, g as skipSpace, h as skipBalanced, o as importLineEdit, p as readTemplate, r as argumentEnd, y as vueRegions } from "./migrate-dPgq9uzy.js";
5
- import { i as analyzeModule, l as identifierName, s as childEntries, t as ModuleBuilder, v as memberParts, x as unwrap, y as objectProperties } from "./rewrite-CiTRAICl.js";
6
- import { b as pushLiteral, m as flattenTree, s as entry, t as MODULE_EXTENSIONS, v as parseJson, x as yamlKeyLines, y as parseYaml } from "./i18next-CrUnKFfh.js";
4
+ import { f as readString, g as skipSpace, h as skipBalanced, o as importLineEdit, p as readTemplate, r as argumentEnd, y as vueRegions } from "./migrate-IpLDMXmq.js";
5
+ import { i as analyzeModule, l as identifierName, s as childEntries, t as ModuleBuilder, v as memberParts, x as unwrap, y as objectProperties } from "./rewrite-EsIw_lsq.js";
6
+ import { b as pushLiteral, m as flattenTree, s as entry, t as MODULE_EXTENSIONS, v as parseJson, x as yamlKeyLines, y as parseYaml } from "./i18next-BEJgv_S8.js";
7
7
  import { extname } from "node:path";
8
8
  import { readFileSync } from "node:fs";
9
9
  //#region src/cli/commands/migrate/vue-i18n.ts
@@ -1,9 +1,9 @@
1
1
  import { S as entryKey } from "./library-D5CWvTQs.js";
2
2
  import { r as resolveDuplicates } from "./duplicates-yuRljQ6h.js";
3
3
  import { c as sourceIndexOf, i as entrySource, r as canonicalOrNull } from "./units-CQ5Q99RC.js";
4
- import { i as rootRelative, r as plural } from "./output-DsaHKHEt.js";
4
+ import { i as rootRelative, r as plural } from "./output-DWE3SIUA.js";
5
5
  import { t as EXIT } from "./types-wSh9fCBY.js";
6
- import { a as loadCatalogs, f as scan, o as loadProject, t as CliExit } from "./project-Dwx7iPm6.js";
6
+ import { a as loadCatalogs, f as scan, o as loadProject, t as CliExit } from "./project-C4GpaN-n.js";
7
7
  //#region src/cli/commands/which.ts
8
8
  /**
9
9
  * `vi18n which <id|prefix|text>` (PLAN §4.3, §5.19, INTERNALS §2.14): from
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@menapo/vi18n",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "i18n toolkit for Vite: source-as-id messages, per-route translation bundles, SSR and in-place locale switching in every framework",
5
5
  "keywords": [
6
6
  "gettext",
@@ -11,14 +11,14 @@
11
11
  "vite",
12
12
  "vite-plugin"
13
13
  ],
14
- "homepage": "https://github.com/menapo/vite-plugins/blob/main/packages/vi18n/docs/guide/README.md",
14
+ "homepage": "https://github.com/menapo/kit/blob/main/packages/vi18n/docs/guide/README.md",
15
15
  "bugs": {
16
- "url": "https://github.com/menapo/vite-plugins/issues"
16
+ "url": "https://github.com/menapo/kit/issues"
17
17
  },
18
18
  "license": "MIT",
19
19
  "repository": {
20
20
  "type": "git",
21
- "url": "git+https://github.com/menapo/vite-plugins.git",
21
+ "url": "git+https://github.com/menapo/kit.git",
22
22
  "directory": "packages/vi18n"
23
23
  },
24
24
  "bin": {
@@ -1 +0,0 @@
1
- export { t as check } from "./check-DyrAbv73.js";
@@ -1 +0,0 @@
1
- export { n as createI18nextAdapter } from "./i18next-CrUnKFfh.js";
@@ -1 +0,0 @@
1
- export { c as migrate } from "./migrate-dPgq9uzy.js";