Similar to https://www.drupal.org/project/auto_translation/issues/3511091, paragraph fields are not translated when using the Translate tab (real-time translation). In this case, the issue is specific to the drupal/layout_paragraphs widget, which uses a completely different form structure instead of the standard widget/subform structure that translateParagraphs() expects.

Bulk translation works correctly because it uses entity-based approach, which doesn't depend on form structure. The same approach can be reused as a fallback in translateParagraphs() when the standard subform is not available, but a layout_paragraphs builder is detected.

Let me know if you have a better approach in mind

CommentFileSizeAuthor
#2 3572931-2.patch1.07 KBdejan0

Comments

dejan0 created an issue. See original summary.

dejan0’s picture

StatusFileSize
new1.07 KB

Please find the patch attached

dejan0’s picture

Status: Needs work » Needs review
bigbabert’s picture

Thanks, that is great! i'll include in next version

bigbabert’s picture

Status: Needs review » Reviewed & tested by the community

Tested and it work!

  • bigbabert committed c20cd087 on 1.4.x
    feat: #3572931 Layout Paragraphs widget not supported in real-time form...

  • bigbabert committed c20cd087 on 1.0.x
    feat: #3572931 Layout Paragraphs widget not supported in real-time form...
bigbabert’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

bigbabert’s picture

Status: Fixed » Closed (fixed)