i18n (wip)

This commit is contained in:
Craig 2020-04-05 02:57:22 +00:00
parent bf51a3ff3a
commit 75f54db90e
15 changed files with 178 additions and 57 deletions

View file

@ -10,7 +10,13 @@
:class="[{ disabled: !admin }, { 'fa-lock-open': !locked }, { 'fa-lock': locked }, 'fas', 'lock']"
@click="toggleLock"
v-tooltip="{
content: admin ? (locked ? 'Unlock Room' : 'Lock Room') : locked ? 'Room Unlocked' : 'Room Locked',
content: admin
? locked
? $t('room.unlock')
: $t('room.lock')
: locked
? $t('room.unlocked')
: $t('room.locked'),
placement: 'bottom',
offset: 5,
boundariesElement: 'body',