mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-31 23:10:00 +02:00
request.ts aktualisieren
This commit is contained in:
parent
e4888120d5
commit
b3159de732
1 changed files with 5 additions and 6 deletions
|
@ -1,12 +1,11 @@
|
|||
import {getRequestConfig} from 'next-intl/server';
|
||||
|
||||
import {getUserLocale} from '../services/locale';
|
||||
|
||||
export default getRequestConfig(async () => {
|
||||
// Provide a static locale, fetch a user setting,
|
||||
// read from `cookies()`, `headers()`, etc.
|
||||
const locale = 'de-DE';
|
||||
|
||||
const locale = await getUserLocale();
|
||||
|
||||
return {
|
||||
locale,
|
||||
messages: (await import(`../../messages/${locale}.json`)).default
|
||||
};
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue