lingo.dev 0.92.9 → 0.92.11

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 CHANGED
@@ -4042,8 +4042,8 @@ function createBasicTranslator(model, systemPrompt) {
4042
4042
  {
4043
4043
  role: "user",
4044
4044
  content: JSON.stringify({
4045
- sourceLocale: "en",
4046
- targetLocale: "es",
4045
+ sourceLocale: input2.sourceLocale,
4046
+ targetLocale: input2.targetLocale,
4047
4047
  data: input2.processableData
4048
4048
  })
4049
4049
  }
@@ -6375,7 +6375,7 @@ async function renderHero() {
6375
6375
  // package.json
6376
6376
  var package_default = {
6377
6377
  name: "lingo.dev",
6378
- version: "0.92.9",
6378
+ version: "0.92.11",
6379
6379
  description: "Lingo.dev CLI",
6380
6380
  private: false,
6381
6381
  publishConfig: {
@@ -6969,7 +6969,7 @@ async function execute(input2) {
6969
6969
  return;
6970
6970
  }
6971
6971
  const i18nLimiter = _plimit2.default.call(void 0, effectiveConcurrency);
6972
- const lockfileLimiter = _plimit2.default.call(void 0, 1);
6972
+ const ioLimiter = _plimit2.default.call(void 0, 1);
6973
6973
  const workersCount = effectiveConcurrency;
6974
6974
  const workerTasks = [];
6975
6975
  for (let i = 0; i < workersCount; i++) {
@@ -6980,7 +6980,7 @@ async function execute(input2) {
6980
6980
  createWorkerTask({
6981
6981
  ctx,
6982
6982
  assignedTasks,
6983
- lockfileLimiter,
6983
+ ioLimiter,
6984
6984
  i18nLimiter,
6985
6985
  onDone() {
6986
6986
  task.title = createExecutionProgressMessage(ctx);
@@ -7100,8 +7100,12 @@ function createWorkerTask(args) {
7100
7100
  targetData,
7101
7101
  processedTargetData
7102
7102
  );
7103
- await bucketLoader.push(assignedTask.targetLocale, finalTargetData);
7104
- await args.lockfileLimiter(async () => {
7103
+ await args.ioLimiter(async () => {
7104
+ await bucketLoader.pull(assignedTask.sourceLocale);
7105
+ await bucketLoader.push(
7106
+ assignedTask.targetLocale,
7107
+ finalTargetData
7108
+ );
7105
7109
  const checksums2 = await deltaProcessor.createChecksums(sourceData);
7106
7110
  await deltaProcessor.saveChecksums(checksums2);
7107
7111
  });
@@ -7208,9 +7212,7 @@ async function waitForUserPrompt(message) {
7208
7212
  async function renderSummary(ctx) {
7209
7213
  console.log(_chalk2.default.hex(colors.green)("[Done]"));
7210
7214
  const skippedTasksCount = ctx.results.values().filter((r) => r.status === "skipped").toArray().length;
7211
- console.log(
7212
- `\u2022 ${_chalk2.default.hex(colors.yellow)(skippedTasksCount)} restored from cache`
7213
- );
7215
+ console.log(`\u2022 ${_chalk2.default.hex(colors.yellow)(skippedTasksCount)} from cache`);
7214
7216
  const succeededTasksCount = ctx.results.values().filter((r) => r.status === "success").toArray().length;
7215
7217
  console.log(`\u2022 ${_chalk2.default.hex(colors.yellow)(succeededTasksCount)} processed`);
7216
7218
  const failedTasksCount = ctx.results.values().filter((r) => r.status === "error").toArray().length;