Skip to content

langSwitchConfig

Déclaration
langSwitchConfig = defineWidgetConfig({
title: {
fr: 'Langue',
nl: 'Taal',
},
inToolbar: inToolbarSchemaFrom({
type: 'integrated',
}),
container: hiddenContainerId,
i18n: i18n,
active: true,
config: z
.object({
supportedLanguages: z
.array(z.custom<SupportedLanguages>((v) => typeof v === 'string'))
.default(['fr', 'nl']),
vertical: z.boolean().optional(),
})
.prefault({}),
})