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

354
Views
how to save google translator data into local storage?

Recently I added a google translator on my website but the translation works only a single time. How can I store the user-selected language into local storage and use the local storage another time when the user comes again.

The code is: and the website link is https://shubhamnegi123.github.io/nav-education/

 <div class="top-header"> 
           <div id="translator"></div> 
           <script src="https://translate.google.com/translate_a/element.js? 
                   cb=googleTranslateElementInit">
           </script>
           <script>       
                    function googleTranslateElementInit() { 
                    new google.translate.TranslateElement(           
                    { pageLanguage: "en" },       
                       "translator"           
                             );       
                     } 
           </script>
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!