[META] Make Layout Builder layouts translatable

Created on 29 March 2019, almost 6 years ago
Updated 4 January 2025, 19 days ago

Problem/Motivation

In #3043651: Update the Layout field to non-translatable when possible. β†’ and #3041659: Remove the layout tab from translations because Layout Builder does not support translations yet β†’ Layout Builder was made to not support translations, because the existing functionality was not complete and broken in some ways. This is a plan/meta issue to flesh out a complete solution to Layout Builder translatability.

Translated layouts could mean 2 different things and could happen on 2 different levels

Layout Translation Types

  1. Synced-Layout Translations: In this case the actual layouts, the placements of blocks with in sections, would be the same across all languages. The strings of the block labels and the inline blocks(if translatable) would be able to be translated per language.
  2. Independent Layout Translations: In this case the layouts for each translation would be totally independent. They could have different blocks with different settings and have different sections. There would be no synchronization across translations. This scenario probably more of localization than translation

Translation Levels

  1. Bundle level defaults: This would be for Layout Defaults configured for each bundle, on the manage display. This could include different layouts for each view mode.
  2. Layout Overrides: These were be per entity translated layouts

Proposed resolution

Support Synced-Layout Translations on both the Bundle level defaults and Overrides level.
Child Issues
πŸ“Œ Allow synced Layout override Translations: translating labels and inline blocks Needs work
πŸ“Œ Allow synced Layout default Translations: translating labels and inline blocks Needs work
Both of these issue should allow translating strings and inline blocks in UI that shows the current layout.

Related: ✨ Add visibility control conditions to blocks within Layout Builder Needs work
would allow certain blocks to only appear on certain languages.

Independent Layout Translations: will not currently be support by core.

Remaining tasks

All of them.

User interface changes

Layouts will be translatable if configured like so.

API changes

TBD.

Data model changes

TBD.

Release notes snippet

TBD.

🌱 Plan
Status

Active

Version

11.0 πŸ”₯

Component

layout_builder.module

Created by

πŸ‡­πŸ‡ΊHungary GΓ‘bor Hojtsy Hungary

Live updates comments and jobs are added and updated live.
  • Blocks-Layouts

    Blocks and Layouts Initiative. See the #2811175 Add layouts to Drupal issue.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¬πŸ‡ͺGeorgia almador

    Are there any updates on this?

    I'm using the layout_builder_st module, but the core solution should be more acceptable.

Production build 0.71.5 2024