@braze/sanity-plugin-ai-translation 0.2.25 → 0.2.26

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
@@ -2232,7 +2232,9 @@ const fetchTranslationPrompts = async ({
2232
2232
  ],
2233
2233
  model: openaiConfig.model,
2234
2234
  reasoningEffort: openaiConfig.reasoningEffort
2235
- }), result = deserializeDocument(sourceDocument, response.content), validation = validateStructureIntegrity(sourceDocument, result);
2235
+ }), result = deserializeDocument(sourceDocument, response.content);
2236
+ result[languageFieldName] = targetLanguage;
2237
+ const validation = validateStructureIntegrity(sourceDocument, result);
2236
2238
  if (!validation.valid) {
2237
2239
  devLog.error("Structure validation failed", {
2238
2240
  ...logContext,