feat(i18n): plurals support (#278)
This commit is contained in:
parent
0f7de38c24
commit
c4cf3fb371
17 changed files with 234 additions and 91 deletions
|
@ -10,7 +10,8 @@ function toPercentage(num: number) {
|
|||
const percentage = 100 * num
|
||||
return `${percentage.toFixed(1).replace(/\.?0+$/, '')}%`
|
||||
}
|
||||
const expiredTimeAgo = useTimeAgo(poll.expiresAt!)
|
||||
const timeAgoOptions = useTimeAgoOptions()
|
||||
const expiredTimeAgo = useTimeAgo(poll.expiresAt!, timeAgoOptions)
|
||||
|
||||
const masto = useMasto()
|
||||
async function vote(e: Event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue