gt-sanity 4.0.27 → 4.0.28

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/dist/index.js CHANGED
@@ -530,7 +530,7 @@ const getOrCreateTranslationMetadata = async (documentId, baseDocument, client,
530
530
  return metadata;
531
531
  throw error;
532
532
  }
533
- }, SYSTEM_FIELDS = ["_id", "_rev", "_updatedAt", "language"], isSystemField = (field) => SYSTEM_FIELDS.includes(field);
533
+ }, SYSTEM_FIELDS = ["_id", "_rev", "_updatedAt", "language"], isSystemField = (field) => SYSTEM_FIELDS.includes(field) || field === pluginConfig.getLanguageField();
534
534
  async function patchI18nDoc(sourceDocumentId, i18nDocId, sourceDocument, mergedDocument, translatedFields, client, existingDocument) {
535
535
  const cleanedMerge = {};
536
536
  Object.entries(mergedDocument).forEach(([key, value]) => {
@@ -2917,7 +2917,7 @@ const useTranslations = () => {
2917
2917
  ] }) })
2918
2918
  }
2919
2919
  ) : null;
2920
- var version = "4.0.27";
2920
+ var version = "4.0.28";
2921
2921
  function buildDebugInfo({
2922
2922
  secrets,
2923
2923
  preferences,