feat: add i18n dependency to website workspace

This commit is contained in:
JiPai
2024-09-05 19:59:05 +08:00
parent d88633f2c6
commit 9c36f30bb0
6 changed files with 120 additions and 8 deletions

View File

@@ -0,0 +1,9 @@
import createMiddleware from 'next-intl/middleware';
import {routing} from './i18n/routing';
export default createMiddleware(routing);
export const config = {
// Match only internationalized pathnames
matcher: ['/', '/(zh-Hans|en)/:path*']
};