(node: Node)
| 49 | |
| 50 | // Check if the node needs to be translated |
| 51 | export function skipNode(node: Node): boolean { |
| 52 | return !node || !node.textContent?.trim() || hasLoadingSpinner(node) || hasRetryTag(node); |
| 53 | } |
| 54 | |
| 55 | // Check if the node or any of its children contains a loading spinner |
| 56 | export function hasLoadingSpinner(node: Node): boolean { |
no test coverage detected