diff --git a/apps/desktop/src/components/editor/EditorSettingsDialog.vue b/apps/desktop/src/components/editor/EditorSettingsDialog.vue index 389ed67d85..4aef9bee1f 100644 --- a/apps/desktop/src/components/editor/EditorSettingsDialog.vue +++ b/apps/desktop/src/components/editor/EditorSettingsDialog.vue @@ -70,6 +70,8 @@ import AiProviderLogo from "@/components/icons/AiProviderLogo.vue"; import AppLogo from "@/components/icons/AppLogo.vue"; import type { AppThemeAppearance } from "@/lib/appTheme"; import { useConnectionStore } from "@/stores/connectionStore"; +import { currentLocale, setLocale, type Locale } from "@/i18n"; +import { LOCALE_OPTIONS } from "@/lib/localeOptions"; const { t } = useI18n(); const settingsStore = useSettingsStore(); @@ -365,6 +367,10 @@ function onThemeChange(v: any) { if (typeof v === "string") editTheme.value = v as typeof DEFAULT_EDITOR_SETTINGS.theme; } +function onLocaleChange(v: any) { + if (typeof v === "string") void setLocale(v as Locale); +} + function onRedisScanPageSizeChange(v: any) { const value = Number(v); if (redisScanPageSizeOptions.includes(value)) editRedisScanPageSize.value = value; @@ -1127,6 +1133,25 @@ watch(
+
+ + +
+ + +