fix(i18n): add missing translation (#504)

This commit is contained in:
Joaquín Sánchez 2022-12-22 11:59:25 +01:00 committed by GitHub
parent 30e9c3d773
commit 4e846ca8f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 6 deletions

View file

@ -25,7 +25,7 @@ const description = ref(props.attachment.description ?? '')
<div absolute right-2 top-2>
<div
v-if="removable"
aria-label="Remove attachment"
:aria-label="$t('attachment.remove_label')"
hover:bg="gray/40" transition-100 p-1 rounded-5 cursor-pointer
:class="[isHydrated.value && isSmallScreen ? '' : 'op-0 group-hover:op-100hover:']"
mix-blend-difference
@ -36,7 +36,7 @@ const description = ref(props.attachment.description ?? '')
</div>
<div absolute right-2 bottom-2>
<button class="bg-black/75" text-white px2 py1 rounded-2 @click="isEditDialogOpen = true">
Edit
{{ $t('action.edit') }}
</button>
</div>
<ModalDialog
@ -48,16 +48,16 @@ const description = ref(props.attachment.description ?? '')
<div flex gap-5>
<div flex flex-col gap-2 justify-between>
<h1 id="edit-attachment" font-bold>
Description
{{ $t('attachment.edit_title') }}
</h1>
<div flex flex-col gap-2>
<textarea v-model="description" p-3 w-100 h-50 bg-base rounded-2 border-strong border-1 />
<button btn-outline @click="$emit('setDescription', description)">
Apply
{{ $t('action.apply') }}
</button>
</div>
<button btn-outline @click="isEditDialogOpen = false">
Close
{{ $t('action.close') }}
</button>
</div>
<StatusAttachment :attachment="attachment" w-full />