fix(webui): show language names only in their native form (#5646)

* fix(webui): show native language names only

* test(webui): assert native language names positively
This commit is contained in:
chengyongru authored and GitHub committed 2026-09-04 00:08:56 +08:00
1 parent 236185d4f5
commit 6c0f6bf0ee
3 files changed
+22 -18

No files matched your search

+1 -8
View File
@@ -50,14 +50,7 @@ export function LanguageSwitcher() {
>
{supportedLocales.map((option) => (
<DropdownMenuRadioItem key={option.code} value={option.code}>
<span className="flex min-w-0 items-center gap-2">
<span>{option.nativeLabel}</span>
{option.nativeLabel !== option.label ? (
<span className="truncate text-xs text-muted-foreground">
{option.label}
</span>
) : null}
</span>
{option.nativeLabel}
</DropdownMenuRadioItem>
))}
</DropdownMenuRadioGroup>