Add plural formatting for error toast (#10756)
This commit is contained in:
@@ -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',
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user