i18n: improve

This commit is contained in:
三咲智子 2022-12-01 21:59:28 +08:00
parent 335fc9f64b
commit 3485208929
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
7 changed files with 40 additions and 19 deletions

View file

@ -21,8 +21,9 @@ const showHistory = (edit: StatusEdit) => {
@click="showHistory(edit)"
>
{{ getDisplayName(edit.account) }}
{{ idx === statusEdits.length - 1 ? 'created' : 'edited' }}
{{ useTimeAgo(edit.createdAt, { showSecond: true }).value }}
<i18n-t :keypath="`status_history.${idx === statusEdits.length - 1 ? 'created' : 'edited'}`">
{{ useTimeAgo(edit.createdAt, { showSecond: true }).value }}
</i18n-t>
</CommonDropdownItem>
</template>
<template v-else>