Localisation - Adding Translate.com to your site

Translate.com is a service that takes the text on a website and translates it into the user's selected language. It has the ability to detect the browser language and auto-translate the page on first visit.

To add this service to your Learndot site:

  1. Create an account with Translate.com (free for testing up to 2 languages, and paid plans are available also
  2. Once logged in, click on the menu option Website Localizer
  3. Then click Add Website
  4. Work through the options provided in the popup:
    1. Website Info:
      1. What is the URL of your website? <please put in your Learndot URL>
      2. Website language: English
      3. Translate to: <choose languages> (free account supports 2 languages, paid plans support more)
    2. Copy code:
      1. Copy the code provided, it will look something like (your key will be unique):
      2. <script src="//wt-js.translate.com/translate.js" type="text/javascript"></script>
        <script type="text/javascript">
        TranslateJS.init({
        "key": "xxxxxxxxxxxxxxxxxxxx"
        });
        </script>
  5. In Learndot, edit the blurb called: skin.header.content.blurb (more on Blurbs)
  6. Paste the code from Google Translate into the pageHeader blurb at the top and press save
  7. View the landing page and test out the translate button

Note: There may or may not be a delay (~4h) before the auto-detecting of the browser language is picked up by translate.com.