The ajaxGenerate() of Translate.php does not handle taxonomy terms
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3532936. --> Reported by: [bisonbleu](https://www.drupal.org/user/549974) Related to !704 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>When language_source is set to 'tax' (taxonomy terms), this aspect of the configuration is skipped entirely, and the <code>{{ lang }}</code> placeholder in the prompt is never replaced. The AI receives a prompt with a literal <code>{{ lang }}</code> placeholder instead of the actual target language name.</p> <h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4> <p>- Enable <strong>AI CKEditor integration</strong> module;<br> - Go to /admin/config/content/formats/manage/full_html and add AI Assistant icon to WYSIWYG;<br> - In the <strong>Translate</strong> fieldset, use the following settings:</p> <ul> <li>[&radic;] Enabled</li> <li>Use languages or taxonomy terms for language selection: Taxonomy term;</li> <li>Choose default vocabulary for translation options: a vocab with language terms e.g. {French, German, Spanish};</li> <li>[ ] Use term description for translation context (optional);</li> <li>Change translation prompt: Translate the following text into {{ lang }};</li> </ul> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>A patch will follow shortly&hellip;</p>
issue