lingo.dev 0.107.5 → 0.108.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/build/cli.cjs +37 -17
- package/build/cli.cjs.map +1 -1
- package/build/cli.mjs +37 -17
- package/build/cli.mjs.map +1 -1
- package/package.json +9 -8
package/build/cli.mjs
CHANGED
|
@@ -368,7 +368,8 @@ var colors = {
|
|
|
368
368
|
blue: "#0090ff",
|
|
369
369
|
yellow: "#ffcc00",
|
|
370
370
|
grey: "#808080",
|
|
371
|
-
red: "#ff0000"
|
|
371
|
+
red: "#ff0000",
|
|
372
|
+
white: "#ffffff"
|
|
372
373
|
};
|
|
373
374
|
|
|
374
375
|
// src/cli/utils/ui.ts
|
|
@@ -396,24 +397,24 @@ async function renderHero() {
|
|
|
396
397
|
)} - open-source, AI-powered i18n CLI for web & mobile localization.`
|
|
397
398
|
);
|
|
398
399
|
console.log("");
|
|
399
|
-
const label1 = "\
|
|
400
|
-
const label2 = "\
|
|
401
|
-
const label3 = "\u{
|
|
400
|
+
const label1 = "\u{1F4DA} Docs:";
|
|
401
|
+
const label2 = "\u2B50 Star the repo:";
|
|
402
|
+
const label3 = "\u{1F3AE} Join Discord:";
|
|
402
403
|
const maxLabelWidth = 17;
|
|
403
404
|
console.log(
|
|
404
|
-
`${chalk.hex(colors.blue)(label1.padEnd(maxLabelWidth))} ${chalk.hex(
|
|
405
|
+
`${chalk.hex(colors.blue)(label1.padEnd(maxLabelWidth + 1))} ${chalk.hex(
|
|
405
406
|
colors.blue
|
|
406
|
-
)("https://lingo.dev/go/
|
|
407
|
+
)("https://lingo.dev/go/docs")}`
|
|
407
408
|
);
|
|
408
409
|
console.log(
|
|
409
|
-
`${chalk.hex(colors.blue)(label2.padEnd(maxLabelWidth
|
|
410
|
+
`${chalk.hex(colors.blue)(label2.padEnd(maxLabelWidth))} ${chalk.hex(
|
|
410
411
|
colors.blue
|
|
411
|
-
)("https://lingo.dev/go/
|
|
412
|
+
)("https://lingo.dev/go/gh")}`
|
|
412
413
|
);
|
|
413
414
|
console.log(
|
|
414
415
|
`${chalk.hex(colors.blue)(label3.padEnd(maxLabelWidth + 1))} ${chalk.hex(
|
|
415
416
|
colors.blue
|
|
416
|
-
)("
|
|
417
|
+
)("https://lingo.dev/go/discord")}`
|
|
417
418
|
);
|
|
418
419
|
}
|
|
419
420
|
async function waitForUserPrompt(message) {
|
|
@@ -448,6 +449,17 @@ async function renderSummary(results) {
|
|
|
448
449
|
(r) => r.status === "error"
|
|
449
450
|
).length;
|
|
450
451
|
console.log(`\u2022 ${chalk.hex(colors.yellow)(failedTasksCount)} failed`);
|
|
452
|
+
if (failedTasksCount > 0) {
|
|
453
|
+
console.log(chalk.hex(colors.orange)("\n[Failed]"));
|
|
454
|
+
for (const result of Array.from(results.values()).filter(
|
|
455
|
+
(r) => r.status === "error"
|
|
456
|
+
)) {
|
|
457
|
+
console.log(
|
|
458
|
+
`\u274C ${chalk.hex(colors.white)(String(result.error.message))}
|
|
459
|
+
`
|
|
460
|
+
);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
451
463
|
}
|
|
452
464
|
|
|
453
465
|
// src/cli/cmd/login.ts
|
|
@@ -6212,9 +6224,11 @@ function extractCodePlaceholders(content) {
|
|
|
6212
6224
|
};
|
|
6213
6225
|
}
|
|
6214
6226
|
function createMdxCodePlaceholderLoader() {
|
|
6227
|
+
const globalPlaceholderRegistry = {};
|
|
6215
6228
|
return createLoader({
|
|
6216
6229
|
async pull(locale, input2) {
|
|
6217
6230
|
const response = extractCodePlaceholders(input2);
|
|
6231
|
+
Object.assign(globalPlaceholderRegistry, response.codePlaceholders);
|
|
6218
6232
|
return response.content;
|
|
6219
6233
|
},
|
|
6220
6234
|
async push(locale, data, originalInput, originalLocale, pullInput) {
|
|
@@ -6222,7 +6236,9 @@ function createMdxCodePlaceholderLoader() {
|
|
|
6222
6236
|
const currentInfo = extractCodePlaceholders(pullInput ?? "");
|
|
6223
6237
|
const codePlaceholders = _24.merge(
|
|
6224
6238
|
sourceInfo.codePlaceholders,
|
|
6225
|
-
currentInfo.codePlaceholders
|
|
6239
|
+
currentInfo.codePlaceholders,
|
|
6240
|
+
globalPlaceholderRegistry
|
|
6241
|
+
// Include ALL placeholders ever created
|
|
6226
6242
|
);
|
|
6227
6243
|
let result = data;
|
|
6228
6244
|
for (const [placeholder, original] of Object.entries(codePlaceholders)) {
|
|
@@ -10468,16 +10484,19 @@ async function renderHero2() {
|
|
|
10468
10484
|
)} - open-source, AI-powered i18n CLI for web & mobile localization.`
|
|
10469
10485
|
);
|
|
10470
10486
|
console.log(" ");
|
|
10487
|
+
console.log(chalk15.hex(colors2.blue)("\u{1F4DA} Docs: https://lingo.dev/go/docs"));
|
|
10488
|
+
console.log(
|
|
10489
|
+
chalk15.hex(colors2.blue)("\u2B50 Star the repo: https://lingo.dev/go/gh")
|
|
10490
|
+
);
|
|
10471
10491
|
console.log(
|
|
10472
|
-
chalk15.hex(colors2.blue)("\
|
|
10492
|
+
chalk15.hex(colors2.blue)("\u{1F3AE} Join Discord: https://lingo.dev/go/discord")
|
|
10473
10493
|
);
|
|
10474
|
-
console.log(chalk15.hex(colors2.blue)("\u{1F4AC} 24/7 Support: hi@lingo.dev"));
|
|
10475
10494
|
}
|
|
10476
10495
|
|
|
10477
10496
|
// package.json
|
|
10478
10497
|
var package_default = {
|
|
10479
10498
|
name: "lingo.dev",
|
|
10480
|
-
version: "0.
|
|
10499
|
+
version: "0.108.0",
|
|
10481
10500
|
description: "Lingo.dev CLI",
|
|
10482
10501
|
private: false,
|
|
10483
10502
|
publishConfig: {
|
|
@@ -10580,7 +10599,8 @@ var package_default = {
|
|
|
10580
10599
|
scripts: {
|
|
10581
10600
|
"lingo.dev": "node --inspect=9229 ./bin/cli.mjs",
|
|
10582
10601
|
dev: "tsup --watch",
|
|
10583
|
-
build: "
|
|
10602
|
+
build: "pnpm typecheck && tsup",
|
|
10603
|
+
typecheck: "tsc --noEmit",
|
|
10584
10604
|
test: "vitest run",
|
|
10585
10605
|
"test:watch": "vitest",
|
|
10586
10606
|
clean: "rm -rf build"
|
|
@@ -10600,7 +10620,7 @@ var package_default = {
|
|
|
10600
10620
|
"@datocms/cma-client-node": "^4.0.1",
|
|
10601
10621
|
"@gitbeaker/rest": "^39.34.3",
|
|
10602
10622
|
"@inkjs/ui": "^2.0.0",
|
|
10603
|
-
"@inquirer/prompts": "^7.
|
|
10623
|
+
"@inquirer/prompts": "^7.7.0",
|
|
10604
10624
|
"@lingo.dev/_compiler": "workspace:*",
|
|
10605
10625
|
"@lingo.dev/_react": "workspace:*",
|
|
10606
10626
|
"@lingo.dev/_sdk": "workspace:*",
|
|
@@ -10625,7 +10645,7 @@ var package_default = {
|
|
|
10625
10645
|
ejs: "^3.1.10",
|
|
10626
10646
|
express: "^5.1.0",
|
|
10627
10647
|
"external-editor": "^3.1.0",
|
|
10628
|
-
figlet: "^1.8.
|
|
10648
|
+
figlet: "^1.8.2",
|
|
10629
10649
|
flat: "^6.0.1",
|
|
10630
10650
|
"gettext-parser": "^8.0.0",
|
|
10631
10651
|
glob: "<11.0.0",
|
|
@@ -10657,7 +10677,7 @@ var package_default = {
|
|
|
10657
10677
|
"p-limit": "^6.2.0",
|
|
10658
10678
|
"php-array-reader": "^2.1.2",
|
|
10659
10679
|
plist: "^3.1.0",
|
|
10660
|
-
"posthog-node": "^
|
|
10680
|
+
"posthog-node": "^5.5.1",
|
|
10661
10681
|
prettier: "^3.4.2",
|
|
10662
10682
|
react: "^18.3.1",
|
|
10663
10683
|
"rehype-stringify": "^10.0.1",
|