nextra icon indicating copy to clipboard operation
nextra copied to clipboard

i18n 404 page cannot recognize locale in file name

Open jeremycos opened this issue 1 year ago • 3 comments

Hello,

I followed steps to add i18n to my project (https://nextra.site/docs/guide/i18n).

I cannot access it as expected, I have 404 page. I can access it with the normal slug (with the local extension). Examples : "http://localhost:3000/docs/mypage.fr" or "http://localhost:3000/docs/mypage.en".

I don't really know where is the problem.

Can it come from my dependencies ?

"dependencies": { "@headlessui/react": "^1.7.13", "@heroicons/react": "^2.0.16", "@stripe/stripe-js": "1.47", "animate.css": "^4.1.1", "axios": "1.2", "eslint": "8.36.0", "eslint-config-next": "13.2.4", "fs": "^0.0.1-security", "gray-matter": "^4.0.3", "next": "13.2.4", "next-mdx-remote": "^4.4.1", "nextra": "^2.3.0", "nextra-theme-docs": "^2.3.0", "path": "^0.12.7", "react": "18.2.0", "react-dom": "18.2.0", "stripe": "^11.15.0" }, "devDependencies": { "@tailwindcss/typography": "^0.5.9", "autoprefixer": "^10.4.14", "postcss": "^8.4.21", "tailwindcss": "^3.2.7" } }

Thanks for your help

jeremycos avatar Apr 07 '23 22:04 jeremycos

Please provide reproduction repo

dimaMachina avatar Apr 22 '23 07:04 dimaMachina

MAy be related to https://github.com/shuding/nextra/issues/1760

abhaytalreja avatar Apr 23 '23 06:04 abhaytalreja

same issue occurs for me

Kenzo-Wada avatar Dec 17 '23 08:12 Kenzo-Wada