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.
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.
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>
Follow the instructional video below for a detailed, step-by-step guide on how to utilize Google Translate on your Knorish website.
Follow the instructional video below for a detailed, step-by-step guide on how to utilize Google Translate on your Knorish website.