mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +02:00
i18n
This commit is contained in:
@@ -525,7 +525,14 @@
|
|||||||
return normalized;
|
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 = () => {
|
const handleSettingsClick = () => {
|
||||||
themeMenuVisible.value = false;
|
themeMenuVisible.value = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user