diff --git a/client/src/components/MainNavigationBar.vue b/client/src/components/MainNavigationBar.vue index ac61c923..55f3d4d7 100644 --- a/client/src/components/MainNavigationBar.vue +++ b/client/src/components/MainNavigationBar.vue @@ -11,6 +11,7 @@ import { useUserStore } from "@/stores/user"; import type { DropdownListItem } from "@/types"; import type { Component } from "vue"; import { onMounted, reactive } from "vue"; +import { useI18n } from "vue-i18n"; import { useRoute, useRouter } from "vue-router"; type DropdownActions = "logout" | "settings"; @@ -25,6 +26,7 @@ const route = useRoute(); const router = useRouter(); const userStore = useUserStore(); const appStore = useAppStore(); +const { t } = useI18n(); const learningPathStore = useLearningPathStore(); const state = reactive({ showMenu: false }); @@ -77,14 +79,14 @@ onMounted(() => { const profileDropdownData: DropdownListItem[] = [ { - title: "Kontoeinstellungen", + title: t("mainNavigation.settings"), icon: IconSettings as Component, data: { action: "settings", }, }, { - title: "Abmelden", + title: t("mainNavigation.logout"), icon: IconLogout as Component, data: { action: "logout", @@ -159,7 +161,7 @@ const profileDropdownData: DropdownListItem[] = [ class="nav-item" :class="{ 'nav-item--active': isInRoutePath(['/learn']) }" > - Lernpfad + {{ $t("general.LearningPath") }} - Mediathek + {{ $t("mediaLibrary.title") }} { @click="clickLink('/profile')" > - Kontoeinstellungen + {{ $t("mainNavigation.settings") }} @@ -53,7 +53,7 @@ const clickLink = (to: string) => { @@ -82,7 +82,7 @@ const clickLink = (to: string) => { @click="userStore.handleLogout()" > - Abmelden + {{ $t("mainNavigation.logout") }} diff --git a/client/src/locales/de.json b/client/src/locales/de.json index 13be5e12..39e266c7 100644 --- a/client/src/locales/de.json +++ b/client/src/locales/de.json @@ -9,8 +9,13 @@ "backCapitalized": "@.capitalize:general.back", "save": "Speichern", "learningUnit": "Lerneinheit", + "learningPath": "Lernpfad", "show": "Anschauen" }, + "mainNavigation": { + "logout": "Abmelden", + "settings": "Kontoeinstellungen" + }, "dashboard": { "welcome": "Willkommen, {name}" },