-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
fix(BREAKING-CHANGE): remove support migration from pages to app router #80
Conversation
I just tried to install this canary version in hopes this would fix this issue aralroca/next-translate#1173 , but seems like it breaks things:
I replaced actual paths, but you get the idea |
@i2gor87 it was a problem generating the npm tarball. In 3.0.0-canary.2 the tarball is generated correctly. I hope now it works |
I am a little confused by your comment on this pull request.
But it actually does and was working perfectly fine until I tried adding translations. Which brings me to the question "why". If we look at Regarding routing section of next-translate's documentation, it clearly states
While next-translate does not act as the routing library, it does depend on routing features of NextJS. Which kind of leads me to asking myself a question. What would happen if next-translate abandon the idea of depending on
|
Fixes aralroca/next-translate#1166
Introducing that people could partially migrate from pages to app router was a bad idea because Next.js does not support it. Just introducing i18n in the configuration breaks the app router, I'm sorry to say, but the only way to fix it from the library is to remove the migration support, then pages and app router work, but it will no longer work to use both at the same time.