lingo.dev 0.78.0 → 0.78.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
@@ -1691,12 +1691,10 @@ function createXcodeXcstringsLoader(defaultLocale) {
1691
1691
  }
1692
1692
  }
1693
1693
  } else if (isSourceLanguage) {
1694
- const hasOtherLocalizations = rootTranslationEntity?.localizations && Object.keys(rootTranslationEntity.localizations).length > 0;
1695
- if (hasOtherLocalizations) {
1696
- resultData[translationKey] = translationKey;
1697
- }
1694
+ resultData[translationKey] = translationKey;
1698
1695
  }
1699
1696
  }
1697
+ console.log(resultData);
1700
1698
  return resultData;
1701
1699
  },
1702
1700
  async push(locale, payload, originalInput) {
@@ -1710,7 +1708,7 @@ function createXcodeXcstringsLoader(defaultLocale) {
1710
1708
  const hasDoNotTranslateFlag = originalInput && originalInput.strings && originalInput.strings[key] && originalInput.strings[key].shouldTranslate === false;
1711
1709
  if (typeof value === "string") {
1712
1710
  langDataToMerge.strings[key] = {
1713
- extractionState: "manual",
1711
+ extractionState: originalInput?.strings?.[key]?.extractionState,
1714
1712
  localizations: {
1715
1713
  [locale]: {
1716
1714
  stringUnit: {
@@ -3784,7 +3782,7 @@ var mcp_default = new Command9().command("mcp").description("Use Lingo.dev model
3784
3782
  // package.json
3785
3783
  var package_default = {
3786
3784
  name: "lingo.dev",
3787
- version: "0.78.0",
3785
+ version: "0.78.1",
3788
3786
  description: "Lingo.dev CLI",
3789
3787
  private: false,
3790
3788
  publishConfig: {