Original layoutbuilder blocks missing after ai translate

Created on 25 April 2025, 13 days ago

Problem/Motivation

After using AI Translate to translate a layoutbuilder page (asymmetric) with blocks from Dutch to French, then the French translation is ok but suddenly almost all blocks are missing on the original Dutch page (placeholders remain where the blocks used to be, the original blocks themselves seem to no longer have any content)

Steps to reproduce

  • Site default language: Dutch.
  • Additional languages: English and French.
  • Content type 'Page' has a layout_builder__layout field that is translatable.
  • I'm using ai_translate_lb_asymmetric, layout_builder_at, ai, ai_translate
  • I have sevaral block content types like hero, text, image etc. None of the block fields is translatable.
  • For AI model I'm using Claude Sonnet via ai_provider_anthropic
  • I create a page with sections, a hero block, some text blocks etc in Dutch (original language).
  • I click translate and translate the page to French via 'Translate using claude-3-sonnet-latest'.
  • It takes some time, but I successfully see a French page with all the same blocks as my original page and all texts translated (yeay!).
  • Now I switch back to my original page (Dutch) and I see that only my first (dutch) hero block is still working, all the rest of the blocks seem missing. When editing the layout I see some placeholder texts instead of the missing blocks.
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium flyke

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

Comments & Activities

  • Issue created by @flyke
  • 🇬🇧United Kingdom MrDaleSmith

    Ha ve you confirmed that this is an issue with ai_translate? You seem to be using a number of LB-specific modules that I would have thought were more likely to be the source of the problem? The core AI translate module doesn't specifically interact with LB.

Production build 0.71.5 2024