Skip to content

Generate pages for each language #131

@adiusz

Description

@adiusz

Hi.
It's not the issue but you encouraged to ask for help, so I'm posting this :)

I need to add translations for Gatsby page I wrote but I get stucked. I am using DatoCMS for this project.
I have a simple gatsby-node file, and couple of product records, which has 2 language versions. Here is the file:

https://gist.github.com/adiusz/e953acb277aa0be2e55b0f2787911509

What I need is simply generate 2 versions of each node - 1 without any suffix in URL (which is working fine with that piece of code) and 1 with /en/product/${productName} suffix. Can you help with that? I really can't figure this out.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions