feat: close #2638 hide auth page and use better unauth tips

This commit is contained in:
Yidadaa
2023-08-15 22:50:42 +08:00
parent 840277f584
commit ed62c87156
3 changed files with 21 additions and 4 deletions

View File

@@ -1,12 +1,16 @@
import { getClientConfig } from "../config/client";
import { SubmitKey } from "../store/config";
import { LocaleType } from "./index";
// if you are adding a new translation, please use PartialLocaleType instead of LocaleType
const isApp = !!getClientConfig()?.isApp;
const en: LocaleType = {
WIP: "Coming Soon...",
Error: {
Unauthorized:
"Unauthorized access, please enter access code in [auth](/#/auth) page.",
Unauthorized: isApp
? "Invalid API Key, please check it in [Settings](/#/settings) page."
: "Unauthorized access, please enter access code in [auth](/#/auth) page, or enter your OpenAI API Key.",
},
Auth: {
Title: "Need Access Code",