mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-28 20:28:52 +03:00
Pluralization for post(s)
Srsly need a i18n lib soon
This commit is contained in:
parent
e3f58442aa
commit
1b0a77dfae
1 changed files with 3 additions and 1 deletions
|
@ -643,7 +643,9 @@ function AccountInfo({
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
{postingStats.daysSinceLastPost < 365
|
{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} day${
|
||||||
postingStats.daysSinceLastPost > 1 ? 's' : ''
|
postingStats.daysSinceLastPost > 1 ? 's' : ''
|
||||||
}`
|
}`
|
||||||
|
|
Loading…
Reference in a new issue