Ai Translate - translateContent

Created on 4 October 2024, about 2 months ago

Problem/Motivation

Integrating https://www.drupal.org/project/auto_translation with AI Translate using translateContent function i get this error: Error: Call to undefined method Drupal\Core\Language\Language::id() in Drupal\ai_translate\Controller\AiTranslateController->translateContent() (line 167 of modules/contrib/ai/modules/ai_translate/src/Controller/AiTranslateController.php).

Steps to reproduce

install Ai Translate and Auto Translation module and try to add a translation to a node after configuring a provider

Proposed resolution

change $langFrom->id(), $langTo->id() to $langFrom->getId(), $langTo->getId()

Remaining tasks

Add patch or release new version of AI Translate with the fix

User interface changes

NA

API changes

NA

Data model changes

NA

🐛 Bug report
Status

Active

Version

1.0

Component

Other Submodules

Created by

🇮🇹Italy bigbabert Milano, Italy

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