From 4bb2d81fb0bfb07883a4bf83a9c7f2b34d90cedd Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Tue, 18 Dec 2018 12:33:11 +0100 Subject: [PATCH] translated usermenu --- layouts/default.vue | 10 +++++----- locales/de.json | 11 ++++++++++- locales/en.json | 11 ++++++++++- 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/layouts/default.vue b/layouts/default.vue index 4db556779..658930891 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -36,7 +36,7 @@ style="padding-top: .5rem; padding-bottom: .5rem;" @mouseover="popoverMouseEnter" @mouseleave="popoveMouseLeave"> - Hallo {{ user.name }} + {{ $t('login.hello') }} {{ user.name }} - Logout + {{ $t('login.logout') }} @@ -96,19 +96,19 @@ export default { } let routes = [ { - name: 'Mein Profil', + name: this.$t('profile.name'), path: `/profile/${this.user.slug}`, icon: 'user' }, { - name: 'Einstellungen', + name: this.$t('settings.name'), path: `/settings`, icon: 'cogs' } ] if (this.isAdmin) { routes.push({ - name: 'Systemverwaltung', + name: this.$t('admin.name'), path: `/admin`, icon: 'shield' }) diff --git a/locales/de.json b/locales/de.json index 2061a860f..8e460000c 100644 --- a/locales/de.json +++ b/locales/de.json @@ -2,9 +2,18 @@ "login": { "copy": "Wenn Du ein Konto bei Human Connection hast, melde Dich bitte hier an.", "login": "Einloggen", + "logout": "Ausloggen", "email": "Deine E-Mail", "password": "Dein Password", - "moreInfo": "Was ist Human Connection?" + "moreInfo": "Was ist Human Connection?", + "hello": "Hallo" + }, + "profile": { + "name": "Mein Profil", + "memberSince": "Mitglied seit", + "follow": "Folgen", + "followers": "Folgen", + "following": "Folgt" }, "settings": { "name": "Einstellungen", diff --git a/locales/en.json b/locales/en.json index 2dbbac369..d8f896d83 100644 --- a/locales/en.json +++ b/locales/en.json @@ -2,9 +2,18 @@ "login": { "copy": "If you already have an human-connection account, login here.", "login": "Login", + "logout": "Logout", "email": "Your Email", "password": "Your Password", - "moreInfo": "What is Human Connection?" + "moreInfo": "What is Human Connection?", + "hello": "Hello" + }, + "profile": { + "name": "My Profile", + "memberSince": "Member since", + "follow": "Follow", + "followers": "Followers", + "following": "Following" }, "settings": { "name": "Settings",