@verbaly/compiler 0.83.0 → 0.84.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
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
<p align="center">
|
|
8
8
|
<a href="https://www.npmjs.com/package/@verbaly/compiler"><img src="https://img.shields.io/npm/v/@verbaly/compiler?logo=npm&color=cb3837" alt="npm version" /></a>
|
|
9
9
|
<img src="https://img.shields.io/node/v/@verbaly/compiler?logo=nodedotjs&logoColor=white&color=5fa04e" alt="supported Node.js versions" />
|
|
10
|
-
<a href="https://github.com/AronSoto/verbaly/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/AronSoto/verbaly/ci.yml?logo=github&label=CI" alt="CI" /></a>
|
|
11
10
|
<a href="https://scorecard.dev/viewer/?uri=github.com/AronSoto/verbaly"><img src="https://api.scorecard.dev/projects/github.com/AronSoto/verbaly/badge" alt="OpenSSF Scorecard" /></a>
|
|
12
11
|
<a href="https://www.npmjs.com/package/@verbaly/compiler#provenance"><img src="https://img.shields.io/badge/provenance-SLSA%20v1-3fb950?logo=npm" alt="published with npm provenance" /></a>
|
|
13
12
|
<a href="https://github.com/AronSoto/verbaly/blob/develop/LICENSE"><img src="https://img.shields.io/npm/l/@verbaly/compiler?color=blue" alt="MIT" /></a>
|
|
@@ -80,7 +79,7 @@ Two more warnings name things that used to happen in silence, each with the file
|
|
|
80
79
|
|
|
81
80
|
```text
|
|
82
81
|
[verbaly] ✗ the build goes on with 1 broken translation, each rendering differently from its source:
|
|
83
|
-
[es] cart.total: {amount}
|
|
82
|
+
[es] cart.total: the translation lost {amount}, so the value never reaches the text
|
|
84
83
|
[verbaly] ⚠ the build goes on without 1 translation, shown in en instead:
|
|
85
84
|
[es] home.lead: "Pick a language"
|
|
86
85
|
[verbaly] ⚠ the build goes on with 1 key no catalog has, so the key itself shows:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { kt as counted, xt as isModuleNotFound } from "./run-D5AlqnUA.js";
|
|
2
2
|
// src/exchange/providers/claude.ts
|
|
3
3
|
const DEFAULT_MODEL = "claude-sonnet-5-5";
|
|
4
4
|
const FALLBACK_MODELS = /* @__PURE__ */ new Set([
|
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -213,6 +213,7 @@ interface ResolvedConfig {
|
|
|
213
213
|
locales: string[];
|
|
214
214
|
localesDeclared: boolean;
|
|
215
215
|
routing: Routing;
|
|
216
|
+
routingDeclared: boolean;
|
|
216
217
|
icu: boolean | undefined;
|
|
217
218
|
relative: boolean | undefined;
|
|
218
219
|
include: string[];
|
|
@@ -581,6 +582,10 @@ interface RenderSiteResult {
|
|
|
581
582
|
locales: string[];
|
|
582
583
|
missing: Record<string, string[]>;
|
|
583
584
|
untranslatedHead: string[];
|
|
585
|
+
sourceFolder?: {
|
|
586
|
+
folder: string;
|
|
587
|
+
pages: number;
|
|
588
|
+
};
|
|
584
589
|
}
|
|
585
590
|
export declare function renderSite(cfg: ResolvedConfig, options?: RenderSiteOptions): Promise<RenderSiteResult>;
|
|
586
591
|
export declare function formatRenderWarnings(result: RenderSiteResult, sourceLocale: string): string[];
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as collectOrigins, A as collisionEntries, At as
|
|
1
|
+
import { $ as collectOrigins, A as collisionEntries, At as singleQuoted, B as loadState, C as translateProject, Ct as pluginOnlyOptions, D as translateCatalogs, Dt as warnParseError, E as resolveProvider, Et as warnOnce, F as outdatedTranslations, G as generateLocaleModule, H as readState, I as recordTranslations, J as validateMessage, K as generateRuntimeModule, L as updateState, M as formatCollision, N as formatFinding, O as writeDrafts, Ot as cliReachable, P as effectiveDrafts, Q as syncCatalogs, R as STATE_FILE, S as warningCount, St as loadConfig, T as mergeTranslations, Tt as targetLocales, U as saveState, V as markDrafts, W as generateDts, X as pruneCatalogs, Y as validatePair, Z as shippedCatalogs, _ as formatCheckResult, _t as parseCatalog, a as formatRenderWarnings, at as LOCALE_IMPORT, b as gatePasses, bt as SOURCE_FILE_RE, c as watchTree, ct as MessageRegistry, d as formatDoctorHealth, dt as formatBundleIssue, et as extractProject, f as formatStatusResult, ft as emptyCatalog, g as formatBuildReport, gt as own, h as checkNextSteps, ht as needsRelative, i as wrapProject, it as APP_ID, j as createDevReporter, jt as relativePath, k as syncProject, kt as counted, l as doctor, lt as auditBundle, m as reportOutsideInclude, mt as needsIcu, nt as analyzeFile, o as renderSite, ot as VIRTUAL_ID, p as status, pt as loadCatalogs, q as writeDts, r as formatWrapResult, rt as stableKey, s as init, st as isAppModule, t as formatCliError, tt as scannedAnalysis, u as formatDoctorEntry, ut as clientCatalogs, v as formatCheckWarnings, vt as readCatalog, w as formatTranslateFailures, wt as resolveConfig, x as relativeCheck, y as check, yt as writeCatalog, z as clearDrafts } from "./run-D5AlqnUA.js";
|
|
2
2
|
import picomatch from "picomatch";
|
|
3
3
|
import MagicString from "magic-string";
|
|
4
4
|
// src/scan/transform.ts
|
|
@@ -11,6 +11,13 @@ import { applyEdits, modify, parse as parse$2 } from "jsonc-parser";
|
|
|
11
11
|
import picomatch from "picomatch";
|
|
12
12
|
import MagicString from "magic-string";
|
|
13
13
|
import { parseArgs as parseArgs$1 } from "node:util";
|
|
14
|
+
// src/util/path.ts
|
|
15
|
+
function slashed(path) {
|
|
16
|
+
return path.replaceAll("\\", "/");
|
|
17
|
+
}
|
|
18
|
+
function relativePath(root, file) {
|
|
19
|
+
return slashed(relative(root, file));
|
|
20
|
+
}
|
|
14
21
|
// src/util/text.ts
|
|
15
22
|
function counted(count, noun, many = `${noun}s`) {
|
|
16
23
|
return `${count} ${count === 1 ? noun : many}`;
|
|
@@ -221,7 +228,7 @@ function warnParseError(file, message) {
|
|
|
221
228
|
warnOnce(`${file}: could not be parsed (${message}), its messages were not extracted`);
|
|
222
229
|
}
|
|
223
230
|
// src/config/config.ts
|
|
224
|
-
const SOURCE_EXTENSIONS = "{js,jsx,ts,tsx,mjs,mts,svelte,vue,astro}";
|
|
231
|
+
const SOURCE_EXTENSIONS = "{js,jsx,ts,tsx,mjs,mts,cjs,cts,svelte,vue,astro}";
|
|
225
232
|
const SOURCE_FILE_RE = /\.(?:[cm]?[jt]sx?|svelte|vue|astro)$/;
|
|
226
233
|
const PSEUDO_LOCALE = "en-XA";
|
|
227
234
|
function resolveConfig(config = {}) {
|
|
@@ -242,10 +249,11 @@ function resolveConfig(config = {}) {
|
|
|
242
249
|
sourceLocale,
|
|
243
250
|
localesDeclared,
|
|
244
251
|
routing: config.routing ?? (config.render ? "prefix-except-source" : "no-prefix"),
|
|
252
|
+
routingDeclared: config.routing !== void 0,
|
|
245
253
|
icu: config.icu,
|
|
246
254
|
relative: config.relative,
|
|
247
255
|
locales: [...locales],
|
|
248
|
-
include: config.include ?? [`{src,app}/**/*.{js,jsx,ts,tsx,mjs,mts,svelte,vue,astro}`],
|
|
256
|
+
include: config.include ?? [`{src,app}/**/*.{js,jsx,ts,tsx,mjs,mts,cjs,cts,svelte,vue,astro}`],
|
|
249
257
|
exclude: config.exclude ?? ["**/node_modules/**", "**/dist/**"],
|
|
250
258
|
dts: typeof config.dts === "string" ? resolve(root, config.dts) : config.dts === false ? false : defaultTypesPath(root, host),
|
|
251
259
|
translate: config.translate ?? {},
|
|
@@ -297,8 +305,17 @@ async function loadTsConfig(path) {
|
|
|
297
305
|
function isModuleNotFound(error, name) {
|
|
298
306
|
return error instanceof Error && error.code === "ERR_MODULE_NOT_FOUND" && error.message.includes(name);
|
|
299
307
|
}
|
|
308
|
+
function strangerLocales(cfg, said, named) {
|
|
309
|
+
const unknown = named.filter((locale) => !cfg.locales.includes(locale));
|
|
310
|
+
if (unknown.length === 0) return void 0;
|
|
311
|
+
const dir = relativePath(cfg.root, cfg.dir);
|
|
312
|
+
const start = cfg.localesDeclared ? `add ${unknown.join(", ")} to locales in your verbaly config` : `create ${unknown.map((locale) => `${dir}/${locale}.json`).join(", ")} holding {}`;
|
|
313
|
+
return `[verbaly] ${said} names ${unknown.map((locale) => `"${locale}"`).join(", ")}, and this project has ${cfg.locales.join(", ")}\n fix: check the spelling, or ${start} to start a new language`;
|
|
314
|
+
}
|
|
300
315
|
function targetLocales(cfg, override) {
|
|
301
|
-
|
|
316
|
+
const typo = override && strangerLocales(cfg, "locales", override);
|
|
317
|
+
if (typo) throw new Error(typo);
|
|
318
|
+
return (override ?? cfg.locales).filter((locale) => locale !== cfg.sourceLocale);
|
|
302
319
|
}
|
|
303
320
|
async function loadConfig(root, overrides = {}, from = {}) {
|
|
304
321
|
const fileConfig = await loadConfigFile(root);
|
|
@@ -396,6 +413,7 @@ function parseCatalog(content) {
|
|
|
396
413
|
}
|
|
397
414
|
function parseTree(content) {
|
|
398
415
|
const body = stripBom(content);
|
|
416
|
+
if (body.trim() === "") return {};
|
|
399
417
|
try {
|
|
400
418
|
return JSON.parse(body);
|
|
401
419
|
} catch {
|
|
@@ -495,7 +513,8 @@ function writeCatalog(cfg, locale, catalog) {
|
|
|
495
513
|
return serialized;
|
|
496
514
|
}
|
|
497
515
|
function shapeFor(cfg, locale, existing, previous) {
|
|
498
|
-
|
|
516
|
+
const blank = previous !== void 0 && Object.keys(previous).length === 0;
|
|
517
|
+
if (existing !== void 0 && !blank) return previous;
|
|
499
518
|
return locale === cfg.sourceLocale ? void 0 : readTree(cfg, cfg.sourceLocale);
|
|
500
519
|
}
|
|
501
520
|
const ICU_ARG = /(^|[^{])\{\s*[a-zA-Z0-9_]+\s*,\s*(?:plural|selectordinal|select|number|date|time)\b/;
|
|
@@ -1486,13 +1505,6 @@ function stringEnd(code, start) {
|
|
|
1486
1505
|
else i += 1;
|
|
1487
1506
|
return code.length;
|
|
1488
1507
|
}
|
|
1489
|
-
// src/util/path.ts
|
|
1490
|
-
function slashed(path) {
|
|
1491
|
-
return path.replaceAll("\\", "/");
|
|
1492
|
-
}
|
|
1493
|
-
function relativePath(root, file) {
|
|
1494
|
-
return slashed(relative(root, file));
|
|
1495
|
-
}
|
|
1496
1508
|
// src/scan/extract.ts
|
|
1497
1509
|
const kept = /* @__PURE__ */ new WeakMap();
|
|
1498
1510
|
async function readSources(files, each, platform = process.platform) {
|
|
@@ -1719,7 +1731,7 @@ function validateMessage(message, locale) {
|
|
|
1719
1731
|
const missing = reachableCategories(locale, shape.ordinal).filter((category) => category !== "other" && !shape.selectors.includes(category));
|
|
1720
1732
|
if (missing.length > 0) issues.push({
|
|
1721
1733
|
severity: "warning",
|
|
1722
|
-
message: `${locale}
|
|
1734
|
+
message: `${locale} needs ${counted(missing.length, "more plural form")} for {${name}}: ${list(missing)}`
|
|
1723
1735
|
});
|
|
1724
1736
|
}
|
|
1725
1737
|
return issues;
|
|
@@ -1730,22 +1742,22 @@ function validatePair(source, translated) {
|
|
|
1730
1742
|
const newParams = surplus(paramNames(translated), paramNames(source));
|
|
1731
1743
|
if (lostParams.length > 0) issues.push({
|
|
1732
1744
|
severity: "error",
|
|
1733
|
-
message:
|
|
1745
|
+
message: `the translation lost ${list(lostParams.map((name) => `{${name}}`))}, so the value never reaches the text`
|
|
1734
1746
|
});
|
|
1735
1747
|
if (newParams.length > 0) issues.push({
|
|
1736
1748
|
severity: "error",
|
|
1737
|
-
message:
|
|
1749
|
+
message: `the translation adds ${list(newParams.map((name) => `{${name}}`))}, not in the source message, so the braces render as literal text`
|
|
1738
1750
|
});
|
|
1739
1751
|
const markup = /* @__PURE__ */ new Set([...markupNames(source), ...markupNames(translated)]);
|
|
1740
1752
|
const lostTags = tagReport(surplus(tagTokens(source, markup), tagTokens(translated, markup)));
|
|
1741
1753
|
const newTags = tagReport(surplus(tagTokens(translated, markup), tagTokens(source, markup)));
|
|
1742
1754
|
if (lostTags.length > 0) issues.push({
|
|
1743
1755
|
severity: "error",
|
|
1744
|
-
message:
|
|
1756
|
+
message: `the translation lost ${list(lostTags)}`
|
|
1745
1757
|
});
|
|
1746
1758
|
if (newTags.length > 0) issues.push({
|
|
1747
1759
|
severity: "error",
|
|
1748
|
-
message:
|
|
1760
|
+
message: `the translation adds ${list(newTags)}, not in the source message`
|
|
1749
1761
|
});
|
|
1750
1762
|
const target = shapes(translated);
|
|
1751
1763
|
for (const [name, shape] of shapes(source)) {
|
|
@@ -1764,7 +1776,7 @@ function validatePair(source, translated) {
|
|
|
1764
1776
|
const lostExact = shape.selectors.filter((key) => EXACT.test(key)).filter((key) => !other.selectors.includes(key));
|
|
1765
1777
|
if (lostExact.length > 0) issues.push({
|
|
1766
1778
|
severity: "warning",
|
|
1767
|
-
message: `the ${
|
|
1779
|
+
message: `the translation lost ${counted(lostExact.length, "exact case")} for {${name}} (${list(lostExact)}), so "other" renders instead`
|
|
1768
1780
|
});
|
|
1769
1781
|
}
|
|
1770
1782
|
return issues;
|
|
@@ -2858,8 +2870,9 @@ function mergeTranslations(cfg, locale, translated, keys) {
|
|
|
2858
2870
|
return written;
|
|
2859
2871
|
}
|
|
2860
2872
|
function writeDrafts(cfg, locale, entries, options = {}) {
|
|
2861
|
-
const
|
|
2862
|
-
if (
|
|
2873
|
+
const typo = strangerLocales(cfg, "locale", [locale]);
|
|
2874
|
+
if (typo) throw new Error(typo);
|
|
2875
|
+
if (locale === cfg.sourceLocale) throw new Error(`[verbaly] "${locale}" is not a language this project translates into (${targetLocales(cfg).join(", ") || "none yet"})`);
|
|
2863
2876
|
loadState(cfg);
|
|
2864
2877
|
const catalogs = emptyCatalog();
|
|
2865
2878
|
catalogs[cfg.sourceLocale] = readCatalog(cfg, cfg.sourceLocale);
|
|
@@ -2913,7 +2926,7 @@ function formatTranslateFailures(failed) {
|
|
|
2913
2926
|
async function resolveProvider(cfg, model) {
|
|
2914
2927
|
const configured = cfg.translate.provider;
|
|
2915
2928
|
if (typeof configured === "function") return configured;
|
|
2916
|
-
const { claudeProvider } = await import("./claude-
|
|
2929
|
+
const { claudeProvider } = await import("./claude-BSLi4_54.js");
|
|
2917
2930
|
return claudeProvider({ model: model ?? cfg.translate.model });
|
|
2918
2931
|
}
|
|
2919
2932
|
function progressOf(job) {
|
|
@@ -2938,6 +2951,7 @@ function glossaryFor(cfg, locale, messages) {
|
|
|
2938
2951
|
}
|
|
2939
2952
|
// src/project/translate.ts
|
|
2940
2953
|
async function translateProject(cfg, options = {}) {
|
|
2954
|
+
if (options.locales) targetLocales(cfg, options.locales);
|
|
2941
2955
|
const dryRun = options.dryRun === true;
|
|
2942
2956
|
if (!dryRun) loadState(cfg);
|
|
2943
2957
|
const registry = await extractProject(cfg);
|
|
@@ -3495,13 +3509,6 @@ function projectLocale(tag, locales) {
|
|
|
3495
3509
|
}
|
|
3496
3510
|
// src/project/doctor.ts
|
|
3497
3511
|
const PREVIEW = 5;
|
|
3498
|
-
function readRoutingChoice(root, configFile) {
|
|
3499
|
-
try {
|
|
3500
|
-
return /\brouting["']?\s*[:=]/.test(readFileSync(join(root, configFile), "utf8"));
|
|
3501
|
-
} catch {
|
|
3502
|
-
return false;
|
|
3503
|
-
}
|
|
3504
|
-
}
|
|
3505
3512
|
function readAstroRouting(root, source) {
|
|
3506
3513
|
for (const file of [
|
|
3507
3514
|
"astro.config.mjs",
|
|
@@ -3659,7 +3666,7 @@ function checkRouting(report, cfg, configFile) {
|
|
|
3659
3666
|
if (cfg.routing === "no-prefix" && mirrors) warn("routing", "routing is \"no-prefix\" but a render section is configured, and render writes one url tree per locale", "drop the render section, or set routing to \"prefix-except-source\" so the helpers agree with the urls");
|
|
3660
3667
|
else if (cfg.routing === "prefix-all" && mirrors) warn("routing", `routing is "prefix-all" but render keeps ${cfg.sourceLocale} at the root, so its links point at a /${cfg.sourceLocale}/ tree nobody wrote`, "set routing to \"prefix-except-source\", the url tree render writes");
|
|
3661
3668
|
else {
|
|
3662
|
-
const named = configFile
|
|
3669
|
+
const named = configFile !== void 0 && cfg.routingDeclared;
|
|
3663
3670
|
const astro = cfg.host === "astro" && cfg.routing === "no-prefix" ? readAstroRouting(cfg.root, cfg.sourceLocale) : void 0;
|
|
3664
3671
|
if (astro && named) warn("routing", `routing is "no-prefix" in ${configFile}, but @verbaly/astro uses ${astro.mode}: Astro's i18n in ${astro.file} puts the language in the url`, `remove routing from ${configFile}, or remove i18n from ${astro.file}`);
|
|
3665
3672
|
else if (astro) {
|
|
@@ -5618,17 +5625,28 @@ async function renderSite(cfg, options = {}) {
|
|
|
5618
5625
|
if (wantSitemap && urls.length) writeFileSync(join(site, typeof sitemap === "string" ? sitemap : "sitemap-i18n.xml"), buildSitemap(urls));
|
|
5619
5626
|
const missing = emptyCatalog();
|
|
5620
5627
|
for (const [locale, keys] of Object.entries(unfilled)) missing[locale] = [...keys];
|
|
5621
|
-
|
|
5628
|
+
const result = {
|
|
5622
5629
|
files: files.length,
|
|
5623
5630
|
locales: [...locales],
|
|
5624
5631
|
missing,
|
|
5625
5632
|
untranslatedHead
|
|
5626
5633
|
};
|
|
5634
|
+
const own = join(site, cfg.sourceLocale);
|
|
5635
|
+
const left = (await glob("**/*.html", { cwd: own })).length;
|
|
5636
|
+
if (left > 0) result.sourceFolder = {
|
|
5637
|
+
folder: relativePath(cfg.root, own),
|
|
5638
|
+
pages: left
|
|
5639
|
+
};
|
|
5640
|
+
return result;
|
|
5627
5641
|
}
|
|
5628
5642
|
function formatRenderWarnings(result, sourceLocale) {
|
|
5629
5643
|
const lines = [];
|
|
5630
5644
|
for (const [locale, keys] of Object.entries(result.missing)) lines.push(` ${locale}: ${counted(keys.length, "key")} not pre-filled: ${keys.join(", ")}`);
|
|
5631
5645
|
if (result.untranslatedHead.length > 0) lines.push(` ${counted(result.untranslatedHead.length, "page")} of ${result.files} ship the same <title> in every locale (${result.untranslatedHead[0]}), so search results read in ${sourceLocale}`, ` fix: bind the head too, <title data-verbaly="key"> and a meta through data-verbaly-attr`);
|
|
5646
|
+
if (result.sourceFolder) {
|
|
5647
|
+
const { folder, pages } = result.sourceFolder;
|
|
5648
|
+
lines.push(` ${folder}/ is named like your source locale, so render does not mirror it (${counted(pages, "page")})`, ` fix: rename the folder if those pages are content, or delete it if an older run left it`);
|
|
5649
|
+
}
|
|
5632
5650
|
return lines;
|
|
5633
5651
|
}
|
|
5634
5652
|
function pagePath(rel) {
|
|
@@ -6236,7 +6254,7 @@ async function runCli(args = process.argv.slice(2)) {
|
|
|
6236
6254
|
const narrowed = csv(values.locales);
|
|
6237
6255
|
if (narrowed || command === "review" && values.locale) {
|
|
6238
6256
|
const whole = await loadConfig(root, project);
|
|
6239
|
-
const typo = narrowed ?
|
|
6257
|
+
const typo = narrowed ? strangerLocales(whole, "--locales", narrowed) : strangerLocales(whole, "--locale", [values.locale]);
|
|
6240
6258
|
if (typo) {
|
|
6241
6259
|
console.error(typo);
|
|
6242
6260
|
process.exitCode = 1;
|
|
@@ -6249,13 +6267,6 @@ async function runCli(args = process.argv.slice(2)) {
|
|
|
6249
6267
|
});
|
|
6250
6268
|
return COMMANDS[command](cfg, values, positionals);
|
|
6251
6269
|
}
|
|
6252
|
-
function strangers(cfg, flag, named) {
|
|
6253
|
-
const unknown = named.filter((locale) => !cfg.locales.includes(locale));
|
|
6254
|
-
if (unknown.length === 0) return void 0;
|
|
6255
|
-
const dir = relativePath(cfg.root, cfg.dir);
|
|
6256
|
-
const start = cfg.localesDeclared ? `add ${unknown.join(", ")} to locales in your verbaly config` : `create ${unknown.map((locale) => `${dir}/${locale}.json`).join(", ")} holding {}`;
|
|
6257
|
-
return `[verbaly] --${flag} names ${unknown.map((locale) => `"${locale}"`).join(", ")}, and this project has ${cfg.locales.join(", ")}\n fix: check the spelling, or ${start} to start a new language`;
|
|
6258
|
-
}
|
|
6259
6270
|
function formatCliError(error) {
|
|
6260
6271
|
const message = error instanceof Error ? error.message : String(error);
|
|
6261
6272
|
return message.startsWith("[verbaly]") ? message : `[verbaly] ${message}`;
|
|
@@ -6317,4 +6328,4 @@ function rejectStrayFlags(command, values) {
|
|
|
6317
6328
|
process.exitCode = 1;
|
|
6318
6329
|
return true;
|
|
6319
6330
|
}
|
|
6320
|
-
export { collectOrigins as $, collisionEntries as A,
|
|
6331
|
+
export { collectOrigins as $, collisionEntries as A, singleQuoted as At, loadState as B, translateProject as C, pluginOnlyOptions as Ct, translateCatalogs as D, warnParseError as Dt, resolveProvider as E, warnOnce as Et, outdatedTranslations as F, generateLocaleModule as G, readState as H, recordTranslations as I, validateMessage as J, generateRuntimeModule as K, updateState as L, formatCollision as M, formatFinding as N, writeDrafts as O, cliReachable as Ot, effectiveDrafts as P, syncCatalogs as Q, STATE_FILE as R, warningCount as S, loadConfig as St, mergeTranslations as T, targetLocales as Tt, saveState as U, markDrafts as V, generateDts as W, pruneCatalogs as X, validatePair as Y, shippedCatalogs as Z, formatCheckResult as _, parseCatalog as _t, formatRenderWarnings as a, LOCALE_IMPORT as at, gatePasses as b, SOURCE_FILE_RE as bt, watchTree as c, MessageRegistry as ct, formatDoctorHealth as d, formatBundleIssue as dt, extractProject as et, formatStatusResult as f, emptyCatalog as ft, formatBuildReport as g, own as gt, checkNextSteps as h, needsRelative as ht, wrapProject as i, APP_ID as it, createDevReporter as j, relativePath as jt, syncProject as k, counted as kt, doctor as l, auditBundle as lt, reportOutsideInclude as m, needsIcu as mt, runCli as n, analyzeFile as nt, renderSite as o, VIRTUAL_ID as ot, status as p, loadCatalogs as pt, writeDts as q, formatWrapResult as r, stableKey as rt, init as s, isAppModule as st, formatCliError as t, scannedAnalysis as tt, formatDoctorEntry as u, clientCatalogs as ut, formatCheckWarnings as v, readCatalog as vt, formatTranslateFailures as w, resolveConfig as wt, relativeCheck as x, isModuleNotFound as xt, check as y, writeCatalog as yt, clearDrafts as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verbaly/compiler",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.84.0",
|
|
4
4
|
"description": "Message extraction and type-safe codegen for Verbaly.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"i18n",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"magic-string": "^1.4.5",
|
|
53
53
|
"picomatch": "^4.0.7",
|
|
54
54
|
"tinyglobby": "^0.2.17",
|
|
55
|
-
"verbaly": "0.
|
|
55
|
+
"verbaly": "0.84.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@anthropic-ai/sdk": ">=0.110.0"
|