(ai_translate) Translating unpublished content creates a published translation, which I can't delete
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3494285. -->
Reported by: [dunx](https://www.drupal.org/user/445642)
Related to !379 !342 !341
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<ol>
<li>When I create unpublished content in one language and use the AI Translate sub-module to generate it in a different language, the content is immediately published.</li>
<li>I can delete that published content, but when I return to the Translations tab, the content is still there.</li>
<li>Normally I can delete a translation even if it's unpublished. When it has been translated by AI Translate, there is a message to say I can only delete published content, so this seems to be a conscious decision.<br>
<blockquote>The "Delete translation" action is only available for published translations.</blockquote>
</li>
</ol>
<p>These three issues seem related given the intentional message, so raising as a single issue.</p>
<p>If I manually unpublished that AI translated content and come back to the Translate tab, I can no longer delete it and the Translate tab looks like this (ignore the irrelevant checkbox here):<br>
<img src="https://www.drupal.org/files/issues/2024-12-16/ai_translated.png" alt="Translate tab when used with AI Translate"></p>
<p>When I translate content "manually" (old school!) using Drupal core, I can delete unpublished content.</p>
<p>When using Core Translate the Translate tab looks like this:<br>
<img src="https://www.drupal.org/files/issues/2024-12-16/core_translated.png" alt="Translate tab when used with Core Translate"></p>
<p>This is on a Unami basic install. I am not using Drupal Workflows at this point. </p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<ol>
<li>Create content in English.</li>
<li>Save as unpublished.</li>
<li>Hit the Translate tab.</li>
<li>Click the auto button for Spanish.</li>
<li>The content is translated but is automatically published.</li>
<li>If I delete that published AI translation, I see a warning and confirm the deletion of the Spanish translation, but when I return to the Translate tab, that translation is still listed and has not been deleted.</li>
</ol>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Mirror what core does with regards to status and the ability to delete revisions.</p>
<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>
issue