From ae801d772cbf15207f5ce38ccb097b06df6c6fee Mon Sep 17 00:00:00 2001 From: Deluan Date: Sat, 22 Mar 2025 15:48:29 -0400 Subject: [PATCH] feat(ui): show bitDepth in song info dialog Signed-off-by: Deluan --- resources/i18n/pt.json | 1 + ui/src/common/SongInfo.jsx | 3 ++- ui/src/i18n/en.json | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/i18n/pt.json b/resources/i18n/pt.json index c3c65ca57..d856391ff 100644 --- a/resources/i18n/pt.json +++ b/resources/i18n/pt.json @@ -18,6 +18,7 @@ "size": "Tamanho", "updatedAt": "Últ. Atualização", "bitRate": "Bitrate", + "bitDepth": "Profundidade de bits", "discSubtitle": "Sub-título do disco", "starred": "Favorita", "comment": "Comentário", diff --git a/ui/src/common/SongInfo.jsx b/ui/src/common/SongInfo.jsx index d94685633..5adc1ebf0 100644 --- a/ui/src/common/SongInfo.jsx +++ b/ui/src/common/SongInfo.jsx @@ -74,6 +74,7 @@ export const SongInfo = (props) => { ), compilation: , bitRate: , + bitDepth: , channels: , size: , updatedAt: , @@ -91,7 +92,7 @@ export const SongInfo = (props) => { roles.push([name, record.participants[name].length]) } - const optionalFields = ['discSubtitle', 'comment', 'bpm', 'genre'] + const optionalFields = ['discSubtitle', 'comment', 'bpm', 'genre', 'bitDepth'] optionalFields.forEach((field) => { !record[field] && delete data[field] }) diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.json index cd377932c..678e42cd4 100644 --- a/ui/src/i18n/en.json +++ b/ui/src/i18n/en.json @@ -18,6 +18,7 @@ "size": "File size", "updatedAt": "Updated at", "bitRate": "Bit rate", + "bitDepth": "Bit depth", "channels": "Channels", "discSubtitle": "Disc Subtitle", "starred": "Favourite",