How Can I Automatically Translate a URL with Query Params into Another Language?

if this will do, simple google widget

add this to your page head

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

Then place this on your page where you want to place the language dropdown

<div id="google_translate_element"></div>

This allows you to switch your entire site between languages in a single click from a dropdown

2 Likes