Add translate no attrb
This commit is contained in:
@@ -319,6 +319,9 @@ export async function translateHTML(html: string, reverse:boolean, charArg:simpl
|
||||
}
|
||||
|
||||
for (const child of Array.from(node.childNodes)) {
|
||||
if(node.nodeType === Node.ELEMENT_NODE && (node as Element)?.getAttribute('translate') === 'no'){
|
||||
continue
|
||||
}
|
||||
await translateNode(child, node);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user