Set up the translations module
Overview
You can send for translation all ASP.NET Core widgets, both built-in and dynamic, using the Translations module.
By default, Sitefinity CMS has a registration only for the Content block widget.
You must explicitly register all other widgets in the translation module settings.
Register a widget for translation
To create a new registration, perform the following:
- In Sitefinity CMS backend, navigate to Administration » Settings » Advanced.
- In the left navigation, click Translations » Strategies.
- Create a new entry of type
DecoupledControlStrategy
.
Or enter the full name of the strategy manually: Telerik.Sitefinity.Translations.Strategies.DecoupledControlStrategy
- Enter the name of the widget.
NOTE: For a list of built-in widget names, see Sitefinity GitHub repository » ViewComponents.
- In PropertyMappings, list all of the properties that you want to translate.
For more information, see Translations module settings.
NOTE: Nested properties are separated by a period (.) in the path.
For example, MyCompositeProp.MyTextField