-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Use i18next with app folder let /de/pathname redirect to /pathname on Typescript not working #39
Comments
You may need to change the middleware.ts to your needs... - return NextResponse.redirect(new URL(`/${lng}${req.nextUrl.pathname}${req.nextUrl.search}`, req.url))
+ return NextResponse.rewrite(new URL(`/${lng}${req.nextUrl.pathname}${req.nextUrl.search}`, req.url)) |
I change the middleware.ts but not working.
|
Then you have some other issue... if you do it here: https://github.com/i18next/next-app-dir-i18next-example-ts it works. btw: these are Next.js specific questions... and what I've done here is just an example of how you can use i18next with Next.js app router setup... |
It's working when app folder out src folder. I testing on this project https://github.com/i18next/next-app-dir-i18next-example-ts
|
i want en as default language, where user access /de/about I want let it redirect to /about . only language is "de" hide the language. how can i do this
The text was updated successfully, but these errors were encountered: