about summary refs log tree commit diff
path: root/src/lib/hooks
diff options
context:
space:
mode:
authorsurfdude29 <149612116+surfdude29@users.noreply.github.com>2025-02-24 21:10:40 +0000
committerGitHub <noreply@github.com>2025-02-24 13:10:40 -0800
commitbf4d3e89c27d08db27c513b2e84ea8a01e2c02bc (patch)
tree29adab8873624de063fc4ce7fe8e946f6c2e63b4 /src/lib/hooks
parent1fd3af3c4646b21ab17234a900147086a11808d1 (diff)
downloadvoidsky-bf4d3e89c27d08db27c513b2e84ea8a01e2c02bc.tar.zst
Add plural formatting for months in narrow form (#7744)
Diffstat (limited to 'src/lib/hooks')
-rw-r--r--src/lib/hooks/useTimeAgo.ts2
1 files changed, 1 insertions, 1 deletions
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`,
               }),
             )