Working state: Serbian at root (/), English at /en, proper i18n structure
This commit is contained in:
13
src/middleware.ts
Normal file
13
src/middleware.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import createMiddleware from "next-intl/middleware";
|
||||
import { defineRouting } from 'next-intl/routing';
|
||||
|
||||
const routing = defineRouting({
|
||||
locales: ['en', 'sr'],
|
||||
defaultLocale: 'sr'
|
||||
});
|
||||
|
||||
export default createMiddleware(routing);
|
||||
|
||||
export const config = {
|
||||
matcher: ['/((?!api|_next|_vercel|).*)']
|
||||
};
|
||||
Reference in New Issue
Block a user