From 01830b6ca22945b76378e6c8ee7fd1a87bc3ddad Mon Sep 17 00:00:00 2001 From: Florian Dupret Date: Sun, 14 Mar 2021 09:28:51 +0100 Subject: [PATCH] SiteMenu translatable --- frontend/src/components/UI/SiteMenu.vue | 10 +++++----- frontend/src/locales/messages/en.json | 3 +++ frontend/src/locales/messages/fr.json | 3 +++ 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/UI/SiteMenu.vue b/frontend/src/components/UI/SiteMenu.vue index a2adffdf1..33b336c05 100644 --- a/frontend/src/components/UI/SiteMenu.vue +++ b/frontend/src/components/UI/SiteMenu.vue @@ -54,31 +54,31 @@ export default { }, { icon: "mdi-calendar-week", - title: this.$i18n.t("meal-plan.dinner-this-week"), + title: this.$t("meal-plan.dinner-this-week"), nav: "/meal-plan/this-week", restricted: true, }, { icon: "mdi-calendar-today", - title: this.$i18n.t("meal-plan.dinner-today"), + title: this.$t("meal-plan.dinner-today"), nav: "/meal-plan/today", restricted: true, }, { icon: "mdi-calendar-multiselect", - title: this.$i18n.t("meal-plan.planner"), + title: this.$t("meal-plan.planner"), nav: "/meal-plan/planner", restricted: true, }, { icon: "mdi-account", - title: "Logout", + title: this.$t('auth.logout'), restricted: true, nav: "/logout", }, { icon: "mdi-cog", - title: this.$i18n.t("general.settings"), + title: this.$t("general.settings"), nav: "/admin", restricted: true, }, diff --git a/frontend/src/locales/messages/en.json b/frontend/src/locales/messages/en.json index af1f02397..a7ebe29a1 100644 --- a/frontend/src/locales/messages/en.json +++ b/frontend/src/locales/messages/en.json @@ -175,5 +175,8 @@ "title": "Chowdown", "description": "Migrate data from Chowdown" } + }, + "auth": { + "logout": "Logout" } } diff --git a/frontend/src/locales/messages/fr.json b/frontend/src/locales/messages/fr.json index e02a4105f..95c689ead 100644 --- a/frontend/src/locales/messages/fr.json +++ b/frontend/src/locales/messages/fr.json @@ -175,5 +175,8 @@ "title": "Chowdown", "description": "Importer des recettes depuis Chowdown" } + }, + "auth": { + "logout": "Déconnexion" } }