lingo.dev 0.115.0 → 0.116.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.
package/build/cli.mjs CHANGED
@@ -203,6 +203,9 @@ var docLinks = {
203
203
  bucketNotFound: "https://lingo.dev/cli",
204
204
  authError: "https://lingo.dev/cli",
205
205
  localeTargetNotFound: "https://lingo.dev/cli",
206
+ // corrected key (previously misspelled as "lockFiletNotFound")
207
+ lockFileNotFound: "https://lingo.dev/cli",
208
+ // legacy alias for backward compatibility
206
209
  lockFiletNotFound: "https://lingo.dev/cli",
207
210
  failedReplexicaEngine: "https://lingo.dev/cli",
208
211
  placeHolderFailed: "https://lingo.dev/cli",
@@ -210,6 +213,9 @@ var docLinks = {
210
213
  connectionFailed: "https://lingo.dev/cli",
211
214
  invalidType: "https://lingo.dev/cli",
212
215
  invalidPathPattern: "https://lingo.dev/cli",
216
+ // corrected key (previously misspelled as "androidResouceError")
217
+ androidResourceError: "https://lingo.dev/cli",
218
+ // legacy alias for backward compatibility
213
219
  androidResouceError: "https://lingo.dev/cli",
214
220
  invalidBucketType: "https://lingo.dev/cli",
215
221
  invalidStringDict: "https://lingo.dev/cli"
@@ -2172,7 +2178,7 @@ function createAndroidLoader() {
2172
2178
  console.error("Error parsing Android resource file:", error);
2173
2179
  throw new CLIError({
2174
2180
  message: "Failed to parse Android resource file",
2175
- docUrl: "androidResouceError"
2181
+ docUrl: "androidResourceError"
2176
2182
  });
2177
2183
  }
2178
2184
  },
@@ -2198,7 +2204,7 @@ function createAndroidLoader() {
2198
2204
  console.error("Error generating Android resource file:", error);
2199
2205
  throw new CLIError({
2200
2206
  message: "Failed to generate Android resource file",
2201
- docUrl: "androidResouceError"
2207
+ docUrl: "androidResourceError"
2202
2208
  });
2203
2209
  }
2204
2210
  }
@@ -2670,7 +2676,7 @@ function asString(value, name) {
2670
2676
  }
2671
2677
  throw new CLIError({
2672
2678
  message: `Expected string value for resource "${name}"`,
2673
- docUrl: "androidResouceError"
2679
+ docUrl: "androidResourceError"
2674
2680
  });
2675
2681
  }
2676
2682
  function asStringArray(value, name) {
@@ -2679,7 +2685,7 @@ function asStringArray(value, name) {
2679
2685
  }
2680
2686
  throw new CLIError({
2681
2687
  message: `Expected array of strings for resource "${name}"`,
2682
- docUrl: "androidResouceError"
2688
+ docUrl: "androidResourceError"
2683
2689
  });
2684
2690
  }
2685
2691
  function asPluralMap(value, name) {
@@ -2689,7 +2695,7 @@ function asPluralMap(value, name) {
2689
2695
  if (typeof pluralValue !== "string") {
2690
2696
  throw new CLIError({
2691
2697
  message: `Expected plural item "${quantity}" of "${name}" to be a string`,
2692
- docUrl: "androidResouceError"
2698
+ docUrl: "androidResourceError"
2693
2699
  });
2694
2700
  }
2695
2701
  result[quantity] = pluralValue;
@@ -2698,7 +2704,7 @@ function asPluralMap(value, name) {
2698
2704
  }
2699
2705
  throw new CLIError({
2700
2706
  message: `Expected object value for plurals resource "${name}"`,
2701
- docUrl: "androidResouceError"
2707
+ docUrl: "androidResourceError"
2702
2708
  });
2703
2709
  }
2704
2710
  function asBoolean(value, name) {
@@ -2712,7 +2718,7 @@ function asBoolean(value, name) {
2712
2718
  }
2713
2719
  throw new CLIError({
2714
2720
  message: `Expected boolean value for resource "${name}"`,
2715
- docUrl: "androidResouceError"
2721
+ docUrl: "androidResourceError"
2716
2722
  });
2717
2723
  }
2718
2724
  function asInteger(value, name) {
@@ -2721,7 +2727,7 @@ function asInteger(value, name) {
2721
2727
  }
2722
2728
  throw new CLIError({
2723
2729
  message: `Expected number value for resource "${name}"`,
2724
- docUrl: "androidResouceError"
2730
+ docUrl: "androidResourceError"
2725
2731
  });
2726
2732
  }
2727
2733
  function escapeAndroidString(value) {
@@ -3072,7 +3078,7 @@ function inferTypeFromValue(value) {
3072
3078
  }
3073
3079
  throw new CLIError({
3074
3080
  message: "Unable to infer Android resource type from payload",
3075
- docUrl: "androidResouceError"
3081
+ docUrl: "androidResourceError"
3076
3082
  });
3077
3083
  }
3078
3084
  function extractResourceMetadata(xml) {
@@ -12025,11 +12031,11 @@ async function determineAuthId(ctx) {
12025
12031
  }
12026
12032
 
12027
12033
  // src/cli/cmd/run/index.ts
12028
- var __dirname = path17.dirname(fileURLToPath(import.meta.url));
12034
+ var __dirname2 = path17.dirname(fileURLToPath(import.meta.url));
12029
12035
  function playSound(type) {
12030
12036
  const platform = os2.platform();
12031
12037
  return new Promise((resolve) => {
12032
- const assetDir = path17.join(__dirname, "../assets");
12038
+ const assetDir = path17.join(__dirname2, "../assets");
12033
12039
  const soundFiles = [path17.join(assetDir, `${type}.mp3`)];
12034
12040
  let command = "";
12035
12041
  if (platform === "linux") {
@@ -13298,7 +13304,7 @@ var status_default = new Command20().command("status").description("Show the sta
13298
13304
  console.log(`\u2022 Per-language breakdown:`);
13299
13305
  for (const locale of targetLocales) {
13300
13306
  const words = totalWordCount.get(locale) || 0;
13301
- const percent = (words / totalWordsToTranslate * 100).toFixed(1);
13307
+ const percent = totalWordsToTranslate > 0 ? (words / totalWordsToTranslate * 100).toFixed(1) : "0.0";
13302
13308
  console.log(
13303
13309
  ` - ${locale}: ~${words.toLocaleString()} words (${percent}% of total)`
13304
13310
  );
@@ -13530,7 +13536,7 @@ async function renderHero2() {
13530
13536
  // package.json
13531
13537
  var package_default = {
13532
13538
  name: "lingo.dev",
13533
- version: "0.115.0",
13539
+ version: "0.116.1",
13534
13540
  description: "Lingo.dev CLI",
13535
13541
  private: false,
13536
13542
  publishConfig: {
@@ -13726,7 +13732,7 @@ var package_default = {
13726
13732
  "php-array-reader": "^2.1.2",
13727
13733
  plist: "^3.1.0",
13728
13734
  "posthog-node": "^5.8.1",
13729
- prettier: "^3.4.2",
13735
+ prettier: "^3.6.2",
13730
13736
  react: "^18.3.1",
13731
13737
  "rehype-stringify": "^10.0.1",
13732
13738
  "remark-disable-tokenizers": "^1.1.1",