Fix Studio Pluralization (#5161)

Small bug fix so that if a studio only has 1 child studio then the correct pluralization is used.
This commit is contained in:
Gykes 2024-08-27 17:20:16 -07:00 committed by GitHub
parent 294e2090d0
commit a023a86ca6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -58,7 +58,11 @@ function maybeRenderChildren(studio: GQL.StudioDataFragment) {
values={{ values={{
children: ( children: (
<Link to={NavUtils.makeChildStudiosUrl(studio)}> <Link to={NavUtils.makeChildStudiosUrl(studio)}>
{studio.child_studios.length} studios {studio.child_studios.length}&nbsp;
<FormattedMessage
id="countables.studios"
values={{ count: studio.child_studios.length }}
/>
</Link> </Link>
), ),
}} }}