feat: close #1478 new chat use global config as default

This commit is contained in:
Yidadaa
2023-05-20 00:39:52 +08:00
parent 203ac0970d
commit b1ba3df989
19 changed files with 97 additions and 223 deletions

View File

@@ -13,7 +13,7 @@ import CS from "./cs";
import KO from "./ko";
import { merge } from "../utils/merge";
export type { LocaleType } from "./cn";
export type { LocaleType, RequiredLocaleType } from "./cn";
export const AllLangs = [
"en",
@@ -32,6 +32,22 @@ export const AllLangs = [
] as const;
export type Lang = (typeof AllLangs)[number];
export const ALL_LANG_OPTIONS: Record<Lang, string> = {
cn: "简体中文",
en: "English",
tw: "繁體中文",
fr: "Français",
es: "Español",
it: "Italiano",
tr: "Türkçe",
jp: "日本語",
de: "Deutsch",
vi: "Tiếng Việt",
ru: "Русский",
cs: "Čeština",
ko: "한국어",
};
const LANG_KEY = "lang";
const DEFAULT_LANG = "en";