amannn / next-intl

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

feat!: Remove deprecated APIs pt. 2 #1482

Closed amannn closed 2 weeks ago

amannn commented 2 weeks ago

Breaking changes

  1. Removed deprecated second argument of createMiddleware (use first argument instead, ideally via defineRouting—see docs)
  2. Remove deprecated ({locale}) argument in getRequestConfig (use ({requestLocale}) instead)
  3. Remove deprecated unstable_setRequestLocale (use setRequestLocale instead)
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 29, 2024 11:52am
next-intl-example-app-router ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 29, 2024 11:52am
next-intl-example-app-router-without-i18n-routing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 29, 2024 11:52am