-
-
Notifications
You must be signed in to change notification settings - Fork 455
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
Is compatible serverless-nextjs with Nextjs 10 multilang web? #830
Comments
If anyone can shine some light on this issue, that would be awesome! |
Hey all, I am also looking for this feature - I am keen to create nextjs app that uses i18n and deploy it with serverless. |
Hi @markbdaniels / @anialamo, It looks like @anialamo was able to achieve this with her staging site - https://test.nootric.com/ @anialamo - could you shed some light on how you achieved this? Is this also deployed with the serverless-next.js component or did you end up deploying with netlify/vercel? Kind regards, Kyle |
@kylekirkby Hi! Now this test.nootric.com works with nextjs 9.5.x only... but it works bad in xml-sitemap.com for "Spanish" language. |
@anialamo thanks for your reply! I managed to get full i18n functionality working with Next 10. I didn’t use the built in i18n routing functionality that comes with v10, however. I used i18next/react-i18next and I’m generating the full sitemaps with NextJs-sitemap-generator. My plan is to write a blog on this and push an example repo if anyone is interested in my approach 👍 |
@kylekirkby dobyou use tranalation in routes? Like web.com/about-us in english and web.com/es/sobre-nosotros ? |
Hi @anialamo, We are not translating routes currently. I think this would be a bit involved since Next.js handles the routes based on the directory structure. Is there a massive SEO benefit to requiring localized routes? I did find one mention of how to utilise localized routes with i18next but looks as though it is only re-writing the URLs and wouldn't be statically supported/exported. I'm using |
@anialamo I looked into outputting localized routes but sadly Next.js routing capabilities prevent this from being achieved. I did get localized routes working for a single page but that is it. If you're adding more than one page then you'll hit problems :/ I hope the Next.js team gets this resolved... |
Here is a link to my Next.js v10 i18n serverless-nextjs starter: https://github.com/linaro-marketing/serverless-nextjs-i18n-ssg-ssr-starter |
Thank you @kylekirkby - will take a look 👍 |
A lot of thanks @kylekirkby!!!! I will review your repository. Thanks for all your help & God bless you!!! |
TBH yes there is :) The url is right there with the title and H1 as signals for SEO. |
Hi! Did anyone achieve this without using another library (just using the i18n functionality of next.js v10)? It seems to work fine with all the locales except for the default one, which does not work when I use server side navigation (it returns 404 in the subpages unless I add the prefix of the default locale). |
related to #721 |
Great news, thank you Ben. |
Hi guys, I'm with the alpha.45 but the initial redirection based on the detected locale seems to be not working. Might be the case? I've it working on local but not on the deployed site, for example I send es and I does not jump to /es. |
Hi I have a doubt, I migrate to Nextjs 10 and now I replaced Component.getInitialProps by export async function getStaticProps (to use router.locale in localhost this works fine! But in Production (AWS CloudFront) this breaks the web app.
This webapp is a multi-lang Nextjs webapp (Now I am using Nextjs i18n )
I added this code:
And I cannot see anything in my webapp.
Thanks!
The text was updated successfully, but these errors were encountered: