Localizing linked content
Linked content is content such as carousels and grids that link to other content items. When linked content is localized, Dynamic Content will preserve the way that the parent item, for example the carousel or grid, is linked to its child items such as the individual images and slides.
There are a few rules that define how linked content is localized:
- Only one variant of a child item will be created for each locale. So if a carousel and grid link to the same image item and both items are localized, only one variant of the image will be created for each locale and it will be shared between the localized carousel and grid. This preserves the structure of the item being localized
- A new variant of a child item will only be created if the child item linked to the item being localized has an assigned locale that is the same as the parent, otherwise the localized parent will link back to the unlocalized child
On this page we'll walk through some examples that demonstrate these principles in more detail.
On this page
Example- localizing a carousel linked to items with no assigned locales
In this example we have created a winter collection carousel and have assigned it a locale of en-GB. It links to 4 carousel slides. None of these slides have a locale assigned.
We now choose to localize the carousel by choosing localize from the file menu.
The available locales are displayed. In this example we'll choose to localize into the fr-FR locale.
Localization is done in the background and when it is complete, a tick is marked by the locales that we have localized into.
A fr-FR variant of the winter collection carousel is created as highlighted below. Notice that just a variant of the carousel itself is created.
If we open up the fr-FR variant of the carousel, we can see that it links to the same slides as the en-GB variant of the carousel. In this case we want to share the slides across localized variants of the locale, so we don't assign a locale to the slides.
Example: a carousel linked to one item with an assigned locale
The Winter collection carousel shown below has an assigned locale of fr-FR and links to a slide named "Style d'hiver" that is also assigned a fr-FR locale.
We choose to localize the carousel into the de-DE locale.
A de-DE variant of the carousel is created, together with a de-DE variant of the Style d'hiver image.
The localized carousel will link back to the unlocalized variants of the other images linked to the carousel, as shown when viewing the de-DE variant of the carousel in the content editing window.
Note that variants will only be created if the child item is assigned the same locale as the parent.
Example: a carousel and grid linked to the same item
In this example we have a carousel and grid that both link to the same item: the Winter boots image content item.
All of the items are assigned the en-US locale. The grid and carousel are both localized into the fr-FR locale.
Notice that the fr-FR variant of the winter shoes image is only created once. Both the localized grid and carousel will link to this item, preserving the structure of the en-US variant of the content.