add language selection to the settings page

This commit is contained in:
daniel31x13
2024-05-28 17:10:25 -04:00
parent deb6ed7ec8
commit f921ecaa96
3 changed files with 26 additions and 1 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ const getServerSideProps: GetServerSideProps = async (ctx) => {
if (user) {
return {
props: {
...(await serverSideTranslations(user.locale, ["common"])),
...(await serverSideTranslations(user.locale ?? "en", ["common"])),
},
};
}