Hi, is it possible to add i18n locale options in a custom plugin content-types? I’m developing a plugin and want i18n locale options enabled in my Plugin content-types. When I try to add the code below to my Custom Plugin content-types schema, I get this error “Cannot read property ‘routes’ of undefined
TypeError: Cannot read property ‘routes’ of undefined”.
You can use the content-type-builder plugin as a workaround. You would not create the content type under the content-types folder but create it programmatically.
This is exactly how the admin creates content types using the content builder UI.
And it works using the pluginOptions.i18n.localized: true.
One approach would be to do this, e.g., on the bootstrap phase of the plugin. Here you could also check whether or not the contents are created or not.
As a bonus, you can also create components that otherwise would not work.