mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-03 08:39:09 +00:00
12 lines
309 B
TypeScript
12 lines
309 B
TypeScript
import { getRequestConfig } from "next-intl/server";
|
|
import { getUserLocale } from "../services/locale";
|
|
|
|
export default getRequestConfig(async () => {
|
|
const locale = await getUserLocale();
|
|
|
|
return {
|
|
locale,
|
|
messages: (await import(`../../messages/${locale}.json`)).default
|
|
};
|
|
});
|