Clean up/add german translations

This commit is contained in:
mattwr18 2019-10-24 09:11:49 +02:00
parent b79770469f
commit cf8124fb2d
4 changed files with 55 additions and 45 deletions

View File

@ -1,39 +1,37 @@
<template> <template>
<ds-container> <ds-space :class="{ read: notification.read, notification: true }" margin-bottom="x-small">
<ds-space :class="{ read: notification.read, notification: true }" margin-bottom="x-small"> <client-only>
<client-only> <ds-space margin-bottom="x-small">
<ds-space margin-bottom="x-small"> <hc-user :user="from.author" :date-time="from.createdAt" :trunc="35" />
<hc-user :user="from.author" :date-time="from.createdAt" :trunc="35" /> </ds-space>
</ds-space> <ds-text class="reason-text-for-test" color="soft">
<ds-text class="reason-text-for-test" color="soft"> {{ $t(`notifications.reason.${notification.reason}`) }}
{{ $t(`notifications.reason.${notification.reason}`) }} </ds-text>
</ds-text> </client-only>
</client-only> <ds-space margin-bottom="x-small" />
<ds-space margin-bottom="x-small" /> <nuxt-link
<nuxt-link class="notification-mention-post"
class="notification-mention-post" :to="{ name: 'post-id-slug', params, ...hashParam }"
:to="{ name: 'post-id-slug', params, ...hashParam }" @click.native="$emit('read')"
@click.native="$emit('read')" >
> <ds-space margin-bottom="x-small">
<ds-space margin-bottom="x-small"> <ds-card
<ds-card :header="from.title || from.post.title"
:header="from.title || from.post.title" hover
hover space="x-small"
space="x-small" class="notifications-card"
class="notifications-card" >
> <ds-space margin-bottom="x-small" />
<ds-space margin-bottom="x-small" /> <div>
<div> <span v-if="isComment" class="comment-notification-header">
<span v-if="isComment" class="comment-notification-header"> {{ $t(`notifications.comment`) }}:
{{ $t(`notifications.comment`) }}: </span>
</span> {{ from.contentExcerpt | removeHtml }}
{{ from.contentExcerpt | removeHtml }} </div>
</div> </ds-card>
</ds-card> </ds-space>
</ds-space> </nuxt-link>
</nuxt-link> </ds-space>
</ds-space>
</ds-container>
</template> </template>
<script> <script>

View File

@ -175,7 +175,16 @@
"mentioned_in_comment": "Hat dich in einem Kommentar erwähnt …", "mentioned_in_comment": "Hat dich in einem Kommentar erwähnt …",
"commented_on_post": "Hat deinen Beitrag kommentiert …" "commented_on_post": "Hat deinen Beitrag kommentiert …"
}, },
"comment": "Kommentar" "comment": "Kommentar",
"title": "Benachrichtigungen",
"post": "Beitrag",
"user": "Benutzer",
"content": "Inhalt",
"sortingLabel": {
"all": "Alle",
"read": "Lesen ",
"unread": "Ungelesen"
}
}, },
"search": { "search": {
"placeholder": "Suchen", "placeholder": "Suchen",

View File

@ -178,11 +178,14 @@
}, },
"comment": "Comment", "comment": "Comment",
"title": "Notifications", "title": "Notifications",
"page": "All notifications", "post": "Post",
"createdAt": "Notification created at",
"type": "Type",
"user": "User", "user": "User",
"content": "Content" "content": "Content",
"sortingLabel": {
"all": "All",
"read": "Read",
"unread": "Unread"
}
}, },
"search": { "search": {
"placeholder": "Search", "placeholder": "Search",

View File

@ -99,11 +99,11 @@ export default {
data() { data() {
return { return {
selectedNotifications: [], selectedNotifications: [],
selected: 'All', selected: this.$t('notifications.sortingLabel.all'),
sortingOptions: [ sortingOptions: [
{ label: 'All', value: null }, { label: this.$t('notifications.sortingLabel.all'), value: null },
{ label: 'Read', value: true }, { label: this.$t('notifications.sortingLabel.read'), value: true },
{ label: 'Unread', value: false }, { label: this.$t('notifications.sortingLabel.unread'), value: false },
], ],
nofiticationRead: null, nofiticationRead: null,
} }
@ -112,7 +112,7 @@ export default {
fields() { fields() {
return { return {
user: this.$t('notifications.user'), user: this.$t('notifications.user'),
post: this.$t('notifications.type'), post: this.$t('notifications.post'),
content: this.$t('notifications.content'), content: this.$t('notifications.content'),
} }
}, },