Add plural formatting for error toast (#10756)
This commit is contained in:
@@ -210,7 +210,9 @@ function useAddImagesWithCap(
|
|||||||
if (result.status === 'full') {
|
if (result.status === 'full') {
|
||||||
Toast.show(
|
Toast.show(
|
||||||
l({
|
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:
|
comment:
|
||||||
'Toast shown when the user tries to add more images but the post gallery is already at the cap',
|
'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