Pluralization for post(s)

Srsly need a i18n lib soon
pull/266/head
Lim Chee Aun 2023-10-17 14:56:57 +08:00
rodzic e3f58442aa
commit 1b0a77dfae
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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' : ''
}`