"Translate with AI" Button Not Appearing Due to Route Alteration Conflict with Other Modules

Created on 15 October 2024, 2 months ago

Problem/Motivation

I am encountering an issue where the "Translate with AI" button provided by the ai_translate module is not appearing on the content translation overview page. After investigating the issue, it seems to be caused by a route alteration conflict with other contrib modules that are also altering the content translation overview route (e.g., language_access).

Both modules are trying to alter the same route (entity.{entity_type}.content_translation_overview), and since ai_translate relies on altering the controller to inject the AI translation button, the changes from other contrib modules (like language_access) may override or prevent the AI functionality from being displayed.

Steps to reproduce

- Enable the ai_translate module and another contrib module that alters the same route (e.g., language_access).
- Go to the content translation overview page of any translatable entity.
- Observe that the "Translate with AI" button does not appear.

🐛 Bug report
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

Merge Requests

Comments & Activities

Production build 0.71.5 2024