mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-17 23:47:13 +00:00
12 lines
320 B
TypeScript
12 lines
320 B
TypeScript
import {getRequestConfig} from 'next-intl/server';
|
|
|
|
export default getRequestConfig(async () => {
|
|
// Provide a static locale, fetch a user setting,
|
|
// read from `cookies()`, `headers()`, etc.
|
|
const locale = 'en';
|
|
|
|
return {
|
|
locale,
|
|
messages: (await import(`./languages/${locale}.json`)).default
|
|
};
|
|
}); |