fix: set default locale if preferred locale is not supported
parent
15e23d7f26
commit
e2a3d81371
|
@ -27,7 +27,7 @@ export const extractLocaleInfo = async (req: IncomingMessage) => {
|
||||||
id: session.user.id,
|
id: session.user.id,
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
locale: preferredLocale,
|
locale: preferredLocale ? preferredLocale : i18n.defaultLocale,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue