Localized slot
This schema snippet shows how to create a localized slot that can contain the tutorial banner and tutorial carousel for each of the locales supported on your hub.
Pre-requisitesLink copied!
You will need to have registered the tutorial banner and tutorial carousel schemas in order to add content those content types to this slot.
You must have at least one locale added to your hub.
How to useLink copied!
If you don't want to use the tutorial banner and tutorial carousel with this slot, you can update the contentTypes array to include your own content types. The content
property in this schema contains a single banner or carousel, but if you want to be able to add multiple items to the slot, you can change it to an array.
Localized slot exampleLink copied!
Content form previewLink copied!
An example of creating a slot item using a slot type registered from the localized slot schema is shown in the image below. When you create a slot in the Content Library, you'll add some dummy content. In the image below a carousel has been added to the slot in the en-GB locale and banners for the fr-FR and de-DE locales. The locales available will depend on which locales you have added to your hub.
The image below shows a localized slot added to an edition and containing content for each locale.