Skip to content

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

feat: Fix translation issue of message_history_window_size #1739 (#2828)

balibabudf223eddf369
diff --git a/web/src/components/message-history-window-size-item.tsx b/web/src/components/message-history-window-size-item.tsx
index 94da4e8bb5..acd6ac91a9 100644
--- a/web/src/components/message-history-window-size-item.tsx
+++ b/web/src/components/message-history-window-size-item.tsx
@@ -6,14 +6,14 @@ const MessageHistoryWindowSizeItem = ({
}: {
initialValue: number;
}) => {
- const { t } = useTranslation('flow');
+ const { t } = useTranslation();
return (
<Form.Item
name={'message_history_window_size'}
- label={t('messageHistoryWindowSize')}
+ label={t('flow.messageHistoryWindowSize')}
initialValue={initialValue}
- tooltip={t('messageHistoryWindowSizeTip')}
+ tooltip={t('flow.messageHistoryWindowSizeTip')}
>
<InputNumber style={{ width: '100%' }} />
</Form.Item>