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",