feat(i18n): translate vote result

This commit is contained in:
三咲智子 2022-12-05 02:58:21 +08:00
parent cd5881b210
commit f2a1cdaefe
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
3 changed files with 13 additions and 1 deletions

View file

@ -56,7 +56,9 @@ async function vote(e: Event) {
</div>
</template>
<div text-sm>
{{ poll.votersCount }} votes &middot; {{ poll.expired ? 'finished' : 'ends' }} {{ expiredTimeAgo }}
{{ $t('status.poll.count', [poll.votersCount]) }}
&middot;
{{ $t(poll.expired ? 'status.poll.finished' : 'status.poll.ends', [expiredTimeAgo]) }}
</div>
</div>
</template>