mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 22:33:50 +02:00
i18n
This commit is contained in:
@@ -525,7 +525,14 @@
|
||||
return normalized;
|
||||
};
|
||||
|
||||
const themeDisplayName = (key) => THEME_CONFIG[key]?.name ?? key;
|
||||
const themeDisplayName = (themeKey) => {
|
||||
const i18nKey = `view.settings.appearance.appearance.theme_mode_${themeKey}`;
|
||||
const translated = t(i18nKey);
|
||||
if (translated !== i18nKey) {
|
||||
return translated;
|
||||
}
|
||||
return THEME_CONFIG[themeKey]?.name ?? themeKey;
|
||||
};
|
||||
|
||||
const handleSettingsClick = () => {
|
||||
themeMenuVisible.value = false;
|
||||
|
||||
Reference in New Issue
Block a user