Languages, Widgets & Sidebars

Internationalization »Google Translate Widget

The Google Translate Widget allows you to automatically translate your site content into any language that is supported by Google Translate.

Enabling the Google Translate Widget on your site

Here’s an example of how the Google Translate Widget might look on your site, depending on your theme and placement in a sidebar or footer:

translate-this-blog

To add the Google Translate Widget to your site, launch your Customizer by going to My Site(s) → Customize → Widgets.

widget

Click on the area of your site where you’d like the widget to appear, then click the Add a Widget button. In the list that appears on the right, scroll down or use the search field to find the Google Translate Widget. Click to add it to the widget area you’ve selected.

You can add a custom title or leave it blank.

Add a custom title for the widget.

Add a custom title for the widget.

Then, click Save & Publish to add the widget to your live site.

↑ Table of Contents ↑

Using the Google Translate Widget

Now that you’ve enabled your Google Translate Widget, site viewers can click on the arrow in the “Select Language” menu to view a list of languages available for translation. Clicking on a language in the list will translate the site’s content into that language.

Clicking the dropdown menu displays a pop-up list of languages.

Clicking the dropdown menu displays a pop-up list of languages.

Once a site is translated, a Google Translate bar will appear at the top of the site to confirm the current language. Here, you can click the arrow next to the language to display the full list of languages to translate the site into a different one, or click on “Show Original” to return to the site’s original language. You can also switch languages right from the widget, too.

A blog post in its original English version.

A blog post in its original English version.

The same blog post, translated into French with the Google Translate Widget.

The same blog post, translated into French with the Google Translate Widget.

↑ Table of Contents ↑

Sending your visitors to a specific language version

Recommended for advanced users, an alternative to the widget is using an automatic translation link to send visitors to a version of your site in a specific language. If you append a language code to a url, your content will be automatically translated to specific language. For example:

  • ?lang=id translates the page into Indonesian
  • ?lang=de translates the page into German
  • ?lang=es translates the page into Spanish
  • ?lang=fr translates the page into French
  • ?lang=zh-TW translates the page into Chinese Taiwanese

For most languages, two-letter lowercase abbreviations of languages will work. To find the language code of your choice, use this list of ISO 639-1 codes. Please note, however, that some languages need locales appended to the abbreviation, such as ?lang=zh-TW for Chinese Taiwanese.

Remember that the Google Translate Widget must be enabled on your site for the translation URL to work.

Read more on using widgets on WordPress.com.

Not quite what you're looking for?

Get Help