mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-10 15:06:37 +00:00
11 lines
290 B
TypeScript
11 lines
290 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
|
|
};
|
|
}); |