t-convex-nextjs-saas/src/i18n/routing.ts
nxtkofi c4a35e97c3 feat(i18n): add locale-based routing setup
Add next-intl routing config, proxy middleware, and update request config to use requestLocale from middleware. Add @/i18n/* path alias to tsconfig.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-04-21 20:53:09 +02:00

7 lines
172 B
TypeScript

import { defineRouting } from 'next-intl/routing';
export const routing = defineRouting({
locales: ['en', 'pl'],
defaultLocale: 'en',
localePrefix: 'as-needed',
});