|
|
@ -17,5 +17,11 @@ function updateTranslations(response) {
|
|
|
|
.then((data) => {
|
|
|
|
.then((data) => {
|
|
|
|
elem.classList.toggle("loading");
|
|
|
|
elem.classList.toggle("loading");
|
|
|
|
console.log(data);
|
|
|
|
console.log(data);
|
|
|
|
|
|
|
|
const romanizations = data;
|
|
|
|
|
|
|
|
document.querySelectorAll(".romanizationText").forEach(element => {
|
|
|
|
|
|
|
|
if (element.id.replace("Romanization", "") in romanizations) {
|
|
|
|
|
|
|
|
element.textContent = "(" + romanizations[element.id.replace("Romanization", "")][0] + ")";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|