-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
app-router supports #175
Comments
Is there any way to use a Provider component instead of using the 'appWithI18Next' method to be called in _app |
After some testing, I concluded it doesn't make sense to use this library with the app router, I am instead using |
I need that for app-router too |
same here I would use this with app-router, it seems there is no other library that supports locales without changing the url |
I'll see if I can check how app router works soon. I'm up to suggestions on what you expect to see and how it should work. |
Thanks for taking note! The naive thing from the top of my head is that this
needs to be replaced with some kind of provider on the layout.js (which is the root now). At least that is how i18n-next works and probably others. |
So... I managed to make it work but without ni18n and only with i18next and react-i18next ( Solution found at i18next/next-app-dir-i18next-example#12 (comment) You'll have to create 3 files: client.ts
export const useTranslation = useTranslationOrg` server.ts:
settings.ts
As i said, I'm no longer using this lib 😢 I REALLY want to use this lib again!!! If anyone can make it so we can get back to it I'd appreciate it alot! Thanks <3 |
I just want to know if this lib support app-router in nextjs 13 and how to configure
The text was updated successfully, but these errors were encountered: