Move the translations to a separate submodule (ai_translate from the ai module)

Created on 8 July 2024, 5 months ago
Updated 12 July 2024, 4 months ago

Problem/Motivation

There's two issues.
1 There is a new /ai module that will provide LLM's so that you in your code can use AI regardless of which AI is chosen in the settings.
(and this module is bound to OPENAI)
2 I only need the feature of translations of this module I prefer not to have the rest.

Proposed resolution

I ported the translation link and functionality to the AI module as a submodule: Check this issue here: https://www.drupal.org/project/ai/issues/3457200#comment-15674380 ai_translate submodule Needs work

Remaining tasks

You could strip that functionality from your code here and be dependant on the ai module (ai_translate).

User interface changes

The user interface would change to "Translate using AI" (because in the back it could use Openai, or Mistral or ...)

Code changes

Make sure to check the code in the issue
https://www.drupal.org/project/ai/issues/3457200#comment-15674380 ai_translate submodule Needs work
the call to openai is stripped and abstracted to a "AI" call using the provided AI service.

Feature request
Status

Active

Version

2.1

Component

Code

Created by

🇧🇪Belgium wouters_f Leuven

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

Comments & Activities

Production build 0.71.5 2024