Translating Nested Paragraphs with Paragraph Group Module Deletes Source Entity's Paragraphs

Created on 21 October 2024, 9 months ago

Problem/Motivation

With the paragraph_group β†’ module enabled, when i try to translate a node with nested paragraphs, the source language node and the translation end up with an empty paragraph field.

Steps to reproduce

- have the paragraph_group β†’ module enabled
- Have a content type with the field "layout" from paragraph group module.
- This layout paragraph has the field_group_paragraphs where i can add "panel" paragraph reference
- "Panel" paragraph has a field "field_panel_paragraphs" that can reference multiple custom paragraphs.
- Now create content on this node with a paragraph with text for example.
- Translate this node with ai_translate
- See that the translation has no paragraph and the source language node has lost its paragraphs as well.

Proposed resolution

Improve the "setValue()" method in "web/modules/contrib/ai/modules/ai_translate/src/Plugin/FieldTextExtractor/ReferenceFieldExtractor.php" To handle correctly nested paragraphs.z

πŸ› Bug report
Status

Active

Version

1.0

Component

Other Submodules

Created by

πŸ‡§πŸ‡ͺBelgium arwillame Belgium πŸ‡§πŸ‡ͺ

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024