Add plural formatting for error toast (#10756)

This commit is contained in:
surfdude29
2026-06-05 23:57:57 +01:00
committed by GitHub
parent 11dd259716
commit a253e877fc
+3 -1
View File
@@ -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',
}),