Add translations

This commit is contained in:
Angelina Filippova 2019-03-25 23:19:21 +05:00
parent cdeca18604
commit 1b8281040d
2 changed files with 16 additions and 7 deletions

View file

@ -189,5 +189,14 @@ export default {
sandbox: 'Force posts to be followers-only', sandbox: 'Force posts to be followers-only',
disableRemoteSubscription: 'Disallow following user from remote instances', disableRemoteSubscription: 'Disallow following user from remote instances',
disableAnySubscription: 'Disallow following user at all' disableAnySubscription: 'Disallow following user at all'
},
usersFilter: {
inputPlaceholder: 'Select filter',
byUserType: 'By user type',
local: 'Local',
external: 'External',
byStatus: 'By status',
active: 'Active',
deactivated: 'Deactivated'
} }
} }

View file

@ -3,8 +3,8 @@
v-model="value" v-model="value"
:collapse-tags="isMobile" :collapse-tags="isMobile"
:clearable="isDesktop" :clearable="isDesktop"
:placeholder="$t('usersFilter.inputPlaceholder')"
multiple multiple
placeholder="Select filter"
class="select-field" class="select-field"
@change="toggleFilters"> @change="toggleFilters">
<el-option-group <el-option-group
@ -25,21 +25,21 @@ export default {
data() { data() {
return { return {
filters: [{ filters: [{
label: 'By user type', label: this.$i18n.t('usersFilter.byUserType'),
options: [{ options: [{
label: 'Local', label: this.$i18n.t('usersFilter.local'),
value: 'localUsersOnly' value: 'localUsersOnly'
}, { }, {
label: 'External', label: this.$i18n.t('usersFilter.external'),
value: 'externalUsersOnly' value: 'externalUsersOnly'
}] }]
}, { }, {
label: 'By status', label: this.$i18n.t('usersFilter.byStatus'),
options: [{ options: [{
label: 'Active', label: this.$i18n.t('usersFilter.active'),
value: 'activeUsersOnly' value: 'activeUsersOnly'
}, { }, {
label: 'Deactivated', label: this.$i18n.t('usersFilter.deactivated'),
value: 'deactivatedUsersOnly' value: 'deactivatedUsersOnly'
}] }]
}], }],