aralroca / next-translate-plugin

Next-translate plugin for i18n in Next.js 🌍 - Load page translations and use them in an easy way!
MIT License
30 stars 17 forks source link

use-translate-plugin cause notFound error when use dynamic routes with optional catch-all #77

Open salos1982 opened 9 months ago

salos1982 commented 9 months ago

next-translate-plugin v2.6.2

node 20.09 windows 11 latest updates

Code for reproduce https://github.com/salos1982/next-translate-app I have following structure of app folder [lang]/(content)/[[...path]]/page.tsx When there was no [lang] part, everything worked fine. But when I added [lang] folder at the top all my requests generate 404 error.

You could download project start it and try to open http://localhost:3000/es You will see 404 erorr

I expect that I see content of [lang]/(content)/[[...path]]/page.tsx (some text)

Are you willing to submit a pull request to fix this bug? No

aralroca commented 9 months ago

I think is related to https://github.com/aralroca/next-translate/issues/1166

salos1982 commented 9 months ago

I think so