feat: poll plural support (#375)

This commit is contained in:
Joaquín Sánchez 2022-12-08 11:54:34 +01:00 committed by GitHub
parent 00b835444b
commit 2fed89be9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 8 deletions

View file

@ -57,7 +57,7 @@ async function vote(e: Event) {
</div>
</template>
<div text-sm>
{{ $t('status.poll.count', [poll.votersCount]) }}
{{ $t('status.poll.count', poll.votersCount ?? 0) }}
&middot;
<CommonTooltip :content="expiredTimeFormatted" class="inline-block" placement="right">
<time :datetime="poll.expiresAt!">{{ $t(poll.expired ? 'status.poll.finished' : 'status.poll.ends', [expiredTimeAgo]) }}</time>