QuiiBz / next-international

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

feat: avoid refresh if new locale is already the current locale #322

Closed moinulmoin closed 6 months ago

moinulmoin commented 6 months ago

So, currently, if we set the locale that is already set, it rerenders the page. To avoid this, I think an early locale check would be helpful.

Here is the record: https://github.com/QuiiBz/next-international/assets/63459189/fa926b15-97dc-4ecb-b41e-9aac8f21cca5

vercel[bot] commented 6 months ago

@moinulmoin is attempting to deploy a commit to the Tom Team on Vercel.

A member of the Team first needs to authorize it.

moinulmoin commented 6 months ago

Happy new year!

Happy New Year! 🎉

vercel[bot] commented 6 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 Jan 1, 2024 8:54am