Fix:Agent running message i10n (#7635)

### What problem does this PR solve?

Close #7612

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Stephen Hu
2025-05-14 14:27:12 +08:00
committed by GitHub
parent 4ac61fc470
commit ce81e470e3
12 changed files with 51 additions and 19 deletions

View File

@ -6,6 +6,7 @@ import {
useSendMessageWithSse,
} from '@/hooks/logic-hooks';
import { Message } from '@/interfaces/database/chat';
import i18n from '@/locales/config';
import api from '@/utils/api';
import { message } from 'antd';
import trim from 'lodash/trim';
@ -66,6 +67,9 @@ export const useSendNextMessage = () => {
const params: Record<string, unknown> = {
id: flowId,
};
params.running_hint_text = i18n.t('flow.runningHintText', {
defaultValue: 'is running...🕞',
});
if (message.content) {
params.message = message.content;
params.message_id = message.id;