From bae76f921b4ccbd0abbbf8e4500e8d17e5145f1a Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Tue, 11 Feb 2025 16:34:26 +0800 Subject: [PATCH] fix: upload button tooltip --- src/renderer/src/i18n/locales/en-us.json | 1 + src/renderer/src/i18n/locales/ja-jp.json | 1 + src/renderer/src/i18n/locales/ru-ru.json | 1 + src/renderer/src/i18n/locales/zh-cn.json | 7 ++++--- src/renderer/src/i18n/locales/zh-tw.json | 1 + src/renderer/src/pages/home/Inputbar/AttachmentButton.tsx | 5 ++++- 6 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/renderer/src/i18n/locales/en-us.json b/src/renderer/src/i18n/locales/en-us.json index 1f3e9bd4..4baa36ec 100644 --- a/src/renderer/src/i18n/locales/en-us.json +++ b/src/renderer/src/i18n/locales/en-us.json @@ -88,6 +88,7 @@ "input.topics": " Topics ", "input.translate": "Translate to {{target_language}}", "input.upload": "Upload image or document file", + "input.upload.document": "Upload document file (model does not support images)", "input.web_search": "Enable web search", "input.knowledge_base": "Knowledge Base", "message.new.branch": "New Branch", diff --git a/src/renderer/src/i18n/locales/ja-jp.json b/src/renderer/src/i18n/locales/ja-jp.json index 093acb8f..8d1b136f 100644 --- a/src/renderer/src/i18n/locales/ja-jp.json +++ b/src/renderer/src/i18n/locales/ja-jp.json @@ -83,6 +83,7 @@ "input.topics": " トピック ", "input.translate": "{{target_language}}に翻訳", "input.upload": "画像またはドキュメントをアップロード", + "input.upload.document": "ドキュメントをアップロード(モデルは画像をサポートしません)", "input.web_search": "ウェブ検索を有効にする", "input.knowledge_base": "ナレッジベース", "message.new.branch": "新しいブランチ", diff --git a/src/renderer/src/i18n/locales/ru-ru.json b/src/renderer/src/i18n/locales/ru-ru.json index 649d47f7..df162710 100644 --- a/src/renderer/src/i18n/locales/ru-ru.json +++ b/src/renderer/src/i18n/locales/ru-ru.json @@ -83,6 +83,7 @@ "input.topics": " Топики ", "input.translate": "Перевести на {{target_language}}", "input.upload": "Загрузить изображение или документ", + "input.upload.document": "Загрузить документ (модель не поддерживает изображения)", "input.web_search": "Включить веб-поиск", "input.knowledge_base": "База знаний", "message.new.branch": "Новая ветка", diff --git a/src/renderer/src/i18n/locales/zh-cn.json b/src/renderer/src/i18n/locales/zh-cn.json index e0803e51..be84485c 100644 --- a/src/renderer/src/i18n/locales/zh-cn.json +++ b/src/renderer/src/i18n/locales/zh-cn.json @@ -88,6 +88,7 @@ "input.topics": " 话题 ", "input.translate": "翻译成{{target_language}}", "input.upload": "上传图片或文档", + "input.upload.document": "上传文档(模型不支持图片)", "input.web_search": "开启网络搜索", "input.knowledge_base": "知识库", "message.new.branch": "分支", @@ -427,9 +428,9 @@ "webdav.noSync": "等待下次备份", "webdav.syncError": "备份错误", "webdav.lastSync": "上次备份时间", - "notion.api_key":"Notion 密钥", - "notion.database_id":"Notion 数据库ID", - "notion.title":"Notion 配置" + "notion.api_key": "Notion 密钥", + "notion.database_id": "Notion 数据库ID", + "notion.title": "Notion 配置" }, "quickAssistant": { "title": "快捷助手", diff --git a/src/renderer/src/i18n/locales/zh-tw.json b/src/renderer/src/i18n/locales/zh-tw.json index ded256f1..7cebe4ac 100644 --- a/src/renderer/src/i18n/locales/zh-tw.json +++ b/src/renderer/src/i18n/locales/zh-tw.json @@ -88,6 +88,7 @@ "input.topics": " 話題 ", "input.translate": "翻譯成{{target_language}}", "input.upload": "上傳圖片或文檔", + "input.upload.document": "上傳文檔(模型不支持圖片)", "input.web_search": "開啟網路搜索", "input.knowledge_base": "知識庫", "message.new.branch": "分支", diff --git a/src/renderer/src/pages/home/Inputbar/AttachmentButton.tsx b/src/renderer/src/pages/home/Inputbar/AttachmentButton.tsx index ac1418e9..49c391e3 100644 --- a/src/renderer/src/pages/home/Inputbar/AttachmentButton.tsx +++ b/src/renderer/src/pages/home/Inputbar/AttachmentButton.tsx @@ -37,7 +37,10 @@ const AttachmentButton: FC = ({ model, files, setFiles, ToolbarButton, di } return ( - +