feat(i18n): plurals support (#278)
This commit is contained in:
parent
0f7de38c24
commit
c4cf3fb371
17 changed files with 234 additions and 91 deletions
|
@ -10,6 +10,7 @@ const { data: statusEdits } = useAsyncData(`status:history:${status.id}`, () =>
|
|||
const showHistory = (edit: StatusEdit) => {
|
||||
openEditHistoryDialog(edit)
|
||||
}
|
||||
const timeAgoOptions = useTimeAgoOptions()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -22,7 +23,7 @@ const showHistory = (edit: StatusEdit) => {
|
|||
>
|
||||
{{ getDisplayName(edit.account) }}
|
||||
<i18n-t :keypath="`status_history.${idx === statusEdits.length - 1 ? 'created' : 'edited'}`">
|
||||
{{ useTimeAgo(edit.createdAt, { showSecond: true }).value }}
|
||||
{{ useTimeAgo(edit.createdAt, timeAgoOptions).value }}
|
||||
</i18n-t>
|
||||
</CommonDropdownItem>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue