AI Translate removes paragraphs with block content references and ignores field translation settings

Created on 11 July 2025, 2 months ago

Problem/Motivation

When using AI Translate module to translate content that contains paragraphs with entity reference fields pointing to block content, two issues occur:
1. Paragraphs are removed: The ReferenceFieldExtractor plugin incorrectly overwrites field values instead of preserving the original reference structure
2. Settings are ignored: The module ignores field-level translation settings and global configuration for block content translation, even when explicitly disabled

Steps to reproduce (required for bugs, but not feature requests)

1. Please provide information like AI modules enabled, which AI provider, browser, etc.
2. Install and configure AI Translate module
3. In AI Translate settings, ensure block_content translation is disabled in reference_defaults
4. Create a content type with a paragraph field
5. Create a paragraph type with an entity reference field pointing to block content
6. In the paragraph field configuration, set "Translate referenced entities" to "No"
7. Add content with a paragraph that references block content
8. Use AI Translate to translate the content to another language
9. Expected result:
- Paragraph with block content reference should be preserved in both original and translated content
- Block content should NOT be translated (as per settings)
10. Actual result:
- Paragraph with block content reference is removed from both original and translated content
- Block content gets translated despite being disabled in settings

πŸ› Bug report
Status

Active

Version

1.1

Component

...to be triaged

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024