From c70f903996997821373604faecafa03d608188e1 Mon Sep 17 00:00:00 2001 From: Andrea Vos Date: Sun, 8 Sep 2024 15:34:41 +0200 Subject: [PATCH] #309 PR feedback --- components/PersistentForm.vue | 4 ---- locale/_base/translations.suml | 7 ++++--- locale/en/translations.suml | 7 ++++--- locale/pl/translations.suml | 6 +++--- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/components/PersistentForm.vue b/components/PersistentForm.vue index ac0614c24..ebf431a3b 100644 --- a/components/PersistentForm.vue +++ b/components/PersistentForm.vue @@ -50,10 +50,6 @@ export default Vue.extend({ }, }, async mounted() { - if (!process.browser) { - return; - } - const storedRaw = localStorage.getItem(this.storageKey); if (!storedRaw) { return; diff --git a/locale/_base/translations.suml b/locale/_base/translations.suml index a5f682cd0..ba74cc628 100644 --- a/locale/_base/translations.suml +++ b/locale/_base/translations.suml @@ -1783,8 +1783,9 @@ form: persistent: present: question: > - It looks like you've left the editor without saving your changes. - There's a draft saved on your device on %time%. Would you like to load it? - load: 'Load draft' + It looks like you have unsaved changes. + There’s a draft saved on your device on %time%. + Would you like to restore it? + load: 'Restore draft' abandon: 'Abandon draft' saved: 'Draft saved in your browser at %time%' diff --git a/locale/en/translations.suml b/locale/en/translations.suml index 234189a6c..79711c3de 100644 --- a/locale/en/translations.suml +++ b/locale/en/translations.suml @@ -2003,8 +2003,9 @@ form: persistent: present: question: > - It looks like you've left the editor without saving your changes. - There's a draft saved on your device on %time%. Would you like to load it? - load: 'Load draft' + It looks like you have unsaved changes. + There’s a draft saved on your device on %time%. + Would you like to restore it? + load: 'Restore draft' abandon: 'Abandon draft' saved: 'Draft saved in your browser at %time%' diff --git a/locale/pl/translations.suml b/locale/pl/translations.suml index 13dadc09f..04e50996c 100644 --- a/locale/pl/translations.suml +++ b/locale/pl/translations.suml @@ -2369,8 +2369,8 @@ form: persistent: present: question: > - Wygląda na to, że opuściłxś edytor bez zapisywania zmian. - Na twoim urządzeniu jest zapisany szkic z %time%. Czy chcesz go załadować? - load: 'Załaduj szkic' + Wygląda na to, że masz niezapisane zmiany. + Na twoim urządzeniu znajduje szkic z %time%. Czy chcesz go przywrócić? + load: 'Przywróć szkic' abandon: 'Porzuć szkic' saved: 'Szkic zapisany w twojej przeglądarce o %time%'