Update src/i18n.ts

This commit is contained in:
2026-06-03 21:36:40 +00:00
parent 60c41abe57
commit 042038b6b5

View File

@@ -1,8 +1,6 @@
import { getRequestConfig } from 'next-intl/server';
import { notFound } from 'next/navigation';
import { getRequestConfig } from 'next-intl';
// Can be imported from a shared config
const locales = ['en', 'de'];
import { locales } from './config';
export default getRequestConfig(async ({ locale }) => {
if (!locales.includes(locale as any)) notFound();
@@ -10,4 +8,4 @@ export default getRequestConfig(async ({ locale }) => {
return {
messages: (await import(`../messages/${locale}.json`)).default,
};
});
});