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 30, 2024 0:44am |
next-intl-example-app-router | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 30, 2024 0:44am |
next-intl-example-app-router-without-i18n-routing | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 30, 2024 0:44am |
There are typically at least two config files you're using when choosing the i18n routing setup:
./src/i18n.ts
./src/routing.ts
i18n.ts
is currently named in a rather generic way, almost indicating that it contains everything related to i18n.In order to clarify the meaning of these files and to gather them in a shared place, this PR proposes a new default location for the request config as well as the routing config:
From my experience, many people already use an
i18n
folder or similar. This change might come in handy and avoids a potential configuration step for users.That being said,
i18n.ts
is still supported, so there's no need to change existing apps.