Replace text on map with translation
parent
2b8bed7587
commit
0de268eec5
@ -1,3 +1,6 @@
|
|||||||
function updateTranslations(response) {
|
function updateTranslations(response) {
|
||||||
console.log(response)
|
const translations = JSON.parse(response);
|
||||||
|
document.querySelectorAll(".languageText").forEach(element => {
|
||||||
|
element.textContent = translations[element.id.replace("Text", "")];
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue