MCPcopy Create free account
hub / github.com/DenOfEquity/ersatzForge / getTranslation

Function getTranslation

javascript/localization.js:59–72  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

57}
58
59function getTranslation(text) {
60 if (!text) return undefined;
61
62 if (translated_lines[text] === undefined) {
63 original_lines[text] = 1;
64 }
65
66 var tl = localization[text];
67 if (tl !== undefined) {
68 translated_lines[tl] = 1;
69 }
70
71 return tl;
72}
73
74function processTextNode(node) {
75 var text = node.textContent.trim();

Callers 3

processTextNodeFunction · 0.85
processNodeFunction · 0.85
localizeWholePageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected