Currently section translations are not saved until they are finally published. Thus, leaving the editor before publishing results in the contents being discarded without any signal.
This ticket proposes to show a warning when the user leaves the editor:
- A system alert will be used for simplicity.
- The alert will be shown only when the user has made a contribution to the translation. That is, if the user gets to an empty translation and leaves it without adding a sentence to it, the alert will not be shown.
- The alert will be shown (when it applies) in reaction to any mechanism to leave the editor: back arrow, device/browser back button, closing the tab, etc.
-- !!Pending: not working when using the arrow on top to go back!!
**Details for the alert:**
Browsers provide default messaging:
{F33956469, size=full}
___
Once autosaving is supported in the future, the alert will be only shown when auto-save had not enough time to save all the changes (as it happens in Content Translation), and the text will be updated.