diff --git a/src/i18n.ts b/src/i18n.ts deleted file mode 100644 index f04a5f6..0000000 --- a/src/i18n.ts +++ /dev/null @@ -1,13 +0,0 @@ -// @ts-expect-error next-intl server config type mismatch -import { getRequestConfig } from 'next-intl/server'; -import { notFound } from 'next/navigation'; - -export const locales = ['en', 'es']; - -export default getRequestConfig(async ({ locale }) => { - if (!locales.includes(locale as any)) notFound(); - - return { - messages: (await import(`../messages/${locale}.json`)).default, - }; -});