-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Migrate NRN I18n routing implementation to native Next.js I18n #194
Comments
Hi @Vadorequest next-right-now/src/pages/_document.tsx Line 90 in e6f6258
now not working at all. I open page in locale 'ru' but get <html lang="en"> Why next turn on this feature without the user including himself i18n config? I'm shocked. |
Hm.. |
Thanks for letting me know, I hadn't noticed this! And yes, Next shouldn't enable this when you haven't opt-in for their i18n routing feature. |
This issue hasn't been addressed by Next.js yet, despite having more than 70 upvotes. I suggest you upvote the official Next.js discussion if you wish to see this happen. |
Any new updates on this one? |
Still not fixed on nextjs
…On Tue, Mar 2, 2021, 20:45 Samuel Castro ***@***.***> wrote:
Any new updates on this one?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#194 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA5BRYR7VD5PRFZYESIZVI3TBU54VANCNFSM4TGM2UOQ>
.
|
Goal
Update the current NRN implementation of I18n routing to the new official Next.js 10 I18n routing.
The update will provide more ways of configuring the i18n routing. Currently, NRN only handles the
sub-path
routing strategy. See https://nextjs.org/docs/advanced-features/i18n-routing#sub-path-routingStatus
Awaiting below issues to be fixed before starting working on this.
Issues
Currently, the Next.js i18n routing implementation doesn't generate a prefix url for the default locale.
en
is the default locale then the path will be/
instead of/en
See https://nextjs.org/docs/advanced-features/i18n-routing#sub-path-routing
This is a breaking changes for apps created through NRN. I'll await a fix for this before starting working on it.
To do
I18nLink
component, because it's now handled by theLink
componenthref
- See https://nextjs.org/blog/next-10#automatic-resolving-of-hrefhreflang
- See https://support.google.com/webmasters/answer/189077Reference
The text was updated successfully, but these errors were encountered: