mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Add client config api
This commit is contained in:
@@ -63,7 +63,8 @@ export function i18n_handle_request(req: Request) {
|
||||
const a = req.headers.get("Accept-Language");
|
||||
const l = (a
|
||||
? pick(LANGUAGES, a) || pick(LANGUAGES, a, { loose: true })
|
||||
: null) || "en";
|
||||
: null) ||
|
||||
"en";
|
||||
const params = new URLSearchParams();
|
||||
params.append("lang", l);
|
||||
for (const p of u.searchParams.entries()) {
|
||||
|
||||
Reference in New Issue
Block a user