You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to find a translation library that works in Cloudlfare Pages, and of course with NextJs. I have tried with next-international, next-intl and next-translate.
next-on-pages environment related information
System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000
CPU: (8) arm64 Apple M1 Pro
Memory: 32 GB
Shell: /bin/zsh
Package Manager Used: npm (10.7.0)
Relevant Packages:
@cloudflare/next-on-pages: 1.11.3
vercel: N/A
next: 14.2.3
Description
I've been trying to find a translation library that works in Cloudlfare Pages, and of course with NextJs. I have tried with next-international, next-intl and next-translate.
I will crosspost this from QuiiBz/next-international#397
Here is a repository ( Eusebiotrigo/next-international-cloudflare
) to check the code and also a deployed version on Cloudflare: next-international-cloudflare.pages.dev.
In local, when changing languages, it changes the cookie Next-Locale, but it is not happening in the deployed version on Cloudflare.
The cookie change is handled through the middleware and it seems it is not executed on every request... but that's my wild guess.
I also have a thread in discord: https://discord.com/channels/595317990191398933/1232710382762852352
Reproduction
Here is a repository ( Eusebiotrigo/next-international-cloudflare
) to check the code and also a deployed version on Cloudflare: next-international-cloudflare.pages.dev.
Pages Deployment Method
Pages CI (GitHub/GitLab integration)
Pages Deployment ID
08977f40-ec55-4d02-9a39-a62219093f2e
Additional Information
Yeah, you should tell the team responsible of the dashboard to put an easy copy for the deployment id (I'm getting lazy with age).
Would you like to help?
The text was updated successfully, but these errors were encountered: