tests-passed

This commit is contained in:
2025-07-31 18:55:59 +03:00
parent b7abb8d8a1
commit e7230ba63c
126 changed files with 8326 additions and 3207 deletions

View File

@@ -119,7 +119,7 @@ const AutoTranslator = (props: { children: JSX.Element; language: () => Language
]
if (textElements.includes(element.tagName)) {
// Ищем прямые текстовые узлы внутри элемента
const directTextNodes = Array.from(element.childNodes).filter(
const directTextNodes = Array.from(element.childNodes).where(
(child) => child.nodeType === Node.TEXT_NODE && child.textContent?.trim()
)