How to enable multiple languages on the Knorish website using Google Translate?

How to enable multiple languages on the Knorish website using Google Translate?

Easily enable multiple languages on your Knorish website by integrating Google Translation. This feature allows visitors to select their preferred language, and Google Translate will automatically convert the page for them.

What will be displayed on your website once the integration is complete?

Here's how the Google Translate feature will be displayed on your webpage:


Depending on the version of the page builder you are using, you may need to follow these steps to activate Google Translate on your Knorish website.


Codes for implementation

You need to use below sample code to implement Google Translate on your knorish website.


Script API


<script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>


JavaScript Code to trigger Google Translate


if(getParameterByName('edit') !== 'true') {

   function googleTranslateElementInit() {

      new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');

   }

}


HTML Code to place it on the UI

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


Utilizing Google Translate on the v3 page builder version

Follow the instructional video below for a detailed, step-by-step guide on how to utilize Google Translate on your Knorish website.


Utilizing Google Translate on the v2 page builder version

Follow the instructional video below for a detailed, step-by-step guide on how to utilize Google Translate on your Knorish website.



    • Related Articles

    • How to enable UTM Parameters Tracking on Knorish (for ads performance debugging)?

      Knorish can now save UTM parameters passed by ads to the landing page to checkout and the publisher can download the same from the "Course transactions" and "Bundle transactions" pages inside the 'Earning' menu. Important: We support UTM parameter ...
    • How to enable URL redirection on my Knorish site?

      URL redirect (also known as URL forwarding) is a technique which is used to redirect your domain’s visitors to a different URL. With the integrated URL redirecting feature on Knorish, you can forward your older URLs to new URLs. This feature is used ...
    • SEO Capabilities and Functionalities On Knorish

      This is a detailed article on the SEO capabilities available on your Knorish Site - A Complete Checklist of On Page SEO functionalities that are available onKnorish. Several functionalities already exist for Knorish users to enable a robust On- Page ...
    • How to do SEO effectively on my Knorish Site and pages?

      SEO is a task made easy with Knorish. To enable Google to crawl through your course website it is crucial to make sure that the site is indexed on Google and that the search engine is not set to discourage indexing your course website. To learn how ...
    • How can I enable affiliate marketing for my online academy

      What is affiliate marketing? You can share revenue with one or many affiliates for each lead or buying customer who joins your courses due to an affiliate’s marketing efforts. A course creator pays a certain percentage of profit or commission to the ...