Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

227
Views
Google Translate not working with dynamic content in web HTML

To achieve a multi-language website, I have attached the below code in the HTML.

reference: https://www.w3schools.com/howto/howto_google_translate.asp

<div id="google_translate_element"></div>
<script>
  function googleTranslateElementInit() {
      new google.translate.TranslateElement(
         {pageLanguage: 'en'},
          'google_translate_element'
      );
  }

</script>
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script

But translation does not work with dynamic rendering content. if I refresh the page then it will work.

anyone could help? how can I achieve translation without refreshing the page?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!