ui: add fallback to display language code if no emoji / flag

This commit is contained in:
henrygd
2026-02-20 15:46:24 -05:00
parent 4cfb2a86ad
commit e13a99fdac
3 changed files with 15 additions and 3 deletions

View File

@@ -70,7 +70,16 @@ export default function SettingsProfilePage({ userSettings }: { userSettings: Us
<SelectContent>
{languages.map(([lang, label, e]) => (
<SelectItem key={lang} value={lang}>
<span className="me-2.5">{e}</span>
<span className="me-2.5">
{e || (
<code
aria-hidden="true"
className="font-mono bg-muted text-[.65em] w-5 h-4 inline-grid place-items-center"
>
{lang}
</code>
)}
</span>
{label}
</SelectItem>
))}