Show globe icon on language button
This commit is contained in:
@@ -210,14 +210,9 @@ async function main() {
|
|||||||
|
|
||||||
main();
|
main();
|
||||||
|
|
||||||
function languageEmoji(lang) {
|
|
||||||
const map = { en: "🇬🇧", de: "🇩🇪" };
|
|
||||||
return map[lang] || "🌐";
|
|
||||||
}
|
|
||||||
|
|
||||||
function updateLanguageButtons() {
|
function updateLanguageButtons() {
|
||||||
document.querySelectorAll(".lang-button").forEach((btn) => {
|
document.querySelectorAll(".lang-button").forEach((btn) => {
|
||||||
btn.textContent = languageEmoji(getLanguage());
|
btn.textContent = "🌐";
|
||||||
btn.title = t("lang.label");
|
btn.title = t("lang.label");
|
||||||
btn.setAttribute("aria-label", t("lang.label"));
|
btn.setAttribute("aria-label", t("lang.label"));
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user