diff --git a/VocaDbWeb/Scripts/Pages/Album/AlbumBasicInfo.tsx b/VocaDbWeb/Scripts/Pages/Album/AlbumBasicInfo.tsx index 8bb2b16085..9dd6e593fd 100644 --- a/VocaDbWeb/Scripts/Pages/Album/AlbumBasicInfo.tsx +++ b/VocaDbWeb/Scripts/Pages/Album/AlbumBasicInfo.tsx @@ -121,6 +121,14 @@ const AlbumBasicInfo = observer( 'VocaDb.Model.Resources.Albums', ]); + const codeMap = model.cultureCodes + .map((l) => getCodeDescription(l)?.englishName ?? '') + .filter((l) => l !== '') + .groupBy((l) => l); + const languages = Object.keys(codeMap) + .map((key) => `${key} (${codeMap[key].length})`) + .join(', '); + return ( 0 && ( {t('ViewRes.Album:Details.Languages')} - - {model.cultureCodes - .map((l) => getCodeDescription(l)?.englishName ?? '') - .filter((l) => l !== '') - .join(', ')} - + {languages} )}