diff --git a/.gitignore b/.gitignore
index fd3dbb5..2a4890b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,6 +16,9 @@
# production
/build
+# ide
+/.idea
+
# misc
.DS_Store
*.pem
diff --git a/src/app/[locale]/(main)/layout.tsx b/src/app/[locale]/(main)/layout.tsx
index 1057990..0f3f494 100644
--- a/src/app/[locale]/(main)/layout.tsx
+++ b/src/app/[locale]/(main)/layout.tsx
@@ -13,7 +13,7 @@ export async function generateMetadata({
};
}
-export default function RootLayout({ children, news, directions, experts, params: { locale } }: {
+export default function MainLayout({ children, news, directions, experts, params: { locale } }: {
children: ReactNode,
news: ReactNode,
directions: ReactNode,
diff --git a/src/app/[locale]/layout.tsx b/src/app/[locale]/layout.tsx
new file mode 100644
index 0000000..a798f92
--- /dev/null
+++ b/src/app/[locale]/layout.tsx
@@ -0,0 +1,38 @@
+import React, { ReactNode } from 'react';
+import { Metadata } from 'next';
+import { unstable_setRequestLocale } from 'next-intl/server';
+import { notFound } from 'next/navigation';
+import { ConfigProvider } from 'antd';
+import theme from '../../constants/theme';
+import { ALLOWED_LOCALES } from '../../constants/locale';
+import StyledComponentsRegistry from '../../lib/AntdRegistry';
+import StyledRegistry from '../../lib/StyleRegistry';
+
+type LayoutProps = {
+ children: ReactNode;
+ params: { locale: string };
+};
+
+export function generateStaticParams() {
+ return ALLOWED_LOCALES.map((locale) => ({ locale }));
+}
+
+export const metadata: Metadata = {
+ title: 'Bbuddy'
+};
+
+export default function LocaleLayout({ children, params: { locale } }: LayoutProps) {
+ if (!ALLOWED_LOCALES.includes(locale as any)) notFound();
+
+ unstable_setRequestLocale(locale);
+
+ return (
+