feat(i18n): add missing locale keys and extract hardcoded Chinese strings
- Add 26 missing i18n keys to ko-KR and ru-RU for image upload, storage, VLM model, and multimodal features - Add 7 new tool name keys (queryKnowledgeGraph, finalAnswer, readSkill, executeSkillScript, dataAnalysis, dataSchema, databaseQuery) to all 4 locales (zh-CN, en-US, ko-KR, ru-RU) - Replace hardcoded Chinese tool name map (TOOL_NAME_DISPLAY) in AgentStreamDisplay with i18n key references via i18n.global.t(), merged into existing TOOL_NAME_KEYS - Fix hardcoded Chinese error message in KnowledgeBase.vue to use existing i18n key knowledgeBase.fileExists
This commit is contained in:
@@ -1048,7 +1048,7 @@ const handleDocumentUpload = async (event: Event) => {
|
||||
failCount++;
|
||||
let errorMessage = error?.error?.message || error?.message || t('knowledgeBase.uploadFailed');
|
||||
if (error?.code === 'duplicate_file') {
|
||||
errorMessage = "文件已存在";
|
||||
errorMessage = t('knowledgeBase.fileExists');
|
||||
}
|
||||
if (totalCount === 1) {
|
||||
MessagePlugin.error(errorMessage);
|
||||
|
||||
Reference in New Issue
Block a user