Pluralization for post(s)

Srsly need a i18n lib soon
This commit is contained in:
Lim Chee Aun 2023-10-17 14:56:57 +08:00
parent e3f58442aa
commit 1b0a77dfae

View file

@ -643,7 +643,9 @@ function AccountInfo({
>
<div>
{postingStats.daysSinceLastPost < 365
? `Last ${postingStats.total} posts in the past
? `Last ${postingStats.total} post${
postingStats.total > 1 ? 's' : ''
} in the past
${postingStats.daysSinceLastPost} day${
postingStats.daysSinceLastPost > 1 ? 's' : ''
}`