title: How to select lang output in HTML with JavaScript?
body: <p>I'm developing WP site and I'm using Gtranslate for auto translating all content in the website. But I want to change some strings manually when language switches. </p>
  
  <p>I assume that first I need to target lang given value in HTML with if statement and only then lauch :</p>
  
  <pre><code>&lt;script&gt;
      document.body.innerHTML = document.body.innerHTML.replace(/Home/g, 'Main Page');
  &lt;/script&gt;'
  </code></pre>
  
  <p>What script should I write <a href="https://i.stack.imgur.com/jSdBB.jpg" rel="nofollow noreferrer">img</a> to target this part of the code?</p>