From 1ab9efdf07c53ffa02dcb1de948b99c8353a9a97 Mon Sep 17 00:00:00 2001 From: sijinhui Date: Wed, 25 Sep 2024 18:44:07 +0800 Subject: [PATCH] fix merge bug --- app/locales/en.ts | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/app/locales/en.ts b/app/locales/en.ts index f3dc9060c..1b01e06a7 100644 --- a/app/locales/en.ts +++ b/app/locales/en.ts @@ -1,7 +1,7 @@ import { getClientConfig } from "../config/client"; import { SubmitKey } from "../store/config"; 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 const isApp = !!getClientConfig()?.isApp; @@ -9,18 +9,28 @@ const en: LocaleType = { WIP: "Coming Soon...", Error: { Unauthorized: isApp - ? "Invalid API Key, please check it in [Settings](/#/settings) page." - : "Unauthorized access, please enter access code in [auth](/login) page, or enter your OpenAI API Key.", + ? `πŸ˜† Oops, there's an issue. No worries: + \\ 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.", BACKEND_ERR: "εŽη«―θ―·ζ±‚ι”™θ――οΌŒζ›΄ζ’ **ζ¨‘εž‹** 试一下吧。", }, Auth: { + Return: "Return", Title: "Need Access Code", Tips: "Please enter access code below", SubTips: "Or enter your OpenAI or Google API Key", Input: "access code", Confirm: "Confirm", 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: { SelectImgMax: (max: number) => `Select up to ${max} images`, @@ -346,6 +356,14 @@ const en: LocaleType = { NoAccess: "Enter API Key to check balance", }, 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: { Title: "Access Code", SubTitle: "Access control Enabled", @@ -506,7 +524,7 @@ const en: LocaleType = { ApiKey: { Title: "API Key", SubTitle: "Obtain your API Key from Google AI", - Placeholder: "Enter your Google AI Studio API Key", + Placeholder: "Google AI API Key", }, Endpoint: { @@ -576,8 +594,7 @@ const en: LocaleType = { }, Store: { DefaultTopic: "New Conversation", - BotHello: - "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`", + BotHello: "Hello! How can I assist you today?", Error: "Something went wrong, please try again later.", Prompt: { History: (content: string) =>