From 1b0a77dfae1770e8fd2f9fe294b0567afefcb8f3 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 17 Oct 2023 14:56:57 +0800 Subject: [PATCH] Pluralization for post(s) Srsly need a i18n lib soon --- src/components/account-info.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/account-info.jsx b/src/components/account-info.jsx index 27e53d43..d5ac62c4 100644 --- a/src/components/account-info.jsx +++ b/src/components/account-info.jsx @@ -643,7 +643,9 @@ function AccountInfo({ >
{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' : '' }`