Add plural formatting to a11y hint translation

Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
This commit is contained in:
Eric Bailey
2025-08-14 10:04:10 -05:00
committed by GitHub
parent 6bb24944b2
commit e7708f2fa9
+18 -2
View File
@@ -485,10 +485,26 @@ export function SelectMediaButton({
accessibilityHint={ accessibilityHint={
isNative isNative
? _( ? _(
msg`Opens device gallery to select up to ${MAX_IMAGES} images, or a single video.`, msg({
message: `Opens device gallery to select up to ${plural(
MAX_IMAGES,
{
other: '# images',
},
)}, or a single video.`,
comment: `Accessibility hint on native for button in composer to add images or a video to a post. Maximum number of images that can be selected is currently 4 but may change.`,
}),
) )
: _( : _(
msg`Opens device gallery to select up to ${MAX_IMAGES} images, or a single video or GIF.`, msg({
message: `Opens device gallery to select up to ${plural(
MAX_IMAGES,
{
other: '# images',
},
)}, or a single video or GIF.`,
comment: `Accessibility hint on web for button in composer to add images, a video, or a GIF to a post. Maximum number of images that can be selected is currently 4 but may change.`,
}),
) )
} }
style={a.p_sm} style={a.p_sm}