Skip to content

Is there any particular reason for why the translation json files are in the public folder? #1851

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

You must be logged in to vote

The reason is pretty straightforward – so we can download them on the client side if needed. This used less these days, as getStaticProps and getServerSideProps 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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Axedyson
Comment options

@isaachinman
Comment options

Answer selected by isaachinman
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