The following tutorial demonstrates how to add a Language selector in your widget's designer. You use the Language selector to select different cultures, defined in your Sitefinity CMS application.
For more information on the scripts that you must load, see List of selectors scripts reference.
NOTE: You must use the sf-site attribute with the Language selector.
To load the culture for a specific site, you use the sf-site attribute. You can use the optional attribute sf-culture to access the selected culture. The value of these attributes are scope properties -sfCulture and sfSite - that you must add in your widget's controller:
NOTE: If you do not supply an sfSite attribute value, the Language selector is not rendered .
You can combine The Language selector to work alongside the Site selector to display the selected site's available cultures.
The sf-site attribute has the following structure of the JSON properties:
The sf-culture attribute has the following structure of the JSON properties:
Sign up for our free beginner training. Boost your credentials through advanced courses and certification. Register for Sitefinity training and certification.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important