Allow tokens in prompts in ai submodules (ai_translate, aI_ckeditor, ai_content_suggestions)
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3499910. -->
Reported by: [wouters_f](https://www.drupal.org/user/721548)
Related to !410
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Make it so that similar to <a href="https://www.drupal.org/project/ai/issues/3488891#comment-15942883">https://www.drupal.org/project/ai/issues/3488891#comment-15942883</a><br>
Tokens can be used in the prompt fields for these submodules.<br>
I might later split this issue if i bump into issues. </p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Allow tokens in prompts. </p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>- Allow tokens in prompt config fields<br>
- Do the token replacement</p>
<h3>Scope</h3>
<ul>
<li>ai_translate</li>
<li>ai_content_suggestions</li>
<li>ai_ckeditor</li>
</ul>
<h3>Timeline</h3>
<p>I will first wait for some other issues to be merged to prevent many merge conflicts.<br>
These submodules have many prompt related changes ready that will be merged any minute now. </p>
> Related issue: [Issue #3497822](https://www.drupal.org/node/3497822)
> Related issue: [Issue #3493534](https://www.drupal.org/node/3493534)
issue