Error on the Create Translation screen for custom menu links
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3516814. --> Reported by: [s-jack](https://www.drupal.org/user/655916) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Error displayed when I tried to translate the custom menu link.<br> (/en/admin/structure/menu/item/1/edit/translations?destination=/admin/structure/menu/manage/main)</p> <blockquote><p>Error message<br> Please set a default provider &amp; model for the text translation the AI module settings.</p></blockquote> <blockquote><p>Error message<br> Warning: Undefined array key "#entity" in Drupal\ai_translate\Form\AiTranslateForm-&gt;buildForm() (line 85 of modules/contrib/ai/modules/ai_translate/src/Form/AiTranslateForm.php).</p></blockquote> <p>I have only tried a few AI modules.<br> The status screen also shows the following errors</p> <blockquote><p>AI Default Translate text Provider<br> Please provide a default provider for the text translation<br> The AI Translate module needs the default Translate Text provider to be configured in the AI module settings. Please configure a default Chat AI system.</p></blockquote> <p>Env: Drupal 10.4.5</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3> > Related issue: [Issue #3513409](https://www.drupal.org/node/3513409)
issue