Multi-lingual with Sitecore

Like multi-site is an out of the box(OOTB) feature, multi-lingual is also one of it. This is very handy when you have to create a site in different languages. Also you can set up multi lingual site with minimal efforts.

Let’s see a demo; we will add Spanish as an additional language.

  1. Go to Sitecore >> Content Editor.
  2. Navigate to Languages (/sitecore/system/Languages)
  3. Right Click >> Insert >> Language.
    1
  4. Click on the drop down and select Spanish from Spain language.
    2
  5. Click Next >> Next >>Next >> Close.
    3
  6. Publish this language.
  7. Navigate to the Home item (/sitecore/content/Home)
  8. Click on Language version button >> Click on Spanish option language.
    4
  9. Click on Add new version.
    5
  10. Enter the data in Title and Text field.
    6
  11. Publish the Home item. Remember to check if the Spanish checkbox is checked.
    7
  12. Once the publish operation is completed.
  13. Browse your local instance, in my case http://sitecoredemo.sc/
    8
  14. Now to browse Spanish site, browse http://sitecoredemo.sc/es-ES
    9

Our multi-lingual setup is done, it is very simple and with no code involved. There are couple of things we need to understand are how the language read by Sitecore to change the content.

  1. Sitecore looks for language query string (?sc_lang=en)
  2. Language embedded in the URL (http://sitecoredemo.sc/es-ES)
  3. If both the above are missing then it checks for Language cookie managed by Sitecore for the context language.

Recommended and SEO friendly is the second approach to embed the language in the URL. We need to design the language selector module that can be part of Header which will give your end users an idea that the website is multi lingual and they can access the site in whichever language they wish to.

Thank you.. Keep Learning.. Keep Sitecoring.. 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s