Check if romanizations already exist in database; transliterate the whole sentence instead of just one word

This commit is contained in:
2025-03-06 21:21:21 -05:00
parent d006ee8887
commit 72747015ed
2 changed files with 29 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ function updateTranslations(response) {
const romanizations = data;
document.querySelectorAll(".romanizationText").forEach(element => {
if (element.id.replace("Romanization", "") in romanizations) {
element.textContent = "(" + romanizations[element.id.replace("Romanization", "")][0] + ")";
element.textContent = "(" + romanizations[element.id.replace("Romanization", "")] + ")";
}
});
});