add language selection to the settings page
This commit is contained in:
@@ -24,7 +24,7 @@ const getServerSideProps: GetServerSideProps = async (ctx) => {
|
||||
if (user) {
|
||||
return {
|
||||
props: {
|
||||
...(await serverSideTranslations(user.locale, ["common"])),
|
||||
...(await serverSideTranslations(user.locale ?? "en", ["common"])),
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user