Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Next] Nested Routes are not created with pages options #1649

Closed
Applelo opened this issue Nov 15, 2022 · 2 comments
Closed

[Next] Nested Routes are not created with pages options #1649

Applelo opened this issue Nov 15, 2022 · 2 comments
Assignees

Comments

@Applelo
Copy link

Applelo commented Nov 15, 2022

Version

@nuxtjs/i18n: 8.0.0-beta.4
nuxt: 3.0.0

@nuxtjs/i18n configuration

i18n: {
    defaultLocale: 'fr_FR',
    locales: [{ code: 'fr_FR', iso: 'fr-FR', file: 'fr.yml' }],
    langDir: './locales/',
    parsePages: false,
    pages: {
      account: {
        fr_FR: '/compte',
      },
      //not working
      'account/profile': {
        fr_FR: '/compte/profil',
      },
      'account/addresses': {
        fr_FR: '/compte/adresses',
      },
    },
  }

Reproduction Link

Reproduction on StackBlitz

Steps to reproduce

Try to access to the translated route for profile page, it is not working and return a 404 error.

What is Expected?

Nested root should work (like https://v3.nuxtjs.org/guide/directory-structure/pages/#nested-routes) with pages configuration. I tried with defineI18nRoute and no problem.

What is actually happening?

Nested routes are not created or linked I guess. Maybe I miss something.

@kazupon kazupon added the v8 label Nov 15, 2022 — with Volta.net
@Applelo Applelo changed the title Nested Routes are not created with pages options [Next] Nested Routes are not created with pages options Nov 15, 2022
Copy link
Collaborator

kazupon commented Nov 19, 2022

Thank you for your reporting!
and, sorry late my reply.

I'll try to fix this issue.

Copy link
Collaborator

kazupon commented Nov 26, 2022

I've just fixed this issue and released out edge version @nuxtjs/i18n-edge@8.0.0-beta.4-27824203.a7fc4de
As you can see in #1673, I have rewritten custom routes.
So you need to read the docs.
https://v8.i18n.nuxtjs.org/guide/custom-paths

I will close this issue with the release of v8.0.0-beta.5.
Thanks!

@kazupon kazupon closed this as completed Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants