i18n: fix solid-delete

This commit is contained in:
Jean-Baptiste Pasquier
2020-10-22 13:48:49 +02:00
parent b941c00144
commit 0d4c2738d8
4 changed files with 9 additions and 3 deletions

View File

@ -39,6 +39,12 @@ class JsI18n {
if (attr == "html") {
this.translateNodeContent(node, k);
} else {
if(node.tagName == "SOLID-DELETE") {
let button = node.querySelector('button');
if(button != null) {
this.translateNodeContent(button, k);
}
}
this.translateNodeContent(node.attributes[attr], k);
}
}