AI Translate Module Leaves Fields Empty When No Translation is Found

Created on 23 October 2024, 23 days ago

Problem/Motivation

When using the AI Translate feature in Drupal, if the AI does not find any content to translate for certain fields, those fields are left empty in the translated version of the node.

Typically, during manual translation of a node, fields from the "source" language are pre-filled, allowing users to modify what they want. The desired behavior is to maintain this consistency when using AI translation as well. That is, if a field cannot be translated, it should retain the values from the source language instead of being left blank.

Steps to reproduce

- Create a node with fields such as media, links, and address.
- Use AI Translate to translate the node.
- Observe that fields like media, links, and address are left empty in the translated version.

Proposed resolution

If the AI translation process does not generate a translation for specific fields, the values from the source language should be copied into the corresponding fields in the translated node. This ensures that untranslated fields are not left blank.

Feature request
Status

Active

Version

1.0

Component

Other Submodules

Created by

🇧🇪Belgium arwillame

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

Comments & Activities

Production build 0.71.5 2024