diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 183e37c76..5836a9278 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -1480,7 +1480,7 @@ function _Chat() { color={"var(--second)"} placement="bottom" > - 当天使用: + {Locale.Chat.UseTip} b.content.length - a.content.length); return results; + // eslint-disable-next-line react-hooks/exhaustive-deps }, []); useEffect(() => { diff --git a/app/components/settings.tsx b/app/components/settings.tsx index 894d2decc..978ccff55 100644 --- a/app/components/settings.tsx +++ b/app/components/settings.tsx @@ -1378,21 +1378,21 @@ export function Settings() { - {/**/} - {/* {*/} - {/* changeLang(e.target.value as any);*/} - {/* }}*/} - {/* >*/} - {/* {AllLangs.map((lang) => (*/} - {/* */} - {/* ))}*/} - {/* */} - {/**/} + + + { + if (lange === "en") { + return ( + + {" "} + Choose Your Own Assistant +

+ {/* eslint-disable-next-line react/no-unescaped-entities */} + 1. Sometimes it might act up a bit. Click New Chat below to try + again.
2. For drawing: Generate images with the format "/mj + prompt" (you can look up tools or methods for using MidJourney + prompts).
3. If you find it helpful, consider buying the author + a coffee. +
+ ); + } + return ( + + 选择一个你自己的助理 +
+
+ 1. 有时可能会抽风,点击下方新的聊天试一下吧 +
+ 2. 绘图:“/mj 提示词” + 的格式生成图片(可以搜一下midjourney的提示词工具或使用方法) +
+ 3. 如果觉得还不错,可以给作者赏杯咖啡 +
+ ); + }, [lange]); + return ( - 选择一个你自己的助理 -
-
- 1. 有时可能会抽风,点击下方新的聊天试一下吧 -
- 2. 绘图:“/mj 提示词” - 的格式生成图片(可以搜一下midjourney的提示词工具或使用方法) -
- 3. 如果觉得还不错,可以给作者赏杯咖啡 - - } + title={Locale.SideBarHeader.Title} + subTitle={SideBarHeaderTextSubtitle} logo={} >
} - text={shouldNarrow ? undefined : "赏杯咖啡️"} + text={shouldNarrow ? undefined : Locale.SideBarHeader.Coffee} className={styles["sidebar-bar-button"]} onClick={() => navigate(Path.Reward)} shadow diff --git a/app/locales/cn.ts b/app/locales/cn.ts index f69dfffdd..11ba7662e 100644 --- a/app/locales/cn.ts +++ b/app/locales/cn.ts @@ -58,10 +58,15 @@ const cn = { ImageAgentOpenTip: "开启之后,返回的Midjourney图片将会通过本程序自身代理,所以本程序需要处于可以访问cdn.discordapp.com的网络环境中才有效", }, + SideBarHeader: { + Title: "这里开始……", + Coffee: "赏杯咖啡", + }, ChatItem: { ChatItemCount: (count: number) => `${count} 条对话`, }, Chat: { + UseTip: "当天使用:", SubTitle: (count: number) => `共 ${count} 条对话`, EditMessage: { Title: "编辑消息记录", diff --git a/app/locales/en.ts b/app/locales/en.ts index d3ef67c1c..b79d1317a 100644 --- a/app/locales/en.ts +++ b/app/locales/en.ts @@ -60,10 +60,15 @@ const en: LocaleType = { ImageAgentOpenTip: "After turning it on, the returned Midjourney image will be proxied by this program itself, so this program needs to be in a network environment that can access cdn.discordapp.com to be effective", }, + SideBarHeader: { + Title: "Start Here...", + Coffee: "Coffee please", + }, ChatItem: { ChatItemCount: (count: number) => `${count} messages`, }, Chat: { + UseTip: "day use:", SubTitle: (count: number) => `${count} messages`, EditMessage: { Title: "Edit All Messages",