Merge pull request #173 from sijinhui/dev

fix merge bug
This commit is contained in:
sijinhui 2024-09-25 18:44:53 +08:00 committed by GitHub
commit 8c4ee10281
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,7 @@
import { getClientConfig } from "../config/client"; import { getClientConfig } from "../config/client";
import { SubmitKey } from "../store/config"; import { SubmitKey } from "../store/config";
import { LocaleType } from "./index"; import { LocaleType } from "./index";
import { SAAS_CHAT_UTM_URL } from "@/app/constant";
// if you are adding a new translation, please use PartialLocaleType instead of LocaleType // if you are adding a new translation, please use PartialLocaleType instead of LocaleType
const isApp = !!getClientConfig()?.isApp; const isApp = !!getClientConfig()?.isApp;
@ -9,18 +9,28 @@ const en: LocaleType = {
WIP: "Coming Soon...", WIP: "Coming Soon...",
Error: { Error: {
Unauthorized: isApp Unauthorized: isApp
? "Invalid API Key, please check it in [Settings](/#/settings) page." ? `😆 Oops, there's an issue. No worries:
: "Unauthorized access, please enter access code in [auth](/login) page, or enter your OpenAI API Key.", \\ 1 New here? [Click to start chatting now 🚀](${SAAS_CHAT_UTM_URL})
\\ 2 Want to use your own OpenAI resources? [Click here](/#/settings) to change settings `
: `😆 Oops, there's an issue. Let's fix it:
\ 1 New here? [Click to start chatting now 🚀](${SAAS_CHAT_UTM_URL})
\ 2 Using a private setup? [Click here](/#/auth) to enter your key 🔑
\ 3 Want to use your own OpenAI resources? [Click here](/#/settings) to change settings
`,
NOT_FOUND_ERR: "Not Found.", NOT_FOUND_ERR: "Not Found.",
BACKEND_ERR: "后端请求错误,更换 **模型** 试一下吧。", BACKEND_ERR: "后端请求错误,更换 **模型** 试一下吧。",
}, },
Auth: { Auth: {
Return: "Return",
Title: "Need Access Code", Title: "Need Access Code",
Tips: "Please enter access code below", Tips: "Please enter access code below",
SubTips: "Or enter your OpenAI or Google API Key", SubTips: "Or enter your OpenAI or Google API Key",
Input: "access code", Input: "access code",
Confirm: "Confirm", Confirm: "Confirm",
Later: "Later", Later: "Later",
SaasTips: "Too Complex, Use Immediately Now",
TopTips:
"🥳 NextChat AI launch promotion: Instantly unlock the latest models like OpenAI o1, GPT-4o, Claude-3.5!",
}, },
Midjourney: { Midjourney: {
SelectImgMax: (max: number) => `Select up to ${max} images`, SelectImgMax: (max: number) => `Select up to ${max} images`,
@ -346,6 +356,14 @@ const en: LocaleType = {
NoAccess: "Enter API Key to check balance", NoAccess: "Enter API Key to check balance",
}, },
Access: { Access: {
SaasStart: {
Title: "Use NextChat AI",
Label: " (Most Cost-Effective Option)",
SubTitle:
"Maintained by NextChat, zero setup needed, unlock OpenAI o1, GPT-4o," +
" Claude-3.5 and more",
ChatNow: "Start Now",
},
AccessCode: { AccessCode: {
Title: "Access Code", Title: "Access Code",
SubTitle: "Access control Enabled", SubTitle: "Access control Enabled",
@ -506,7 +524,7 @@ const en: LocaleType = {
ApiKey: { ApiKey: {
Title: "API Key", Title: "API Key",
SubTitle: "Obtain your API Key from Google AI", SubTitle: "Obtain your API Key from Google AI",
Placeholder: "Enter your Google AI Studio API Key", Placeholder: "Google AI API Key",
}, },
Endpoint: { Endpoint: {
@ -576,8 +594,7 @@ const en: LocaleType = {
}, },
Store: { Store: {
DefaultTopic: "New Conversation", DefaultTopic: "New Conversation",
BotHello: BotHello: "Hello! How can I assist you today?",
"Hello! How can I assist you today?\n\n1.Model selection: Click on the robot icon below to **view the instructions** and select the appropriate model\n2.Try to use `gemini-pro`",
Error: "Something went wrong, please try again later.", Error: "Something went wrong, please try again later.",
Prompt: { Prompt: {
History: (content: string) => History: (content: string) =>