amannn / next-intl

🌐 Internationalization (i18n) for Next.js
https://next-intl-docs.vercel.app
MIT License
2.58k stars 236 forks source link

feat!: Return type-safe messages from `useMessages` & `getMessages` #1489

Closed amannn closed 2 weeks ago

amannn commented 2 weeks ago

If consumers use type-safe messages, these will now be used for the return type of useMessages and getMessages.


Resolves https://github.com/amannn/next-intl/issues/1452

vercel[bot] commented 2 weeks ago

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

Name Status Preview Comments Updated (UTC)
next-intl-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 30, 2024 3:38pm
next-intl-example-app-router ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 30, 2024 3:38pm
next-intl-example-app-router-without-i18n-routing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 30, 2024 3:38pm