Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix: Set the default language to English #1306 (#1694)

balibabud5f87a5498be
diff --git a/web/src/hooks/file-manager-hooks.ts b/web/src/hooks/file-manager-hooks.ts
index 275c40dd5c..19d664f8b4 100644
--- a/web/src/hooks/file-manager-hooks.ts
+++ b/web/src/hooks/file-manager-hooks.ts
@@ -40,6 +40,7 @@ export const useFetchFileList = (): ResponseType<any> & IListResult => {
},
],
initialData: {},
+ gcTime: 0,
queryFn: async (params: any) => {
console.info(params);
const { data } = await fileManagerService.listFile({
diff --git a/web/src/hooks/flow-hooks.ts b/web/src/hooks/flow-hooks.ts
index 3b5736e0ab..d7741165f4 100644
--- a/web/src/hooks/flow-hooks.ts
+++ b/web/src/hooks/flow-hooks.ts
@@ -70,6 +70,7 @@ export const useFetchFlowList = (): { data: IFlow[]; loading: boolean } => {
const { data, isFetching: loading } = useQuery({
queryKey: ['fetchFlowList'],
initialData: [],
+ gcTime: 0,
queryFn: async () => {
const { data } = await flowService.listCanvas();
diff --git a/web/src/layouts/components/right-toolbar/index.tsx b/web/src/layouts/components/right-toolbar/index.tsx
index 72a324965a..6c0c06b55a 100644
--- a/web/src/layouts/components/right-toolbar/index.tsx
+++ b/web/src/layouts/components/right-toolbar/index.tsx
@@ -25,7 +25,7 @@ const handleGithubCLick = () => {
const RightToolBar = () => {
const { t } = useTranslate('common');
const changeLanguage = useChangeLanguage();
- const { language = 'en' } = useSelector(
+ const { language = 'English' } = useSelector(
(state) => state.settingModel.userInfo,
);