Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jemikanegara committed May 29, 2024
1 parent 969d9fb commit 81d26d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ function translateNodes(textNodes = [], language = "", apiKey = "", seoNodes = [
// If all translations are cached, directly update textNodes from cache
cleanTextNodes.forEach((node) => {
const text = node.fullText || node.textContent;
console.log("TEXT", text, node.fullText);

// If the translation is not available, cache the original text
if ((window.translationCache?.[window.location.pathname]?.[language]?.[text] || "").includes("weploy-untranslated")) {
Expand Down

0 comments on commit 81d26d5

Please sign in to comment.