Notes on Website Translation

This website is written in English and Spanish, powered by TranslatePress WordPress plugin and Google Cloud Translation API:

For automatic translations into other languages, you can use the Google Translate widget below:

I am sharing the HTML code below for website owners who might find it helpful. PROTIP: ask a chatbot for help if you want to customize the languages or the main functionality of the widget:

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

<script type="text/javascript">
  function googleTranslateElementInit() {
    new google.translate.TranslateElement({
      pageLanguage: 'en',
      includedLanguages: 'en,es,fr,ca,eu,gl,it,pt,de,cn,ar,hi,bn,ru,ja,el,iw,pl,sv,ro,no,ko,nl,da,th,vi,el,uk,sl,sr,sk,tr,fi,lv,lt,et,id,hu,hr,ur,ms',
      layout: google.translate.TranslateElement.InlineLayout.SIMPLE,
      gaTrack: true,
      targetLanguage: 'en'
    }, 'google_translate_element');

There are other professional and affordable alternatives for AI-powered website translations, such as Weglot, which I have also used on my websites in the past. I will update this page with more details on my experience with multilingual websites and translation tools and services. Chatbot battle on website translations and SEO tips coming soon 😎

Leave a Reply

Your email address will not be published. Required fields are marked *