First things first, you need to install a WordPress plugin called Google Language Translator.

 
Screenshot 2023 06 11 at 19 18 29 Translate WordPress – Google Language Translator

This useful plugin allows users to translate your site on the fly, as well as individual posts/pages, categories and tags, menus and widgets, and all other areas of your site.

 

Aside from the free Google automatic machine translation and the ability to translate different sections of your website, this plugin also allows users to make their own suggestions for better translations using a “Suggest better translation” popup. This way, if you have a big visitor base, you can give them a chance to help improve the translation of your entire website. What’s also great is that you don’t have to bother with getting the API key or register or activate anything with Google.

 

Upon installation and activation of the plugin, head to Settings >> Google Language Translator in your WordPress admin dashboard. Here you will be able to configure all the translation settings according to your needs.

 
Google Language Translator Settings
 

The first thing you should do is check if the Plugin Status checkbox is marked (this will ensure that your plugin is activated). Next, you should pick the original language of your website.

 
Google Language Translator Settings
 

Then, you can proceed to select the languages you want to be translatable on your website. You can mark the ones you prefer, or simply click the Select All button if you want to enable all languages on the list.

 
Google Language Translator Settings
 

What’s also great about Google Language Translator is that it lets you display the translator in two different ways – either by using the language switcher or with a floating widget. We will go through the options of each one.

 

The Language Switcher Settings screen includes the options to pick the language switcher width, text, and background color, choose whether to show flag images (you can display up to 104 flags), show or hide Google branding, align the translator left or right, and so on.

 
Google Language Translator Settings
 

As we already mentioned, you will also have access to the Floating Widget settings. Once you choose the option to show the floating translation widget, more options will appear where you will be able to configure your custom text for the floating widget, background color, position, and more.

 
Google Language Translator Settings
 

After clicking on “show widget” and configuring its options, the only thing you have to do is save your settings at the bottom of the page, and your floating widget will display on every page on your website, like this:

 
Google Language Translator Preview
 

Now, if you want to place the language switcher into different areas of your website, you need to copy the shortcodes and/or theme function from the Usage screen. You have three different options at your disposal – the shortcode which you can insert into your pages or posts, the code you can use in your header, footer, or page templates, or the shortcode you can place in menus, pages or posts for the single language usage.

 
Google Language Translator Settings
 

Don’t forget to Save Changes when you’re done with configuring all the settings.

 

In case you also want to add the Google translator language switcher as a widget into one of the widget areas on your website, simply go to Appearance >> Widgets and find and drag the widget called Google Language Translator into any widget area you want (or click on the widget to open the dropdown, select the desired widget area, and hit the Add Widget button).

 
Google Language Translator Widget
 

If you want, you can change the title of your widget, and then hit the Save button.

 
Google Language Translator Widget
 

After adding your widget, you can go ahead and check out what your language switcher looks like live.

 
Google Language Translator Widget Preview
 

Aside from the ability to click on the flag of the desired country whose language you wish to translate your page to, you also have the option to click on the Select Language dropdown (like we did in the picture) to pick one the available languages instead.

Leave a Reply

Your email address will not be published. Required fields are marked *