Skip to content

Array of documents - Each document is repeated by the languages itself #163

@aleczratiu

Description

@aleczratiu

Hello, is there a way to avoid having all the translations for each module?
Each module is a document, and I'm using document internationalization.

The module schema

const modulesObject = {
    name: 'modules',
    type: 'array',
    title: 'Page modules',
    // Implement the page builder
    of: [
        {
            type: 'reference',
            to: [
                { title: 'hero', type: 'hero' },
                { title: 'testimonials', type: 'testimonials' },
                { title: 'features', type: 'features' },
                { title: 'cta', type: 'cta' },
                { title: 'stats', type: 'stats' },
                { title: 'socialProof', type: 'socialProof' },
                { title: 'faq', type: 'faq' },
                { title: 'related Pages', type: 'relatedPages' },
            ],
        },
    ],
};

And how it looks where I have a page builder based on array of reference documents.
screenshot_2023-11-21_at_11 04 07_pm

From my point of view, it looks very weird, I just wanna see for example the Hero module and the inside of the Hero module to be able to pick any other languages.

Are there any limitations on this topic or I'm missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions