Some issues do not prevent a translation from publishing. However, we want to encourage users to create quality content which is less likely to be reverted. As part of the system to communicate errors and warnings in Content Translation (T189488), we want to make sure that the issues presented have been considered before publishing the page.
In order to support this we can show a confirmation dialog after the user clicks "Publish".
We'll show the dialog when there are issues in the translation that are detected (many may have been communicated early, others may be detected and displayed as part of the publish process). Issues that the user marked as resolved, won't be counted.
The message will inform the user about the existence of issues, encourage to review and surface the impact those issues may have to the community (the need to make the community more visible was identified in #new-editor-experiences ). Users can go back to editing, or publish the translation anyways.
# Design details
If there are pending issues that have not been addressed when the user clicks "publish", a confirmation dialog will be shown with the following info:
> **Your translation still has some potential issues**
>
> Please, consider checking the issues before publishing. Editors reviewing your contribution will appreciate the improvements.
>
> [Cancel] [Publish anyway]
{F15881126, width=50%}
- "Cancel" button will go back to editing, with the issues card showing the first error expanded.
- "Publish anyway" will proceed with the publishing process.
**Integration with the "Overwrite" dialog**
For cases where the translated page to be published already exists, currently a dialog is shown to warn users about the content overwrite (T190038). In such cases, instead of showing tow separate dialogs (publish with warnings, and content overwrite), a single dialog will be shown presenting both pieces of information. A version of the overwrite dialog with a customized message will be shown.
{F16934328, width=50%}
> **Overwrite existing page?**
>
> Your translation will overwrite the existing page with content that still has potential issues. Please consider checking the issues before publishing.
>
> [Cancel] [Publish anyway]