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>
7 lines
172 B
TypeScript
7 lines
172 B
TypeScript
import { defineRouting } from 'next-intl/routing';
|
|
|
|
export const routing = defineRouting({
|
|
locales: ['en', 'pl'],
|
|
defaultLocale: 'en',
|
|
localePrefix: 'as-needed',
|
|
});
|