Is there any particular reason for why the translation json files are in the public folder? #1851
-
What is the benefit of having the translation json files in |
Beta Was this translation helpful? Give feedback.
Answered by
isaachinman
Jun 3, 2022
Replies: 1 comment 2 replies
-
The reason is pretty straightforward – so we can download them on the client side if needed. This used less these days, as It used to be the case that incoming namespace dependencies needed to be managed manually in |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
isaachinman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The reason is pretty straightforward – so we can download them on the client side if needed. This used less these days, as
getStaticProps
andgetServerSideProps
handle the chunking/management of assets for us.It used to be the case that incoming namespace dependencies needed to be managed manually in
getInitialProps
.