balibabu
commited on
Commit
·
7d7dfcb
1
Parent(s):
2480697
feat: Fix translation issue of message_history_window_size #1739 (#2828)
Browse files### 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):
web/src/components/message-history-window-size-item.tsx
CHANGED
|
@@ -6,14 +6,14 @@ const MessageHistoryWindowSizeItem = ({
|
|
| 6 |
}: {
|
| 7 |
initialValue: number;
|
| 8 |
}) => {
|
| 9 |
-
const { t } = useTranslation(
|
| 10 |
|
| 11 |
return (
|
| 12 |
<Form.Item
|
| 13 |
name={'message_history_window_size'}
|
| 14 |
-
label={t('messageHistoryWindowSize')}
|
| 15 |
initialValue={initialValue}
|
| 16 |
-
tooltip={t('messageHistoryWindowSizeTip')}
|
| 17 |
>
|
| 18 |
<InputNumber style={{ width: '100%' }} />
|
| 19 |
</Form.Item>
|
|
|
|
| 6 |
}: {
|
| 7 |
initialValue: number;
|
| 8 |
}) => {
|
| 9 |
+
const { t } = useTranslation();
|
| 10 |
|
| 11 |
return (
|
| 12 |
<Form.Item
|
| 13 |
name={'message_history_window_size'}
|
| 14 |
+
label={t('flow.messageHistoryWindowSize')}
|
| 15 |
initialValue={initialValue}
|
| 16 |
+
tooltip={t('flow.messageHistoryWindowSizeTip')}
|
| 17 |
>
|
| 18 |
<InputNumber style={{ width: '100%' }} />
|
| 19 |
</Form.Item>
|