translated usermenu

This commit is contained in:
Grzegorz Leoniec 2018-12-18 12:33:11 +01:00
parent ee6bb7dc2d
commit 4bb2d81fb0
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377
3 changed files with 25 additions and 7 deletions

View File

@ -36,7 +36,7 @@
style="padding-top: .5rem; padding-bottom: .5rem;"
@mouseover="popoverMouseEnter"
@mouseleave="popoveMouseLeave">
Hallo <b>{{ user.name }}</b>
{{ $t('login.hello') }} <b>{{ user.name }}</b>
<ds-menu
:routes="routes"
:is-exact="isExact"
@ -52,7 +52,7 @@
</ds-menu>
<ds-space margin="xx-small" />
<nuxt-link :to="{ name: 'logout'}">
<ds-icon name="sign-out" /> Logout
<ds-icon name="sign-out" /> {{ $t('login.logout') }}
</nuxt-link>
</div>
</v-popover>
@ -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'
})

View File

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

View File

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