amannn / next-intl

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

feat: Cache `Intl.*` constructors #1193

Closed amannn closed 4 months ago

amannn commented 4 months ago

Fixes #215

Intl.* constructors like Intl.DateTimeFormat are now cached across components in order to improve rendering performance (see benchmark).

Details:

vercel[bot] commented 4 months 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 Jul 12, 2024 0:21am
next-intl-example-app-router ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 12, 2024 0:21am
next-intl-example-app-router-without-i18n-routing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 12, 2024 0:21am