diff --git a/src/editor/extensions/ext-storage/ext-storage.js b/src/editor/extensions/ext-storage/ext-storage.js index 9495c890..d75e985e 100644 --- a/src/editor/extensions/ext-storage/ext-storage.js +++ b/src/editor/extensions/ext-storage/ext-storage.js @@ -83,6 +83,7 @@ export default { const storageBox = document.createElement('se-storage-dialog'); storageBox.setAttribute('id', 'se-storage-dialog'); document.body.append(storageBox); + storageBox.init(svgEditor.i18next); // manage the change in the storageDialog diff --git a/src/editor/extensions/ext-storage/storageDialog.js b/src/editor/extensions/ext-storage/storageDialog.js index 92f4a2af..93333678 100644 --- a/src/editor/extensions/ext-storage/storageDialog.js +++ b/src/editor/extensions/ext-storage/storageDialog.js @@ -1,15 +1,5 @@ /* eslint-disable max-len */ -/* globals svgEditor */ const template = document.createElement('template'); -const notification = svgEditor.i18next.t('notification.editorPreferencesMsg'); -const prefs_and_content = svgEditor.i18next.t('properties.prefs_and_content'); -const prefs_only = svgEditor.i18next.t('properties.prefs_only'); -const no_prefs_or_content = svgEditor.i18next.t('properties.no_prefs_or_content'); -const remember_this_choice = svgEditor.i18next.t('tools.remember_this_choice'); -const remember_this_choice_title = svgEditor.i18next.t('tools.remember_this_choice_title'); -const ok = svgEditor.i18next.t('common.ok'); -const cancel = svgEditor.i18next.t('common.cancel'); -// eslint-disable-next-line no-unsanitized/property template.innerHTML = `