Switch to version 6: remove src/i18n.ts

This commit is contained in:
2026-06-09 23:18:51 +00:00
parent 892ae4d405
commit 7a8945520d

View File

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