Skip to content

Commit

Permalink
Add notranslate to prevent translating code (#769)
Browse files Browse the repository at this point in the history
  • Loading branch information
maple3142 authored Mar 1, 2024
1 parent 35b9f78 commit eaa762d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ NexT.utils = {
box = document.createElement('div');
box.className = 'code-container';
container.wrap(box);

// add "notranslate" to prevent Google Translate from translating it, which also completely messes up the layout
box.classList.add('notranslate');
}
target = box;
}
Expand Down

0 comments on commit eaa762d

Please sign in to comment.