From 95dc034a8ec73f4170d9f85fe1c64943d69098c0 Mon Sep 17 00:00:00 2001 From: Ben Date: Sat, 9 Mar 2024 11:53:43 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20fix=20add=20abouttext?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/en-US/common.json | 1 + locales/zh-CN/common.json | 1 + locales/zh-TW/common.json | 1 + src/app/settings/about/AboutList.tsx | 4 ++-- src/locales/default/common.ts | 1 + 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/locales/en-US/common.json b/locales/en-US/common.json index ef502f4099bc..a44f245ff007 100644 --- a/locales/en-US/common.json +++ b/locales/en-US/common.json @@ -9,6 +9,7 @@ } }, "about": "About", + "abouttext": "This application is developed by Mr. Ng for the sake of enabling students to engage in self-directed learning with the help of AI.", "advanceSettings": "Advanced Settings", "agentMaxToken": "Max Session Length", "agentModel": "Model", diff --git a/locales/zh-CN/common.json b/locales/zh-CN/common.json index 44b1de2f21c8..1d6ef0a2e9c6 100644 --- a/locales/zh-CN/common.json +++ b/locales/zh-CN/common.json @@ -9,6 +9,7 @@ } }, "about": "关于", + "abouttext": "此应用由伍Sir开发,旨在使学生能够在人工智能的帮助下进行自主学习。", "advanceSettings": "高级设置", "agentMaxToken": "会话最大长度", "agentModel": "模型", diff --git a/locales/zh-TW/common.json b/locales/zh-TW/common.json index 71900402f85c..77fc8f48027e 100644 --- a/locales/zh-TW/common.json +++ b/locales/zh-TW/common.json @@ -9,6 +9,7 @@ } }, "about": "關於", + "abouttext": "此應用程式由伍Sir開發,旨在使學生能夠在人工智能的幫助下進行自主學習。", "advanceSettings": "進階設定", "agentMaxToken": "助手最大標記", "agentModel": "模型", diff --git a/src/app/settings/about/AboutList.tsx b/src/app/settings/about/AboutList.tsx index 72a4af655a45..6c411685680b 100644 --- a/src/app/settings/about/AboutList.tsx +++ b/src/app/settings/about/AboutList.tsx @@ -26,9 +26,9 @@ const AboutList = memo(() => { }, { icon: Heart, - label: t('about', { ns: 'common' }), + label: t('abouttext', { ns: 'common' }), onClick: () => window.open(ABOUT, '__blank'), - value: 'about', + value: 'abouttext', }, ]; diff --git a/src/locales/default/common.ts b/src/locales/default/common.ts index 2b48a4314bba..0993a6763645 100644 --- a/src/locales/default/common.ts +++ b/src/locales/default/common.ts @@ -9,6 +9,7 @@ export default { }, }, about: '关于', + abouttext: '此应用由伍Sir开发,旨在使学生能够在人工智能的帮助下进行自主学习。', advanceSettings: '高级设置', agentMaxToken: '会话最大长度', agentModel: '模型',