How to add Google Translate to your Booking Website?
Google Translate allows you to translate the content of your web page through a snippet in which you can select different languages.
To add a Google Translate snippet to your Booking Website, please follow the next steps:
- Go to your Hostaway Dashboard > Booking Website > Settings > Advanced
- Scroll down to Scripts > Head Script
- Enter the code below > Save
Google Translate Script
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en'},
'google_translate_element');
}
</script>
The Google Translate snippet is displayed in the top right corner of your Hostaway dashboard and also in the mobile app.
In your Booking Website, you will see something similar to the following image:
Although Google Translate is a good option for translating your website, at Hostaway, we offer you the Booking Website Localization feature, with which you can choose between different languages - Italian, French, Spanish, and Portuguese - for different Booking Websites.