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