From 1998b42643e50888a11b49acbd7acc68deb1b76a Mon Sep 17 00:00:00 2001 From: Sh1n3zZ Date: Mon, 17 Feb 2025 22:59:10 +0800 Subject: [PATCH] feat: thinking process text i18n --- app/src/components/Message.tsx | 2 +- app/src/resources/i18n/cn.json | 1 + app/src/resources/i18n/en.json | 3 ++- app/src/resources/i18n/ja.json | 3 ++- app/src/resources/i18n/ru.json | 3 ++- app/src/resources/i18n/tw.json | 5 +++-- 6 files changed, 11 insertions(+), 6 deletions(-) diff --git a/app/src/components/Message.tsx b/app/src/components/Message.tsx index 0faf38e..2f0885a 100644 --- a/app/src/components/Message.tsx +++ b/app/src/components/Message.tsx @@ -234,7 +234,7 @@ function MessageContent({ const [open, setOpen] = useState(false); const [editedMessage, setEditedMessage] = useState(""); - // 解析思考内容 + // parse think content const parseThinkContent = (content: string) => { if (message.role !== "assistant") return null; diff --git a/app/src/resources/i18n/cn.json b/app/src/resources/i18n/cn.json index c9abb17..8dfd01b 100644 --- a/app/src/resources/i18n/cn.json +++ b/app/src/resources/i18n/cn.json @@ -164,6 +164,7 @@ "remove": "删除消息", "restart": "重新回答", "copy-area": "复制选中区域", + "thinking-process": "思考过程", "saving-image-prompt": "图片生成中", "saving-image-prompt-desc": "正在生成图片中,请稍等...", "saving-image-failed": "图片生成失败", diff --git a/app/src/resources/i18n/en.json b/app/src/resources/i18n/en.json index 9f7fdde..044a1b1 100644 --- a/app/src/resources/i18n/en.json +++ b/app/src/resources/i18n/en.json @@ -117,7 +117,8 @@ "title": "Title", "time": "Time", "message": "Message" - } + }, + "thinking-process": "Process of thinking" }, "quota-description": "spending quota for the message", "buy": { diff --git a/app/src/resources/i18n/ja.json b/app/src/resources/i18n/ja.json index e9c54f3..9925f0a 100644 --- a/app/src/resources/i18n/ja.json +++ b/app/src/resources/i18n/ja.json @@ -117,7 +117,8 @@ "title": "タイトル", "time": "期日", "message": "メッセージ" - } + }, + "thinking-process": "思考プロセス" }, "quota-description": "メッセージのクレジット使用額", "buy": { diff --git a/app/src/resources/i18n/ru.json b/app/src/resources/i18n/ru.json index 71f5eab..b5dbe38 100644 --- a/app/src/resources/i18n/ru.json +++ b/app/src/resources/i18n/ru.json @@ -117,7 +117,8 @@ "title": "заглавие", "time": "Время", "message": "Сообщения" - } + }, + "thinking-process": "Процесс мышления" }, "quota-description": "квота расходов на сообщение", "buy": { diff --git a/app/src/resources/i18n/tw.json b/app/src/resources/i18n/tw.json index fc8be1e..c82f28a 100644 --- a/app/src/resources/i18n/tw.json +++ b/app/src/resources/i18n/tw.json @@ -174,7 +174,8 @@ "title": "標題", "time": "時間", "message": "訊息" - } + }, + "thinking-process": "思考過程" }, "quota-description": "訊息的點數支出", "buy": { @@ -814,4 +815,4 @@ "add-year": "增加一年", "sub-year": "減少一年" } -} +} \ No newline at end of file