From bf4d3e89c27d08db27c513b2e84ea8a01e2c02bc Mon Sep 17 00:00:00 2001 From: surfdude29 <149612116+surfdude29@users.noreply.github.com> Date: Mon, 24 Feb 2025 21:10:40 +0000 Subject: Add plural formatting for months in narrow form (#7744) --- src/lib/hooks/useTimeAgo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/hooks/useTimeAgo.ts b/src/lib/hooks/useTimeAgo.ts index 7995ac824..e9430ad47 100644 --- a/src/lib/hooks/useTimeAgo.ts +++ b/src/lib/hooks/useTimeAgo.ts @@ -180,7 +180,7 @@ export function formatDateDiff({ ? i18n._(plural(diff.value, {one: '# month', other: '# months'})) : i18n._( defineMessage({ - message: `${diff.value}mo`, + message: plural(diff.value, {one: '#mo', other: '#mo'}), comment: `How many months have passed, displayed in a narrow form`, }), ) -- cgit 1.4.1