fix: makes preview overlay also work with other languages

This commit is contained in:
Chris Rohrer
2024-01-06 10:55:14 +01:00
parent a196a648ff
commit 4dd85d7d5d
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -45,6 +45,9 @@ function processTextNode(node) {
var tl = getTranslation(text);
if (tl !== undefined) {
node.textContent = tl;
if (text && node.parentElement) {
node.parentElement.setAttribute("data-original-text", text);
}
}
}