Skip to content

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

Open
ErikWittern opened this issue May 12, 2022 · 5 comments
Open

Next.js Internationalized Routing not working #7

ErikWittern opened this issue May 12, 2022 · 5 comments
Labels
bug Something isn't working enhancement New feature or request Next.js

Comments

@ErikWittern
Copy link

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 defined defaultLocale.

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 the Accept-Language header is not passed to the SSR Cloud Function correctly in the deployed version?

@jamesdaniels
Copy link
Collaborator

Internationalization is on our short list! Thanks for giving it a spin.

@jamesdaniels jamesdaniels added bug Something isn't working Next.js enhancement New feature or request labels May 12, 2022
@alexjball
Copy link

@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)?

@andrashee
Copy link

Hi @jamesdaniels. What is the status of this? Having the i18n feature working in firebase would be a gamer changer!

@jamesdaniels
Copy link
Collaborator

jamesdaniels commented Nov 17, 2022

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.

@ssandino
Copy link

@jamesdaniels any update on i18n compatibility? I saw Firebase saw some nice updates ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request Next.js
Projects
None yet
Development

No branches or pull requests

5 participants