From a253e877fcf42344c295450eacf748a9e268dd15 Mon Sep 17 00:00:00 2001 From: surfdude29 <149612116+surfdude29@users.noreply.github.com> Date: Fri, 5 Jun 2026 23:57:57 +0100 Subject: [PATCH] Add plural formatting for error toast (#10756) --- src/view/com/composer/Composer.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index a2493557b7..e130472c72 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -210,7 +210,9 @@ function useAddImagesWithCap( if (result.status === 'full') { Toast.show( l({ - message: `You can only add up to ${MAX_GALLERY_IMAGES} images per post`, + message: `You can only add up to ${plural(MAX_GALLERY_IMAGES, { + other: '# images', + })} per post`, comment: 'Toast shown when the user tries to add more images but the post gallery is already at the cap', }),