RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Fix: read flow blank template strings from i18n file (#6240)
Womsxd1d8daad22347
diff --git a/web/src/hooks/flow-hooks.ts b/web/src/hooks/flow-hooks.tsindex 5a0964dc08..07905e1ad3 100644--- a/web/src/hooks/flow-hooks.ts+++ b/web/src/hooks/flow-hooks.ts@@ -10,6 +10,7 @@ import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';import { message } from 'antd';import { set } from 'lodash';import get from 'lodash/get';+import { useTranslation } from 'react-i18next';import { useParams } from 'umi';import { v4 as uuid } from 'uuid';@@ -51,6 +52,8 @@ export const EmptyDsl = {};export const useFetchFlowTemplates = (): ResponseType<IFlowTemplate[]> => {+ const { t } = useTranslation();+const { data } = useQuery({queryKey: ['fetchFlowTemplates'],initialData: [],@@ -59,8 +62,8 @@ export const useFetchFlowTemplates = (): ResponseType<IFlowTemplate[]> => {if (Array.isArray(data?.data)) {data.data.unshift({id: uuid(),- title: 'Blank',- description: 'Create your agent from scratch',+ title: t('flow.blank'),+ description: t('flow.createFromNothing'),dsl: EmptyDsl,});}