mirror of
https://github.com/UiO-Gaming/uiogaming.no.git
synced 2026-11-05 13:56:47 +01:00
13 lines
336 B
TypeScript
13 lines
336 B
TypeScript
import { getRequestConfig } from "next-intl/server"
|
|
import { cookies } from "next/headers"
|
|
|
|
export default getRequestConfig(async () => {
|
|
const cookieStore = await cookies()
|
|
const locale = cookieStore.get("locale")?.value || "no"
|
|
|
|
return {
|
|
locale,
|
|
messages: (await import(`../../messages/${locale}.json`)).default,
|
|
}
|
|
})
|