This commit is contained in:
2023-06-10 10:53:48 +08:00
parent f64b1ebe61
commit a5488dcd35
9 changed files with 49 additions and 43 deletions

View File

@@ -6,8 +6,8 @@ import { pick } from "accept-language-parser/";
const whole_maps = new Map<string, I18NMap>();
const LANGUAGES = ["zh-cn"];
type MODULE = "common" | "settings";
const MODULES: MODULE[] = ["common", "settings"];
type MODULE = "common" | "settings" | "task";
const MODULES: MODULE[] = ["common", "settings", "task"];
export async function load_translation(signal?: AbortSignal) {
const base = import.meta.resolve("../translation").slice(8);