From d681c45a1e6172c0b56b74398501e312df5854fe Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Wed, 16 Apr 2025 10:53:55 +0200 Subject: [PATCH] Fixed deleted toast message --- components/calendar/form/DeleteCategory.vue | 2 +- i18n.config.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/components/calendar/form/DeleteCategory.vue b/components/calendar/form/DeleteCategory.vue index 5d3f406..096f49e 100644 --- a/components/calendar/form/DeleteCategory.vue +++ b/components/calendar/form/DeleteCategory.vue @@ -26,7 +26,7 @@ async function handleAction(): Promise { await deleteCategoryFromSkeleton() toast({ - title: t("entity.calendar.category.deletedToast.title", { category: categoryName }), + title: t("entity.category.deletedToast.title", { category: categoryName }), variant: "success", duration: ToastLifetime.MEDIUM }) diff --git a/i18n.config.ts b/i18n.config.ts index 40670e6..ec4eefb 100644 --- a/i18n.config.ts +++ b/i18n.config.ts @@ -110,6 +110,9 @@ export default defineI18nConfig(() => ({ title: "The category \"{category}\" has been successfuly updated.", titleError: "An error has occured and the category \"{category}\" wasn't updated.", }, + deletedToast: { + title: "The category \"{category}\" has been successfuly deleted.", + }, }, isLoading: "Loading in progress…", addDescription: "Add a description", @@ -429,6 +432,9 @@ export default defineI18nConfig(() => ({ title: "La catégorie \"{category}\" a été modifiée avec succès.", titleError: "Une erreur s'est produite et la catégorie \"{category}\" n'a pas pu être modifiée.", }, + deletedToast: { + title: "La catégorie \"{category}\" a été supprimée avec succès.", + }, }, isLoading: "Chargement en cours…", addDescription: "Ajouter une description",