From aa03f42729b9417923a0cb869f380d1454aeaab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20MANSUY?= Date: Thu, 4 Dec 2025 19:19:01 +0800 Subject: [PATCH] cherry-pick 0216325e --- lightrag_webui/src/stores/settings.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lightrag_webui/src/stores/settings.ts b/lightrag_webui/src/stores/settings.ts index 966a2504..0764df47 100644 --- a/lightrag_webui/src/stores/settings.ts +++ b/lightrag_webui/src/stores/settings.ts @@ -3,6 +3,7 @@ import { persist, createJSONStorage } from 'zustand/middleware' import { createSelectors } from '@/lib/utils' import { defaultQueryLabel } from '@/lib/constants' import { Message, QueryRequest } from '@/api/lightrag' +import i18n from '@/i18n' type Theme = 'dark' | 'light' | 'system' type Language = 'en' | 'zh' | 'fr' | 'ar' | 'zh_TW' @@ -141,6 +142,10 @@ const useSettingsStoreBase = create()( setLanguage: (language: Language) => { set({ language }) + // Update i18n after state is updated + if (i18n.language !== language) { + i18n.changeLanguage(language) + } }, setGraphLayoutMaxIterations: (iterations: number) =>