feat(i18n): add "Switch Model" message to multiple locales and update tooltip in MessageMenubar

This commit is contained in:
tanxiang 2024-12-18 13:12:57 +08:00 committed by 亢奋猫
parent b2554333a9
commit 0739758469
5 changed files with 10 additions and 4 deletions

View File

@ -83,6 +83,7 @@
"input.web_search": "Enable web search",
"message.new.branch": "New Branch",
"message.new.branch.created": "New Branch Created",
"message.regenerate.model": "Switch Model",
"message.new.context": "New Context",
"save": "Save",
"settings.code_collapsible": "Code block collapsible",

View File

@ -83,6 +83,7 @@
"input.web_search": "Включить веб-поиск",
"message.new.branch": "Новая ветка",
"message.new.branch.created": "Новая ветка создана",
"message.regenerate.model": "Переключить модель",
"message.new.context": "Новый контекст",
"save": "Сохранить",
"settings.code_collapsible": "Блок кода свернут",

View File

@ -83,6 +83,7 @@
"input.web_search": "开启网络搜索",
"message.new.branch": "新分支",
"message.new.branch.created": "新分支已创建",
"message.regenerate.model": "切换模型",
"message.new.context": "清除上下文",
"save": "保存",
"settings.code_collapsible": "代码块可折叠",

View File

@ -83,6 +83,7 @@
"input.web_search": "開啟網路搜索",
"message.new.branch": "新分支",
"message.new.branch.created": "新分支已建立",
"message.regenerate.model": "切換模型",
"message.new.context": "新上下文",
"save": "保存",
"settings.code_collapsible": "代码块可折叠",

View File

@ -205,13 +205,15 @@ const MessageMenubar: FC<Props> = (props) => {
destroyTooltipOnHide
icon={<QuestionCircleOutlined style={{ color: 'red' }} />}
onConfirm={onDeleteAndRegenerate}>
<ActionButton className="message-action-button">
<SyncOutlined />
</ActionButton>
<Tooltip title={t('common.regenerate')} mouseEnterDelay={0.8}>
<ActionButton className="message-action-button">
<SyncOutlined />
</ActionButton>
</Tooltip>
</Popconfirm>
)}
{canRegenerate && (
<Tooltip title={t('common.regenerate')} mouseEnterDelay={0.8}>
<Tooltip title={t('chat.message.regenerate.model')} mouseEnterDelay={0.8}>
<ActionButton className="message-action-button" onClick={onAtModelRegenerate}>
<i className="iconfont icon-at1"></i>
</ActionButton>