Update src/i18n.ts

This commit is contained in:
2026-06-03 21:38:49 +00:00
parent 981f758dc5
commit 91073bfd6a

View File

@@ -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,
};
});