From e77c46bacbc8ce1f4acb523e519cb2ccf14b51b3 Mon Sep 17 00:00:00 2001 From: eviswu Date: Fri, 27 Sep 2024 14:26:30 +0800 Subject: [PATCH 1/4] Update cn.ts --- app/locales/cn.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/locales/cn.ts b/app/locales/cn.ts index e5bcca0edbb..8dbc2dae917 100644 --- a/app/locales/cn.ts +++ b/app/locales/cn.ts @@ -4,7 +4,7 @@ import { SAAS_CHAT_UTM_URL } from "@/app/constant"; const isApp = !!getClientConfig()?.isApp; -const cn = { +/*const cn = { WIP: "该功能仍在开发中……", Error: { Unauthorized: isApp @@ -17,6 +17,16 @@ const cn = { \ 3️⃣ 如果你想消耗自己的 OpenAI 资源,点击[这里](/#/settings)修改设置 ⚙️ `, }, + */ + const cn = { + WIP: "该功能仍在开发中……", + Error: { + Unauthorized: isApp + ? "😆 检测到无效 API Key,请前往[设置⚙️](/#/settings)页检查 API Key 是否配置正确。" + : "😆 访问密码不正确或为空: + \ 1️⃣ 请前往[登录](/#/auth)页输入正确的访问密码🔑 + \ 2️⃣ 或者微信公众号搜索【果冻学社】回复“访问密码”获取密码。", + }, Auth: { Return: "返回", Title: "需要密码", From b4292bde6dc72a1cf51fe1906843b60c485ce4b1 Mon Sep 17 00:00:00 2001 From: eviswu Date: Fri, 27 Sep 2024 14:27:16 +0800 Subject: [PATCH 2/4] Update cn.ts --- app/locales/cn.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/locales/cn.ts b/app/locales/cn.ts index 8dbc2dae917..84e09cc24ca 100644 --- a/app/locales/cn.ts +++ b/app/locales/cn.ts @@ -22,9 +22,9 @@ const isApp = !!getClientConfig()?.isApp; WIP: "该功能仍在开发中……", Error: { Unauthorized: isApp - ? "😆 检测到无效 API Key,请前往[设置⚙️](/#/settings)页检查 API Key 是否配置正确。" + ? "😆 检测到无效 API Key,请前往[设置 ⚙️](/#/settings)页检查 API Key 是否配置正确。" : "😆 访问密码不正确或为空: - \ 1️⃣ 请前往[登录](/#/auth)页输入正确的访问密码🔑 + \ 1️⃣ 请前往[登录](/#/auth)页输入正确的访问密码 🔑 \ 2️⃣ 或者微信公众号搜索【果冻学社】回复“访问密码”获取密码。", }, Auth: { From 68d40c4ea63e876c97d91a81b5e2d72fe6dc48e4 Mon Sep 17 00:00:00 2001 From: eviswu Date: Fri, 27 Sep 2024 14:29:29 +0800 Subject: [PATCH 3/4] Update sidebar.tsx --- app/components/sidebar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/sidebar.tsx b/app/components/sidebar.tsx index 493b1103beb..4e7e3d9ad3f 100644 --- a/app/components/sidebar.tsx +++ b/app/components/sidebar.tsx @@ -299,7 +299,7 @@ export function SideBar(props: { className?: string }) {
- + } From 2336a59e7b48e8f023964c504a4551a75aa6bdd4 Mon Sep 17 00:00:00 2001 From: eviswu Date: Fri, 27 Sep 2024 14:40:19 +0800 Subject: [PATCH 4/4] Update cn.ts --- app/locales/cn.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/app/locales/cn.ts b/app/locales/cn.ts index 84e09cc24ca..21ab8364ffb 100644 --- a/app/locales/cn.ts +++ b/app/locales/cn.ts @@ -4,20 +4,6 @@ import { SAAS_CHAT_UTM_URL } from "@/app/constant"; const isApp = !!getClientConfig()?.isApp; -/*const cn = { - WIP: "该功能仍在开发中……", - Error: { - Unauthorized: isApp - ? `😆 对话遇到了一些问题,不用慌: - \\ 1️⃣ 想要零配置开箱即用,[点击这里立刻开启对话 🚀](${SAAS_CHAT_UTM_URL}) - \\ 2️⃣ 如果你想消耗自己的 OpenAI 资源,点击[这里](/#/settings)修改设置 ⚙️` - : `😆 对话遇到了一些问题,不用慌: - \ 1️⃣ 想要零配置开箱即用,[点击这里立刻开启对话 🚀](${SAAS_CHAT_UTM_URL}) - \ 2️⃣ 如果你正在使用私有部署版本,点击[这里](/#/auth)输入访问秘钥 🔑 - \ 3️⃣ 如果你想消耗自己的 OpenAI 资源,点击[这里](/#/settings)修改设置 ⚙️ - `, - }, - */ const cn = { WIP: "该功能仍在开发中……", Error: {