From ba0ff93e88210be15904819b5ee735db69b26765 Mon Sep 17 00:00:00 2001 From: its-mitesh-kumar Date: Sat, 2 May 2026 20:12:41 +0530 Subject: [PATCH] fix(user-settings): prioritize i18n translation over theme.title for built-in themes Signed-off-by: its-mitesh-kumar --- .../src/components/General/UserSettingsThemeToggle.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/user-settings/src/components/General/UserSettingsThemeToggle.tsx b/plugins/user-settings/src/components/General/UserSettingsThemeToggle.tsx index b7ac5340e4..edd478af5b 100644 --- a/plugins/user-settings/src/components/General/UserSettingsThemeToggle.tsx +++ b/plugins/user-settings/src/components/General/UserSettingsThemeToggle.tsx @@ -142,10 +142,10 @@ export const UserSettingsThemeToggle = () => { const themeId = theme.id; const themeIcon = theme.icon; const themeTitle = - theme.title || - (themeId === 'light' || themeId === 'dark' + themeId === 'light' || themeId === 'dark' ? t(`themeToggle.names.${themeId}`) - : themeId); + : theme.title || themeId; + return (