Skip to content

Content and i18n - Document not found for non-default locales #2596

Open
@vlamic

Description

@vlamic

Discussed in #2595

Originally posted by vlamic March 25, 2024
Hi,

I'm trying to setup a project which is driven by content and supports multiple languages, so I have created two dirs in my content folder: en and es. When I try to access the default routes (e.g. http://localhost:3000/ or http://localhost:3000/about), it loads the pages correctly. However, when I try to access non-default pages, it's not able to locate the content (e.g. http://localhost:3000/en/about or http://localhost:3000/en). Am I missing something?

I have uploaded a sample project here: https://github.com/vlamic/content-app-test

Content structure:

iScreen Shoter - Code - 240325120127

Pages structure:

iScreen Shoter - Code - 240325120213

Nuxt config:

iScreen Shoter - Code - 240325120230

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions