Closed amannn closed 2 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 | Aug 28, 2024 1:49pm |
next-intl-example-app-router | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Aug 28, 2024 1:49pm |
next-intl-example-app-router-without-i18n-routing | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Aug 28, 2024 1:49pm |
Summary
Adds a new
defineRouting
API that returns arouting
object that can be used to initialize the middleware as well as the navigation APIs. This provides type-safety for your i18n config with a single import and helps to ensure that your i18n config is in sync across your app.(in the docs we now suggest to create navigation APIs directly in
routing.ts
)Changes
defineRouting
APIrouting
) as second param tocreateMiddleware
src/routing.ts
instead ofsrc/navigation.ts
i18n.ts
in getting started docsTODO: