Layout builder fields not checked for translation enabled

Created on 28 April 2025, about 1 month ago

Problem/Motivation

For my team's project, we noticed that all fields attached to a node were checked for whether or not translation was enabled, but not fields that were used for our custom layout paragraphs setup.

Steps to reproduce

We have a field called Body Components that link to different paragraph types that can be referenced by a node.
Each paragraph type is configured, field by field, whether to be translatable or not at the "admin/config/regional/content-language" route.

When submitting a job for translation using TMGMT Microsoft, there were occasionally jobs that would fail because of a character limit error. I thought it might be related to this issue, but it was not: https://www.drupal.org/project/tmgmt_microsoft/issues/3149941 πŸ“Œ Allow to overcome character limit, translate only text Needs work

It looks like the actual problem is that some of the fields being translated cause database errors. When looking more closely, I can see that those fields are not enabled for translation. They do not display as translatable in the TMGMT settings form. But they are still being pulled in for translation.

Proposed resolution

Add an extra check for which fields are translatable before running a translation job?

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Core

Created by

πŸ‡ΊπŸ‡ΈUnited States ethomas08 SF Bay Area

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

Comments & Activities

Production build 0.71.5 2024