feat: lang
TS Lint / Oxlint (push) Successful in 43s
TS Lint / TypeScript (push) Successful in 49s
TS Lint / ESLint (push) Successful in 1m10s

This commit is contained in:
2026-07-14 10:45:35 +02:00
parent d969b9e21b
commit c7b1f3ed49
16 changed files with 237 additions and 55 deletions
+11
View File
@@ -0,0 +1,11 @@
import { getCookie, setCookie } from "./cookies";
export function getLang() {
const params = new URLSearchParams(document.location.search);
const paramsLang = params.get("lang");
if (paramsLang !== null) {
setCookie("lang", paramsLang);
return paramsLang;
}
return getCookie("lang", "en");
}