mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
Provide translations for filter menu
This commit is contained in:
parent
f3b088f862
commit
ad48264a64
@ -1,21 +1,38 @@
|
||||
<template>
|
||||
<ds-card>
|
||||
<ds-form>
|
||||
<ds-radio buttons v-model="filter" label="Filter" :options="['friends', 'friends-of-a-friend', 'all']" />
|
||||
</ds-form>
|
||||
<ds-radio
|
||||
v-model="filter"
|
||||
buttons
|
||||
label="Filter"
|
||||
label-prop="text"
|
||||
@input="handleInput"
|
||||
:options="options"
|
||||
/>
|
||||
</ds-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Dropdown from '~/components/Dropdown'
|
||||
export default {
|
||||
components: {
|
||||
Dropdown
|
||||
},
|
||||
data() {
|
||||
// We have to fix styleguide here. It uses .includes wich will always be
|
||||
// false for arrays of objects.
|
||||
return {
|
||||
filter: 'all'
|
||||
filter: { value: 'all', text: this.$t('filter-menu.options.all') },
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
options() {
|
||||
return [
|
||||
{ value: 'friends', text: this.$t('filter-menu.options.friends') },
|
||||
{ value: 'friends-of-a-friend', text: this.$t('filter-menu.options.friends-of-a-friend') },
|
||||
{ value: 'all', text: this.$t('filter-menu.options.all') },
|
||||
]
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
handleInput(e) {
|
||||
// console.log('handleInput', e)
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -1,4 +1,11 @@
|
||||
{
|
||||
"filter-menu": {
|
||||
"options": {
|
||||
"friends": "Nur Freunde",
|
||||
"friends-of-a-friend": "Freunde von Freunden",
|
||||
"all": "Alle"
|
||||
}
|
||||
},
|
||||
"login": {
|
||||
"copy": "Wenn Du bereits ein Konto bei Human Connection hast, melde Dich bitte hier an.",
|
||||
"login": "Einloggen",
|
||||
|
||||
@ -1,4 +1,11 @@
|
||||
{
|
||||
"filter-menu": {
|
||||
"options": {
|
||||
"friends": "Only friends",
|
||||
"friends-of-a-friend": "Friends of a friend",
|
||||
"all": "All"
|
||||
}
|
||||
},
|
||||
"login": {
|
||||
"copy": "If you already have a human-connection account, login here.",
|
||||
"login": "Login",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user