init
This commit is contained in:
11
src/middleware.ts
Normal file
11
src/middleware.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { locales } from '@/helpers/constants';
|
||||
import createMiddleware from 'next-intl/middleware';
|
||||
|
||||
export default createMiddleware({
|
||||
locales: locales,
|
||||
defaultLocale: 'en',
|
||||
});
|
||||
|
||||
export const config = {
|
||||
matcher: ['/', '/(en|ru|uz|cn)/:path*'],
|
||||
};
|
||||
Reference in New Issue
Block a user