Replace text on map with translation

master
Aadhavan Srinivasan 1 month ago
parent 2b8bed7587
commit 0de268eec5

@ -1,3 +1,6 @@
function updateTranslations(response) {
console.log(response)
const translations = JSON.parse(response);
document.querySelectorAll(".languageText").forEach(element => {
element.textContent = translations[element.id.replace("Text", "")];
});
}

Loading…
Cancel
Save