in src/contentScripts/functions.ts [260:272]
export function applyCachedTranslation(
pageMap: PageMap,
nodeMap: NodeMap,
cache: CacheTextMap
): void {
Object.entries(pageMap).forEach(([id, page]) => {
const translated = cache[page];
const node = nodeMap[Number(id)];
if (node && translated) {
node.textContent = translated;
}
});
}