logo changes with lang

This commit is contained in:
luptmoor
2026-03-03 13:21:16 +01:00
parent e404926146
commit 9273ff3191
2 changed files with 10 additions and 1 deletions

View File

@@ -56,6 +56,15 @@ async function setLang(lang, save = true) {
document.getElementById("lang-de").classList.toggle("active", lang === "de");
document.getElementById("lang-en").classList.toggle("active", lang === "en");
// Change logo
const logo = document.getElementById("logo");
if (lang === "de") {
logo.src = "assets/endex_Logo_endex-Logo_Dual-DE.svg";
} else {
logo.src = "assets/endex_Logo_endex-Logo_Dual-EN.svg";
}
} catch (err) {
console.error("Language file could not be loaded:", err);
}