All checks were successful
Gitea Auto Deploy / Deploy-Container (push) Successful in 1m31s
11 lines
327 B
TypeScript
11 lines
327 B
TypeScript
import { getRequestConfig } from "next-intl/server";
|
|
import { cookies } from "next/headers";
|
|
|
|
export default getRequestConfig( async () => {
|
|
const locale = (await cookies()).get("MYNEXTAPP_LOCALE")?.value || "en";
|
|
|
|
return {
|
|
locale,
|
|
messages: (await import(`../messages/${locale}.json`)).default
|
|
}
|
|
}) |