Skip to content

Commit

Permalink
add locale
Browse files Browse the repository at this point in the history
  • Loading branch information
sinamics committed Aug 17, 2024
1 parent f82b788 commit de8e392
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/auth/register/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ export const getServerSideProps: GetServerSideProps<Props> = async (
}

return {
props: { auth: session.user },
props: {
auth: session.user,
messages: (await import(`~/locales/${context.locale}/common.json`)).default,
},
};
};

Expand Down

0 comments on commit de8e392

Please sign in to comment.