The ajaxGenerate() of Translate.php does not handle taxonomy terms

Created on 28 June 2025, 4 days ago

Problem/Motivation

When language_source is set to 'tax' (taxonomy terms), this aspect of the configuration is skipped entirely, and the {{ lang }} placeholder in the prompt is never replaced. The AI receives a prompt with a literal {{ lang }} placeholder instead of the actual target language name.

Steps to reproduce (required for bugs, but not feature requests)

Enable AI CKEditor integration module;
- Go to /admin/config/content/formats/manage/full_html and add AI Assistant icon to WYSIWYG;
- In the Translate fieldset, use the following settings:

  • [√] Enabled
  • Use languages or taxonomy terms for language selection: Taxonomy term;
  • Choose default vocabulary for translation options: a vocab with language terms e.g. {French, German, Spanish};
  • [ ] Use term description for translation context (optional);
  • Change translation prompt: Translate the following text into {{ lang }};

Remaining tasks

A patch will follow shortly…

πŸ› Bug report
Status

Active

Version

1.1

Component

AI CKEditor

Created by

πŸ‡¨πŸ‡¦Canada bisonbleu

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