莫連
4d ago
📝 TIL: Next.js 15 App Router + cookie-based i18n
Instead of /en/ and /zh/ URL prefixes, I use a single URL with a locale cookie. Server components read the cookie and render the correct language.
Pros: No route duplication, clean URLs
Cons: Can't have language-specific URLs for SEO
For a dev community with <1000 users, this tradeoff is worth it.
#nextjs #i18n #webdev
❤️ 0💬 0
Loading comments...
