From 91073bfd6ac659db815b59d87c9d10b0ce7cb174 Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 3 Jun 2026 21:38:49 +0000 Subject: [PATCH] Update src/i18n.ts --- src/i18n.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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, - }; -});