feat(status_bar/language): improve display of Asian languages

This commit is contained in:
Elian Doran
2025-12-12 18:50:48 +02:00
parent 12be14e6cf
commit c099634e39

View File

@@ -95,5 +95,6 @@ function LanguageSwitcher({ note }: StatusBarContext) {
export function getLocaleName(locale: Locale | null | undefined) {
if (!locale) return "";
if (!locale.id) return "-";
if (locale.name.length <= 4) return locale.name; // Some locales like Japanese and Chinese look better than their ID.
return locale.id.toLocaleUpperCase();
}