mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? feat: Fix translation issue of message_history_window_size #1739 ### Type of change - [ ] Bug Fix (non-breaking change which fixes an issue) - [x] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [ ] Other (please describe):
24 lines
550 B
TypeScript
24 lines
550 B
TypeScript
import { Form, InputNumber } from 'antd';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
const MessageHistoryWindowSizeItem = ({
|
|
initialValue,
|
|
}: {
|
|
initialValue: number;
|
|
}) => {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<Form.Item
|
|
name={'message_history_window_size'}
|
|
label={t('flow.messageHistoryWindowSize')}
|
|
initialValue={initialValue}
|
|
tooltip={t('flow.messageHistoryWindowSizeTip')}
|
|
>
|
|
<InputNumber style={{ width: '100%' }} />
|
|
</Form.Item>
|
|
);
|
|
};
|
|
|
|
export default MessageHistoryWindowSizeItem;
|