pluralize the album and song counts in the list views

This commit is contained in:
austinried
2026-10-04 00:30:04 +00:00
parent 669f1aff40
commit 0dff769d14
2 changed files with 4 additions and 2 deletions
@@ -87,7 +87,7 @@ fun ArtistsContent(
},
supportingContent = {
Text(
text = "${artist.albumCount} albums",
text = "${artist.albumCount} ${if (artist.albumCount == 1L) "album" else "albums"}",
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
@@ -85,7 +85,9 @@ fun PlaylistsContent(
},
supportingContent = {
Text(
text = playlist.comment?.takeIf { it.isNotBlank() } ?: "${playlist.songCount} songs",
text =
playlist.comment?.takeIf { it.isNotBlank() }
?: "${playlist.songCount} ${if (playlist.songCount == 1L) "song" else "songs"}",
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)