Fix I18n audio labels (#20508)

* ensure i18n audio label keys are translated

don't assume they are in the objects namespace

* add missing audio labels

* Improve handling of label types

* simplify

* fixes

---------

Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
This commit is contained in:
Josh Hawkins
2025-10-15 13:02:08 -06:00
committed by GitHub
co-authored by Nicolas Mowen
parent e592c7044b
commit 75d7049b6d
6 changed files with 123 additions and 14 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ export default function SearchThumbnail({
.filter(
(item) => item !== undefined && !item.includes("-verified"),
)
.map((text) => getTranslatedLabel(text))
.map((text) => getTranslatedLabel(text, searchResult.data.type))
.sort()
.join(", ")
.replaceAll("-verified", "")}