Translate: use prompt entities instead of custom configurations
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3549153. --> Reported by: [valthebald](https://www.drupal.org/user/239562) Related to !938 !918 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>For historical reasons, ai_translate stores its prompts in a custom configuration (ai_translate.settings) together with other settings.</p> <p>Switch to AiPrompt entities for storing default and per-language translation prompts would simplify settings schema, as well as the logic in AiSettingsForm and selecting correct prompt for selecting from language to language.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>1. Use AiPrompts with predefined IDs (something like ai_translate-default, ai_translate.de.any, ai_translate.any.de, ai_translate.en.fr?)<br> 2. Have only default prompt on module install.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>1. Change the logic<br> 2. Write update hook</p> <h3>Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)</h3> <p>Marking as release blocker because suggested schema change affects contrib modules.</p>
issue