Check if romanizations already exist in database; transliterate the whole sentence instead of just one word
This commit is contained in:
@@ -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", "")] + ")";
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user