initial commit

This commit is contained in:
Giovanni Rezcjikov
2026-03-08 14:54:29 +03:00
commit f4e4fb21e3
75 changed files with 7407 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import { getRequestConfig } from "next-intl/server";
import { cookies } from "next/headers";
export default getRequestConfig(async () => {
const store = await cookies();
const locale = store.get("locale")?.value || 'en';
return {
locale,
messages: (await import(`../messages/${locale}.json`)).default
};
});