[dyad] Simplifying next-intl configuration - wrote 1 file(s), deleted 2 file(s)

This commit is contained in:
[dyad]
2026-01-18 17:05:46 +01:00
parent 680c720274
commit 99a99fe4b2
3 changed files with 5 additions and 13 deletions

View File

@@ -1,12 +0,0 @@
import {notFound} from 'next/navigation';
import {getRequestConfig} from 'next-intl/server';
const locales = ['en'];
export default getRequestConfig(async ({locale}) => {
if (!locales.includes(locale as any)) notFound();
return {
messages: (await import(`../messages/${locale}.json`)).default
};
});