Merge pull request #720 from pyxfluff/patch-1

Add play count to albums
This commit is contained in:
Kendall Garner
2024-09-01 12:50:19 -07:00
committed by GitHub
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -139,6 +139,8 @@
"genreWithCount_other": "{{count}} genres",
"playlist_one": "playlist",
"playlist_other": "playlists",
"play_one": "{{count}} play",
"play_other": "{{count}} plays",
"playlistWithCount_one": "{{count}} playlist",
"playlistWithCount_other": "{{count}} playlists",
"smartPlaylist": "smart $t(entity.playlist_one)",
@@ -48,6 +48,12 @@ export const AlbumDetailHeader = forwardRef(
value:
detailQuery?.data?.duration && formatDurationString(detailQuery.data.duration),
},
{
id: 'playCount',
value: t('entity.play', {
count: detailQuery?.data?.playCount as number,
}),
},
];
if (originalDifferentFromRelease) {