From 524d508916fb5a052ed16c4d9567da301df7b585 Mon Sep 17 00:00:00 2001 From: Guilherme Souza <32180229+gqgs@users.noreply.github.com> Date: Sat, 12 Apr 2025 21:52:47 -0300 Subject: [PATCH] feat(ui): show sampleRate in song info dialog (#3960) * feat(ui): show sampleRate in song info dialog * npm run prettier --write --- ui/src/common/SongInfo.jsx | 10 +++++++++- ui/src/i18n/en.json | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ui/src/common/SongInfo.jsx b/ui/src/common/SongInfo.jsx index 5adc1ebf0..77e91b653 100644 --- a/ui/src/common/SongInfo.jsx +++ b/ui/src/common/SongInfo.jsx @@ -75,6 +75,7 @@ export const SongInfo = (props) => { compilation: , bitRate: , bitDepth: , + sampleRate: , channels: , size: , updatedAt: , @@ -92,7 +93,14 @@ export const SongInfo = (props) => { roles.push([name, record.participants[name].length]) } - const optionalFields = ['discSubtitle', 'comment', 'bpm', 'genre', 'bitDepth'] + const optionalFields = [ + 'discSubtitle', + 'comment', + 'bpm', + 'genre', + 'bitDepth', + 'sampleRate', + ] optionalFields.forEach((field) => { !record[field] && delete data[field] }) diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.json index 4183d0ccd..76c4d5190 100644 --- a/ui/src/i18n/en.json +++ b/ui/src/i18n/en.json @@ -19,6 +19,7 @@ "updatedAt": "Updated at", "bitRate": "Bit rate", "bitDepth": "Bit depth", + "sampleRate": "Sample rate", "channels": "Channels", "discSubtitle": "Disc Subtitle", "starred": "Favourite",