Skip to content

Would adding all namespaces to useTranslation decrease performance on page-level? #1708

Answered by isaachinman
siigdev asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, it would negatively affect performance. Each namespace you specify gets passed as props into the page-level component, via either getStaticProps or getServerSideProps.

The concept of namespaces is specifically to chunk out translation data to prevent the issue you are describing.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by siigdev
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants