-
-
Notifications
You must be signed in to change notification settings - Fork 206
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
Issue with i18n: 404 Error When Accessing English Version of Site #1140
Comments
I have been experiencing the same problem, but with |
I think that my issue is related to #1131. When I delete middleware file everything works again. |
Thank you for your response. I don't have a middleware file as I am using the |
not having a middleware, removing i18n from the next.config helps for the development mode, but for me the production builds still lead to a 404. |
Did you figure this out? `const nextConfig = {}; module.exports = config;` fixed the problem but then I do not get the locale on the request.nextUrl.locale in the middleware. |
This is solved in 3.0.0-canary.1 version (both, next-translate & next-translate-plugin). Thanks |
Doesn't seem to work for me on the canary version, is there any workaround for the latest stable version? |
Description
I've been experiencing an issue with internationalization using Next.js 13 and the next-translate package. The issue is that when I try to access the English version of my website by appending
/en
to the URL, I get a 404 error.Steps to Reproduce
http://<domain>
).http://<domain>/en
.Expected Behavior
The English version of the site should be displayed.
Actual Behavior
I receive a 404 error.
Configurations
My
next.config.js
is configured as follows:And my
i18n.json
I have tried various troubleshooting steps, including verifying the setup of i18n.json, restarting the development environment, and even using experimental configurations in next.config.js, but the issue persists.
The text was updated successfully, but these errors were encountered: