mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
12 lines
283 B
TypeScript
12 lines
283 B
TypeScript
import { getUserLocale } from "@/i18n/locale"
|
|
import { getRequestConfig } from "next-intl/server"
|
|
|
|
export default getRequestConfig(async () => {
|
|
const locale = await getUserLocale()
|
|
|
|
return {
|
|
locale,
|
|
messages: (await import(`../messages/${locale}.json`)).default,
|
|
}
|
|
})
|