- Use Cases: The Language Selector is used so the user can select a language from a list of configured languages and be redirected to the appropriate page. If required, the Language Selector should be created once per site and added to the pages.
- Dependencies
- SiteNavigation required. The Language Selector must be placed within the SiteNavigation of the page.
- Configurable Languages: The list of languages can be configured and it will reflect on all the pages where the Language Selector was added to.
LanguageSettings:
LanguageDefinition:
Creating a Language Selector
- In Content Editor, go to the global market folder of your site.
- For example: /sitecore/content/AWTSites/Templates/MarketRepositoryFolder/MarketSharedContentFolder/Global)
- Create a new LanguageSettings item from the LanguageSettings template in the global market folder of your site.
- Fill in optional field: Show Language Selector
- Create one or more LanguageDefinition items (which will be every language available) from the LanguageDefinition template within the LanguageSettings item created in the previous step.
- Fill in optional fields: Code, Name
- In the Page's presentation details, insert the LanguageSelector rendering into /awt-header/awt-header-language-selector placeholder (you can also insert into the /awt-header/awt-header-mobile-language-selector placeholder for the mobile version).
- Associate the LanguageSettings item as the data source.
- None : There are no variants for this component.
- There are currently no known issues with this component