-
Notifications
You must be signed in to change notification settings - Fork 118
Next.js Internationalized Routing not working #7
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
Comments
Internationalization is on our short list! Thanks for giving it a spin. |
@jamesdaniels Are you planning on supporting i18n routes via Firebase's i18n rewrite feature, or as part of the existing deployment scheme (static files + SSR function)? |
Hi @jamesdaniels. What is the status of this? Having the i18n feature working in firebase would be a gamer changer! |
The plan is to leverage the existing Firebase i18n rewrites as much as possible here, if there's a delta in capabilities we will spin up a Cloud Function. We're working on making rewrites/redirects/headers more robust now, this work will naturally follow that. No timeline to share but it's in the next planned set of updates. |
@jamesdaniels any update on i18n compatibility? I saw Firebase saw some nice updates ... |
First of all, this effort is fantastic, thank you for pursuing it.
One of the Next.js features that require a Next.js server is Internationalized Routing. In a demo project I created, configuring Next.js internationalization for sub-path routing (cf. https://nextjs.org/docs/advanced-features/i18n-routing#sub-path-routing) works exactly as expected when running the page locally using
firebase serve
. However, the deployed version only always uses the defineddefaultLocale
.Notably, the other language version of the page is available at the sub path (in my case,
/de
) after deployment - but server-side forwarding does not occurr as expected. Possibly theAccept-Language
header is not passed to the SSR Cloud Function correctly in the deployed version?The text was updated successfully, but these errors were encountered: