From fba2ec318a5d25654fd3bcc7897874eed7f275ce Mon Sep 17 00:00:00 2001 From: bsilkyn Date: Sat, 18 May 2024 15:56:00 +0200 Subject: [PATCH] chore: translation fixes #356 --- frontend/src/assets/lang/app/en.json | 16 +++++++++------- frontend/src/assets/lang/app/nl.json | 16 +++++++++------- frontend/src/views/admin/UsersView.vue | 4 ++-- 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/frontend/src/assets/lang/app/en.json b/frontend/src/assets/lang/app/en.json index cd81aee7..9e86d683 100644 --- a/frontend/src/assets/lang/app/en.json +++ b/frontend/src/assets/lang/app/en.json @@ -245,6 +245,14 @@ "login": { "success": "You have successfully logged in.", "error": "An error occurred while logging in." + }, + "admin": { + "save": { + "error": { + "title": "Invalid save operation", + "detail": "You are trying to save an item without selecting it" + } + } } } }, @@ -286,13 +294,7 @@ }, "edit": "Edit", "cancel": "Cancel", - "save": { - "save": "Save", - "error": { - "title": "Invalid Save Operation", - "detail": "You are trying to save an item without selecting it." - } - }, + "save": "Save", "delete": "Delete", "users": { "title": "Users", diff --git a/frontend/src/assets/lang/app/nl.json b/frontend/src/assets/lang/app/nl.json index 4f3064fd..0571bdbe 100644 --- a/frontend/src/assets/lang/app/nl.json +++ b/frontend/src/assets/lang/app/nl.json @@ -242,6 +242,14 @@ "login": { "success": "Je bent succesvol ingelogd.", "error": "Er is een fout opgetreden tijdens het inloggen." + }, + "admin": { + "save": { + "error": { + "title": "Ongeldige Opsla Operatie", + "detail": "U probeert een item op te slaan zonder dit te selecteren." + } + } } } }, @@ -282,13 +290,7 @@ }, "edit": "Bewerken", "cancel": "Annuleer", - "save": { - "save": "Sla op", - "error": { - "title": "Ongeldige Opsla Operatie", - "detail": "U probeert een item op te slaan zonder dit te selecteren." - } - }, + "save": "Sla op", "delete": "Verwijder", "users": { "title": "Gebruikers", diff --git a/frontend/src/views/admin/UsersView.vue b/frontend/src/views/admin/UsersView.vue index 22e8e9b3..cfa95ee6 100644 --- a/frontend/src/views/admin/UsersView.vue +++ b/frontend/src/views/admin/UsersView.vue @@ -136,7 +136,7 @@ const saveItem = async (): Promise => { // update locally await dataTable.value.fetch(); } else { - addErrorMessage(t('admin.save.error.title'), t('admin.save.error.detail')); + addErrorMessage(t('toasts.admin.save.error.title'), t('toasts.admin.save.error.detail')); } // stop showing popup popupEdit.value = false; @@ -228,7 +228,7 @@ const saveItem = async (): Promise => {
- +