feat:personal changes

This commit is contained in:
EricYangXD 2023-04-05 18:50:55 +08:00
parent 17d6f3d715
commit 57dc81d39c
3 changed files with 17 additions and 15 deletions

View File

@ -1,5 +1,5 @@
export const OWNER = "Yidadaa";
export const REPO = "ChatGPT-Next-Web";
export const OWNER = "EricYangXD";
export const REPO = "ChatGPT-Next";
export const REPO_URL = `https://github.com/${OWNER}/${REPO}`;
export const ISSUE_URL = `https://github.com/${OWNER}/${REPO}/issues`;
export const UPDATE_URL = `${REPO_URL}#%E4%BF%9D%E6%8C%81%E6%9B%B4%E6%96%B0-keep-updated`;

View File

@ -42,17 +42,19 @@ export function getLang(): Lang {
const lang = getLanguage();
if (lang.includes("zh") || lang.includes("cn")) {
return "cn";
} else if (lang.includes("tw")) {
return "tw";
} else if (lang.includes("es")) {
return "es";
} else if (lang.includes("it")) {
return "it";
} else {
return "en";
}
// if (lang.includes("zh") || lang.includes("cn")) {
// return "cn";
// } else if (lang.includes("tw")) {
// return "tw";
// } else if (lang.includes("es")) {
// return "es";
// } else if (lang.includes("it")) {
// return "it";
// } else {
// return "en";
// }
return "en";
}
export function changeLang(lang: Lang) {

View File

@ -123,8 +123,8 @@ const DEFAULT_CONFIG: ChatConfig = {
historyMessageCount: 4,
compressMessageLengthThreshold: 1000,
sendBotMessages: true as boolean,
submitKey: SubmitKey.CtrlEnter as SubmitKey,
avatar: "1f603",
submitKey: SubmitKey.Enter as SubmitKey,
avatar: "1F92B",
fontSize: 14,
theme: Theme.Auto as Theme,
tightBorder: false,