lingo.dev 0.77.0 → 0.77.2
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 +9 -3
- package/build/cli.cjs.map +1 -1
- package/build/cli.mjs +12 -6
- package/build/cli.mjs.map +1 -1
- package/package.json +3 -3
package/build/cli.mjs
CHANGED
|
@@ -289,6 +289,8 @@ function findLocaleFiles(bucket) {
|
|
|
289
289
|
return findLocaleFilesWithExtension(".md");
|
|
290
290
|
case "php":
|
|
291
291
|
return findLocaleFilesWithExtension(".php");
|
|
292
|
+
case "po":
|
|
293
|
+
return findLocaleFilesWithExtension(".po");
|
|
292
294
|
case "xcode-xcstrings":
|
|
293
295
|
return findLocaleFilesForFilename("Localizable.xcstrings");
|
|
294
296
|
case "xcode-strings":
|
|
@@ -780,7 +782,7 @@ var show_default = new Command5().command("show").description("Prints out the cu
|
|
|
780
782
|
|
|
781
783
|
// src/cli/cmd/i18n.ts
|
|
782
784
|
import { bucketTypeSchema, localeCodeSchema, resolveOverridenLocale as resolveOverridenLocale3 } from "@lingo.dev/_spec";
|
|
783
|
-
import {
|
|
785
|
+
import { LingoDotDevEngine } from "@lingo.dev/_sdk";
|
|
784
786
|
import { Command as Command6 } from "interactive-commander";
|
|
785
787
|
import Z4 from "zod";
|
|
786
788
|
import _19 from "lodash";
|
|
@@ -3223,7 +3225,7 @@ async function retryWithExponentialBackoff(operation, maxAttempts, baseDelay = 1
|
|
|
3223
3225
|
throw new Error("Unreachable code");
|
|
3224
3226
|
}
|
|
3225
3227
|
function createLocalizationEngineConnection(params) {
|
|
3226
|
-
const replexicaEngine = new
|
|
3228
|
+
const replexicaEngine = new LingoDotDevEngine({
|
|
3227
3229
|
apiKey: params.apiKey,
|
|
3228
3230
|
apiUrl: params.apiUrl
|
|
3229
3231
|
});
|
|
@@ -3234,7 +3236,11 @@ function createLocalizationEngineConnection(params) {
|
|
|
3234
3236
|
args.processableData,
|
|
3235
3237
|
{
|
|
3236
3238
|
sourceLocale: args.sourceLocale,
|
|
3237
|
-
targetLocale: args.targetLocale
|
|
3239
|
+
targetLocale: args.targetLocale,
|
|
3240
|
+
reference: {
|
|
3241
|
+
[args.sourceLocale]: args.sourceData,
|
|
3242
|
+
[args.targetLocale]: args.targetData
|
|
3243
|
+
}
|
|
3238
3244
|
},
|
|
3239
3245
|
onProgress
|
|
3240
3246
|
),
|
|
@@ -3522,7 +3528,7 @@ import { Command as Command9 } from "interactive-commander";
|
|
|
3522
3528
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
3523
3529
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3524
3530
|
import Z6 from "zod";
|
|
3525
|
-
import { ReplexicaEngine
|
|
3531
|
+
import { ReplexicaEngine } from "@lingo.dev/_sdk";
|
|
3526
3532
|
var mcp_default = new Command9().command("mcp").description("Use Lingo.dev model context provider with your AI agent").helpOption("-h, --help", "Show help").action(async (_21, program) => {
|
|
3527
3533
|
const apiKey = program.args[0];
|
|
3528
3534
|
const settings = getSettings(apiKey);
|
|
@@ -3541,7 +3547,7 @@ var mcp_default = new Command9().command("mcp").description("Use Lingo.dev model
|
|
|
3541
3547
|
} else {
|
|
3542
3548
|
console.log(`Authenticated as ${auth.email}`);
|
|
3543
3549
|
}
|
|
3544
|
-
const replexicaEngine = new
|
|
3550
|
+
const replexicaEngine = new ReplexicaEngine({
|
|
3545
3551
|
apiKey: settings.auth.apiKey,
|
|
3546
3552
|
apiUrl: settings.auth.apiUrl
|
|
3547
3553
|
});
|
|
@@ -3573,7 +3579,7 @@ var mcp_default = new Command9().command("mcp").description("Use Lingo.dev model
|
|
|
3573
3579
|
// package.json
|
|
3574
3580
|
var package_default = {
|
|
3575
3581
|
name: "lingo.dev",
|
|
3576
|
-
version: "0.77.
|
|
3582
|
+
version: "0.77.2",
|
|
3577
3583
|
description: "Lingo.dev CLI",
|
|
3578
3584
|
private: false,
|
|
3579
3585
|
publishConfig: {
|