Replace text on map with translation

This commit is contained in:
2025-03-02 22:02:02 -05:00
parent 2b8bed7587
commit 0de268eec5

View File

@@ -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", "")];
});
}