diff --git a/src/i18n.ts b/src/i18n.ts index 26cbd38..ba1b892 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -1,11 +1,5 @@ -import { getRequestConfig } from 'next-intl'; -import { notFound } from 'next/navigation'; + + import { locales } from './config'; -export default getRequestConfig(async ({ locale }) => { - if (!locales.includes(locale as any)) notFound(); - return { - messages: (await import(`../messages/${locale}.json`)).default, - }; -});