diff --git a/web/app/components/app/configuration/debug/index.tsx b/web/app/components/app/configuration/debug/index.tsx index 5621d9cf7f..71e441d415 100644 --- a/web/app/components/app/configuration/debug/index.tsx +++ b/web/app/components/app/configuration/debug/index.tsx @@ -178,7 +178,7 @@ const Debug: FC = ({ } if (completionFiles.find(item => item.transfer_method === TransferMethod.local_file && !item.upload_file_id)) { - notify({ type: 'info', message: t('appDebug.errorMessage.waitForImgUpload') }) + notify({ type: 'info', message: t('appDebug.errorMessage.waitForFileUpload') }) return false } return !hasEmptyInput diff --git a/web/app/components/base/chat/chat/chat-input-area/index.tsx b/web/app/components/base/chat/chat/chat-input-area/index.tsx index 8ce4c8c7a3..72be8a58af 100644 --- a/web/app/components/base/chat/chat/chat-input-area/index.tsx +++ b/web/app/components/base/chat/chat/chat-input-area/index.tsx @@ -80,7 +80,7 @@ const ChatInputArea = ({ if (onSend) { const { files, setFiles } = filesStore.getState() if (files.find(item => item.transferMethod === TransferMethod.local_file && !item.uploadedId)) { - notify({ type: 'info', message: t('appDebug.errorMessage.waitForImgUpload') }) + notify({ type: 'info', message: t('appDebug.errorMessage.waitForFileUpload') }) return } if (!query || !query.trim()) { diff --git a/web/app/components/base/chat/chat/check-input-forms-hooks.ts b/web/app/components/base/chat/chat/check-input-forms-hooks.ts index bf6dd6f26a..159ec33606 100644 --- a/web/app/components/base/chat/chat/check-input-forms-hooks.ts +++ b/web/app/components/base/chat/chat/check-input-forms-hooks.ts @@ -38,7 +38,7 @@ export const useCheckInputsForms = () => { } if (fileIsUploading) { - notify({ type: 'info', message: t('appDebug.errorMessage.waitForImgUpload') }) + notify({ type: 'info', message: t('appDebug.errorMessage.waitForFileUpload') }) return } diff --git a/web/app/components/share/text-generation/result/index.tsx b/web/app/components/share/text-generation/result/index.tsx index f32dbab4bf..6b881f1fd2 100644 --- a/web/app/components/share/text-generation/result/index.tsx +++ b/web/app/components/share/text-generation/result/index.tsx @@ -119,7 +119,7 @@ const Result: FC = ({ const prompt_variables = promptConfig?.prompt_variables if (!prompt_variables || prompt_variables?.length === 0) { if (completionFiles.find(item => item.transfer_method === TransferMethod.local_file && !item.upload_file_id)) { - notify({ type: 'info', message: t('appDebug.errorMessage.waitForImgUpload') }) + notify({ type: 'info', message: t('appDebug.errorMessage.waitForFileUpload') }) return false } return true @@ -144,7 +144,7 @@ const Result: FC = ({ } if (completionFiles.find(item => item.transfer_method === TransferMethod.local_file && !item.upload_file_id)) { - notify({ type: 'info', message: t('appDebug.errorMessage.waitForImgUpload') }) + notify({ type: 'info', message: t('appDebug.errorMessage.waitForFileUpload') }) return false } return !hasEmptyInput diff --git a/web/i18n/en-US/app-debug.ts b/web/i18n/en-US/app-debug.ts index cacc38d24b..e9b777835f 100644 --- a/web/i18n/en-US/app-debug.ts +++ b/web/i18n/en-US/app-debug.ts @@ -287,6 +287,7 @@ const translation = { 'Please wait for the response to the batch task to complete.', notSelectModel: 'Please choose a model', waitForImgUpload: 'Please wait for the image to upload', + waitForFileUpload: 'Please wait for the file/files to upload', }, warningMessage: { timeoutExceeded: 'Results are not displayed due to timeout. Please refer to the logs to gather complete results.', diff --git a/web/i18n/zh-Hans/app-debug.ts b/web/i18n/zh-Hans/app-debug.ts index 367a6df441..b2789b9dcb 100644 --- a/web/i18n/zh-Hans/app-debug.ts +++ b/web/i18n/zh-Hans/app-debug.ts @@ -285,6 +285,7 @@ const translation = { waitForBatchResponse: '请等待批量任务完成', notSelectModel: '请选择模型', waitForImgUpload: '请等待图片上传完成', + waitForFileUpload: '请等待文件上传完成', }, chatSubTitle: '提示词', completionSubTitle: '前缀提示词',