(node)
| 38 | } |
| 39 | |
| 40 | function processTextNode(node) { |
| 41 | var text = node.textContent.trim(); |
| 42 | |
| 43 | if (!canBeTranslated(node, text)) return; |
| 44 | |
| 45 | var tl = getTranslation(text); |
| 46 | if (tl !== undefined) { |
| 47 | node.textContent = tl; |
| 48 | if (text && node.parentElement) { |
| 49 | node.parentElement.setAttribute("data-original-text", text); |
| 50 | } |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | function processNode(node) { |
| 55 | if (node.nodeType == 3) { |
no test coverage detected