mirror of
https://github.com/zadam/trilium.git
synced 2025-12-13 03:39:54 +01:00
feat(status_bar/language): improve display of Asian languages
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user