fix: upload button tooltip
This commit is contained in:
parent
cb88a48d8b
commit
bae76f921b
@ -88,6 +88,7 @@
|
|||||||
"input.topics": " Topics ",
|
"input.topics": " Topics ",
|
||||||
"input.translate": "Translate to {{target_language}}",
|
"input.translate": "Translate to {{target_language}}",
|
||||||
"input.upload": "Upload image or document file",
|
"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.web_search": "Enable web search",
|
||||||
"input.knowledge_base": "Knowledge Base",
|
"input.knowledge_base": "Knowledge Base",
|
||||||
"message.new.branch": "New Branch",
|
"message.new.branch": "New Branch",
|
||||||
|
|||||||
@ -83,6 +83,7 @@
|
|||||||
"input.topics": " トピック ",
|
"input.topics": " トピック ",
|
||||||
"input.translate": "{{target_language}}に翻訳",
|
"input.translate": "{{target_language}}に翻訳",
|
||||||
"input.upload": "画像またはドキュメントをアップロード",
|
"input.upload": "画像またはドキュメントをアップロード",
|
||||||
|
"input.upload.document": "ドキュメントをアップロード(モデルは画像をサポートしません)",
|
||||||
"input.web_search": "ウェブ検索を有効にする",
|
"input.web_search": "ウェブ検索を有効にする",
|
||||||
"input.knowledge_base": "ナレッジベース",
|
"input.knowledge_base": "ナレッジベース",
|
||||||
"message.new.branch": "新しいブランチ",
|
"message.new.branch": "新しいブランチ",
|
||||||
|
|||||||
@ -83,6 +83,7 @@
|
|||||||
"input.topics": " Топики ",
|
"input.topics": " Топики ",
|
||||||
"input.translate": "Перевести на {{target_language}}",
|
"input.translate": "Перевести на {{target_language}}",
|
||||||
"input.upload": "Загрузить изображение или документ",
|
"input.upload": "Загрузить изображение или документ",
|
||||||
|
"input.upload.document": "Загрузить документ (модель не поддерживает изображения)",
|
||||||
"input.web_search": "Включить веб-поиск",
|
"input.web_search": "Включить веб-поиск",
|
||||||
"input.knowledge_base": "База знаний",
|
"input.knowledge_base": "База знаний",
|
||||||
"message.new.branch": "Новая ветка",
|
"message.new.branch": "Новая ветка",
|
||||||
|
|||||||
@ -88,6 +88,7 @@
|
|||||||
"input.topics": " 话题 ",
|
"input.topics": " 话题 ",
|
||||||
"input.translate": "翻译成{{target_language}}",
|
"input.translate": "翻译成{{target_language}}",
|
||||||
"input.upload": "上传图片或文档",
|
"input.upload": "上传图片或文档",
|
||||||
|
"input.upload.document": "上传文档(模型不支持图片)",
|
||||||
"input.web_search": "开启网络搜索",
|
"input.web_search": "开启网络搜索",
|
||||||
"input.knowledge_base": "知识库",
|
"input.knowledge_base": "知识库",
|
||||||
"message.new.branch": "分支",
|
"message.new.branch": "分支",
|
||||||
@ -427,9 +428,9 @@
|
|||||||
"webdav.noSync": "等待下次备份",
|
"webdav.noSync": "等待下次备份",
|
||||||
"webdav.syncError": "备份错误",
|
"webdav.syncError": "备份错误",
|
||||||
"webdav.lastSync": "上次备份时间",
|
"webdav.lastSync": "上次备份时间",
|
||||||
"notion.api_key":"Notion 密钥",
|
"notion.api_key": "Notion 密钥",
|
||||||
"notion.database_id":"Notion 数据库ID",
|
"notion.database_id": "Notion 数据库ID",
|
||||||
"notion.title":"Notion 配置"
|
"notion.title": "Notion 配置"
|
||||||
},
|
},
|
||||||
"quickAssistant": {
|
"quickAssistant": {
|
||||||
"title": "快捷助手",
|
"title": "快捷助手",
|
||||||
|
|||||||
@ -88,6 +88,7 @@
|
|||||||
"input.topics": " 話題 ",
|
"input.topics": " 話題 ",
|
||||||
"input.translate": "翻譯成{{target_language}}",
|
"input.translate": "翻譯成{{target_language}}",
|
||||||
"input.upload": "上傳圖片或文檔",
|
"input.upload": "上傳圖片或文檔",
|
||||||
|
"input.upload.document": "上傳文檔(模型不支持圖片)",
|
||||||
"input.web_search": "開啟網路搜索",
|
"input.web_search": "開啟網路搜索",
|
||||||
"input.knowledge_base": "知識庫",
|
"input.knowledge_base": "知識庫",
|
||||||
"message.new.branch": "分支",
|
"message.new.branch": "分支",
|
||||||
|
|||||||
@ -37,7 +37,10 @@ const AttachmentButton: FC<Props> = ({ model, files, setFiles, ToolbarButton, di
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tooltip placement="top" title={t('chat.input.upload')} arrow>
|
<Tooltip
|
||||||
|
placement="top"
|
||||||
|
title={isVisionModel(model) ? t('chat.input.upload') : t('chat.input.upload.document')}
|
||||||
|
arrow>
|
||||||
<ToolbarButton type="text" className={files.length ? 'active' : ''} onClick={onSelectFile} disabled={disabled}>
|
<ToolbarButton type="text" className={files.length ? 'active' : ''} onClick={onSelectFile} disabled={disabled}>
|
||||||
<PaperClipOutlined style={{ rotate: '135deg' }} />
|
<PaperClipOutlined style={{ rotate: '135deg' }} />
|
||||||
</ToolbarButton>
|
</ToolbarButton>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user