Creating multilingual content pages
Till now, we created pages in the en
(English) language, which is the default language in Sitecore. Sitecore supports all the languages or cultures that are supported by the .NET framework.
In this recipe, we will create content pages in multiple languages (English, Spanish, and Italian) and create a language switcher component to switch and view pages in these languages.
How to do it…
Sitecore by default contains the en
(English) language. We will first create es-ES
(Spanish) and it-IT
(Italian) languages:
- From the Content Editor, select the
/sitecore/system/Languages
item. Add a new language, Spanish, as shown in the following image. Similarly, create the Italian language as well: - Now, from the Content Editor, ...
Get Sitecore Cookbook for Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.