Website Building » Squarespace » How Do I Add Google Translate to Squarespace?

How Do I Add Google Translate to Squarespace?

Last updated on December 13, 2022 @ 3:17 am

Google Translate is a free online machine translation service provided by Google. It can translate text from one language to another.

It supports over 100 languages at various levels.

Squarespace is a popular website builder that allows users to create and customize their own websites. It offers a wide range of features and templates to choose from.

You can add Google Translate to your Squarespace website using the following method:

PRO TIP: Please be aware that adding Google Translate to your Squarespace website may not result in an accurate translation of your site’s content. Google Translate is an automated service and does not take into account the context of your website’s content, so some translations may be inaccurate or misleading. Use this service at your own risk.
  1. Log in to your Squarespace account and go to the Settings panel.
  2. Click on the Advanced tab and then select Code Injection from the options.
  3. Paste the following code into the box:
    <!-- Add Google Translate -->
    <div id="google_translate_element"></div><script type="text/javascript">
    function googleTranslateElementInit() {
    new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
    }
    </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
  4. Click Save. The Google Translate widget will now be added to your website.

Note:

  1. The code provided in this article is for Squarespace version 7.1 and above only.
  2. If you’re using an earlier version of Squarespace, you can add Google Translate by following the instructions here.

Adding Google Translate to your Squarespace website can be done by following the simple steps outlined in this article. This will allow you to make your website more accessible to users from all over the world who speak different languages.

Drew Clemente

Drew Clemente

Devops & Sysadmin engineer. I basically build infrastructure online.