added locales to admin and settings

This commit is contained in:
Grzegorz Leoniec 2018-12-17 21:57:08 +01:00
parent 223eff2381
commit cb1815b560
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377
17 changed files with 81 additions and 57 deletions

View File

@ -1,7 +1,7 @@
<template>
<div>
<ds-heading tag="h1">
Administartion
{{ $t('admin.name') }}
</ds-heading>
<ds-flex gutter="small">
<ds-flex-item :width="{ base: '200px' }">
@ -21,35 +21,35 @@
<script>
export default {
data() {
return {
routes: [
computed: {
routes() {
return [
{
name: 'Dashboard',
name: this.$t('admin.dashboard.name'),
path: `/admin`
},
{
name: 'Users',
name: this.$t('admin.users.name'),
path: `/admin/users`
},
{
name: 'Organizations',
name: this.$t('admin.organizations.name'),
path: `/admin/organizations`
},
{
name: 'Pages',
name: this.$t('admin.pages.name'),
path: `/admin/pages`
},
{
name: 'Notifications',
name: this.$t('admin.notifications.name'),
path: `/admin/notifications`
},
{
name: 'Categories',
name: this.$t('admin.categories.name'),
path: `/admin/categories`
},
{
name: 'Tags',
name: this.$t('admin.tags.name'),
path: `/admin/tags`
},
{

View File

@ -1,11 +1,11 @@
<template>
<ds-card space="small">
<ds-heading tag="h3">
Themen / Kategorien
{{ $t('admin.categories.name') }}
</ds-heading>
<ds-table
:data="Category"
:fields="['icon', 'name', 'postCount']"
:fields="fields"
condensed
>
<template
@ -27,6 +27,18 @@ export default {
Category: []
}
},
computed: {
fields() {
return {
icon: ' ',
name: this.$t('admin.categories.categoryName'),
postCount: {
label: this.$t('admin.categories.postCount'),
align: 'right'
}
}
}
},
apollo: {
Category: {
query: gql(`

View File

@ -7,7 +7,7 @@
<ds-space margin="small">
<ds-number
:count="0"
label="Users"
:label="$t('admin.dashboard.users')"
size="x-large"
uppercase
>
@ -24,7 +24,7 @@
<ds-space margin="small">
<ds-number
:count="0"
label="Posts"
:label="$t('admin.dashboard.posts')"
size="x-large"
uppercase
>
@ -41,7 +41,7 @@
<ds-space margin="small">
<ds-number
:count="0"
label="Comments"
:label="$t('admin.dashboard.comments')"
size="x-large"
uppercase
>
@ -58,7 +58,7 @@
<ds-space margin="small">
<ds-number
:count="0"
label="Notifications"
:label="$t('admin.dashboard.notifications')"
size="x-large"
uppercase
>
@ -75,7 +75,7 @@
<ds-space margin="small">
<ds-number
:count="0"
label="Organization"
:label="$t('admin.dashboard.organizations')"
size="x-large"
uppercase
>
@ -92,7 +92,7 @@
<ds-space margin="small">
<ds-number
:count="0"
label="Projects"
:label="$t('admin.dashboard.projects')"
size="x-large"
uppercase
>
@ -109,7 +109,7 @@
<ds-space margin="small">
<ds-number
:count="0"
label="Open Invites"
:label="$t('admin.dashboard.invites')"
size="x-large"
uppercase
>
@ -126,7 +126,7 @@
<ds-space margin="small">
<ds-number
:count="0"
label="Follows"
:label="$t('admin.dashboard.follows')"
size="x-large"
uppercase
>
@ -143,7 +143,7 @@
<ds-space margin="small">
<ds-number
:count="0"
label="Shouts"
:label="$t('admin.dashboard.shouts')"
size="x-large"
uppercase
>

View File

@ -1,7 +1,7 @@
<template>
<ds-card>
<ds-space margin="small">
Notifications...
</ds-space>
<ds-card space="small">
<ds-heading tag="h3">
{{ $t('admin.notifications.name') }}
</ds-heading>
</ds-card>
</template>

View File

@ -1,7 +1,7 @@
<template>
<ds-card>
<ds-space margin="small">
Organizations...
{{ $t('admin.organizations.name') }}
</ds-space>
</ds-card>
</template>

View File

@ -1,7 +1,7 @@
<template>
<ds-card>
<ds-space margin="small">
Pages...
{{ $t('admin.pages.name') }}
</ds-space>
</ds-card>
</template>

View File

@ -1,7 +1,7 @@
<template>
<ds-card>
<ds-space margin="small">
Settings...
{{ $t('admin.settings.name') }}
</ds-space>
</ds-card>
</template>

View File

@ -1,7 +1,7 @@
<template>
<ds-card space="small">
<ds-heading tag="h3">
Tags
{{ $t('admin.tags.name') }}
</ds-heading>
<ds-table
:data="Tag"
@ -24,12 +24,22 @@ import gql from 'graphql-tag'
export default {
data() {
return {
Tag: [],
fields: {
id: { label: '#' },
name: { label: 'Name' },
taggedCountUnique: { label: 'Nutzer' },
taggedCount: { label: 'Beiträge' }
Tag: []
}
},
computed: {
fields() {
return {
id: '#',
name: 'Name',
taggedCountUnique: {
label: this.$t('admin.tags.tagCountUnique'),
align: 'right'
},
taggedCount: {
label: this.$t('admin.tags.tagCount'),
align: 'right'
}
}
}
},

View File

@ -1,7 +1,7 @@
<template>
<ds-card>
<ds-space margin="small">
Users...
{{ $t('admin.users.name') }}
</ds-space>
</ds-card>
</template>

View File

@ -1,7 +1,7 @@
<template>
<div>
<ds-heading tag="h1">
Settings
{{ $t('settings.name') }}
</ds-heading>
<ds-flex gutter="small">
<ds-flex-item :width="{ base: '200px' }">
@ -21,36 +21,36 @@
<script>
export default {
data() {
return {
routes: [
computed: {
routes() {
return [
{
name: 'Your Data',
name: this.$t('settings.data.name'),
path: `/settings`
},
{
name: 'Password',
path: `/settings/password`
name: this.$t('settings.security.name'),
path: `/settings/security`
},
{
name: 'Invites',
name: this.$t('settings.invites.name'),
path: `/settings/invites`
},
{
name: 'Data Download',
name: this.$t('settings.download.name'),
path: `/settings/data-download`
},
{
name: 'Delete Account',
name: this.$t('settings.delete.name'),
path: `/settings/delete-account`
},
{
name: 'My Organizations',
name: this.$t('settings.organizations.name'),
path: `/settings/my-organizations`
},
{
name: 'Settings',
path: `/settings/settings`
name: this.$t('settings.languages.name'),
path: `/settings/languages`
}
]
}

View File

@ -1,7 +1,7 @@
<template>
<ds-card>
<ds-space margin="small">
Download my Data...
{{ $t('settings.download.name') }}
</ds-space>
</ds-card>
</template>

View File

@ -1,7 +1,7 @@
<template>
<ds-card>
<ds-space margin="small">
Delete my Account...
{{ $t('settings.delete.name') }}
</ds-space>
</ds-card>
</template>

View File

@ -1,5 +1,7 @@
<template>
<ds-card>
<p>My Data...</p>
<ds-space margin="small">
{{ $t('settings.data.name') }}
</ds-space>
</ds-card>
</template>

View File

@ -1,7 +1,7 @@
<template>
<ds-card>
<ds-space margin="small">
Invites...
{{ $t('settings.invites.name') }}
</ds-space>
</ds-card>
</template>

View File

@ -1,7 +1,7 @@
<template>
<ds-card>
<ds-space margin="small">
Settings...
{{ $t('settings.languages.name') }}
</ds-space>
</ds-card>
</template>

View File

@ -1,7 +1,7 @@
<template>
<ds-card>
<ds-space margin="small">
My Organizations...
{{ $t('settings.organizations.name') }}
</ds-space>
</ds-card>
</template>

View File

@ -1,7 +1,7 @@
<template>
<ds-card>
<ds-space margin="small">
Change my Password...
{{ $t('settings.security.name') }}
</ds-space>
</ds-card>
</template>