feat: Integrate Directus CMS, add i18n with next-intl, and configure project tooling with pnpm, husky, and commitlint.**
This commit is contained in:
9
i18n/request.ts
Normal file
9
i18n/request.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { getRequestConfig } from "next-intl/server";
|
||||
|
||||
export default getRequestConfig(async ({ locale }) => {
|
||||
const baseLocale = locale || "de";
|
||||
return {
|
||||
locale: baseLocale,
|
||||
messages: (await import(`../messages/${baseLocale}.json`)).default,
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user