QuiiBz / next-international

Type-safe internationalization (i18n) for Next.js
https://next-international.vercel.app
MIT License
1.26k stars 59 forks source link

chore(docs): add `'use client'` annotation #215

Closed myeljoud closed 11 months ago

myeljoud commented 11 months ago

Added "client only" at the top of the locales/client.ts to prevent Next.js from yelling 'client-only' cannot be imported from a Server Component module. It should only be used from a Client Component.

vercel[bot] commented 11 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-international ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 4, 2023 8:24am