refactor: Split config files

This commit is contained in:
Gabe
2025-09-01 18:56:48 +08:00
parent c4fba1c905
commit 2bfb27f346
17 changed files with 821 additions and 863 deletions

View File

@@ -3,7 +3,6 @@ import { fetchData } from "../libs/fetch";
import {
URL_CACHE_TRAN,
KV_SALT_SYNC,
URL_GOOGLE_TRAN,
OPT_LANGS_BAIDU,
OPT_LANGS_TENCENT,
OPT_LANGS_SPECIAL,
@@ -54,7 +53,7 @@ export const apiGoogleLangdetect = async (text) => {
tl: "zh-CN",
q: text,
};
const input = `${URL_GOOGLE_TRAN}?${queryString.stringify(params)}`;
const input = `https://translate.googleapis.com/translate_a/single?${queryString.stringify(params)}`;
const init = {
headers: {
"Content-type": "application/json",