Show globe icon on language button

This commit is contained in:
2026-02-04 15:30:30 +01:00
parent f58ef641b4
commit 6b13827041

View File

@@ -210,14 +210,9 @@ async function main() {
main();
function languageEmoji(lang) {
const map = { en: "🇬🇧", de: "🇩🇪" };
return map[lang] || "🌐";
}
function updateLanguageButtons() {
document.querySelectorAll(".lang-button").forEach((btn) => {
btn.textContent = languageEmoji(getLanguage());
btn.textContent = "🌐";
btn.title = t("lang.label");
btn.setAttribute("aria-label", t("lang.label"));
});