Next.js Discord

Discord Forum

translation files that can be changed after build

Unanswered
Morelet’s Crocodile posted this in #help-forum
Open in Discord
Morelet’s CrocodileOP
I would like to be able to build my Nextjs app without baking my tranlations into my components. Basically, I want to store translations in a JSON file and be able to edit it even after my application has been built. Are there any libraries out there that provide this? If not I was thinnking about making an call and creating a context provider that can provide the translations for the client components. For server components, I guess I would need to load the files from disk, cache them and then retrieve it from there on subsequent calls.

0 Replies