Tuesday, August 14, 2018

How To Build A Drupal 8 Multilingual Site In 5 Easy Step?

by Kaushal Shah (writer), , August 05, 2016

Drupal 8 core is an advanced CMS that includes multilingual feature. In this article we have provided easy 5-step tutorial to build your first Drupal 8 multilingual site.

The advantages of developing a website on Drupal are far-reaching. Many retailers globally have experienced the power of its out-of-the-box tools and features that help to create an outstanding website.

However, with the arrival of Drupal 8, the platform was completely revamped with over 200 features and enhancements. It offers a new suite of tools for your content supply chain and ability to interact with countless applications. Most importantly, it offers a whole new world of foreign languages to develop multilingual sites fast and easy.

Drupal 8 can be natively installed in 94 languages. You can select the preferred languages right at the first step of installation. You can even assign the languages to any component of any software – comments, configuration, image styles, etc. The out-of-the-box languages also help you to create and deliver amazing internationalized experiences. If you’re into Drupal CMS development or planning to create a multilingual site using Drupal 8, then here’s our five step tutorial you need to follow.

Build A Drupal 8 Multilingual Site in 5 Steps:

Step 1 – Enable Translation Modules:

For translating your site, you will have to enable the four core Drupal modules shown below:

Step 2 – Translate Drupal core:

Let’s first translate of the language within Drupal. The example site images below includes Spanish as an option.

Navigate to Configuration > Languages, and click “Add Language”.

Now, choose the language you want to add and click “Add Language”.

Next, you need to click on the percentage area under the "Interface Translation".

As displayed in the image below, you will be able to search for and translate all the language strings manually:

Step 3 – Translate Your Own Website Set-up:

Go to Structure > Content types, you will be able to see a “Translate” option for the content types:

Within the next screen, you will notice a similar “Translate” link for all the fields:

Step 4 – Add Content:

Now you can add content to your Drupal website:

Go to Configuration > Content language & translation, and check the box next to “Content”.

Also, click on the box "Show language selector on create and edit pages".

By checking the "Show language selector on create and edit pages" box, you will be able to select the language you want to write in. Now add content to your site.

After you save the content, a "Translate" tab will be visible:

You need to click “Add” in order to create a new version of that content.

Congratulations! Without using any contributed modules you can begin translating your Drupal site now.

Step 5 – Allow Users to Switch Between Languages:

Go to Structure > Blocks, and then click on “Place Blocks”.

Now, click on “Place block” next to the “Language Switcher” block:

Lastly, click on “Save block” and go to the front of your website and check that the Language Switcher is working.

Hope this tutorial helps you set up your own Drupal 8 multilingual site. You can share your opinions on the tutorial in the comments.

About the Writer

Kaushal Shah is a writer for BrooWaha. For more information, visit the writer's website.
Want to write articles too? Sign up & become a writer!

0 comments on How To Build A Drupal 8 Multilingual Site In 5 Easy Step?

Add A Comment!

Click here to signup or login.

Rate This Article

Your vote matters to us