I am working with JS frontend and am learning JS backend. Therefore, I want to understand the best practices of how to implement localized articles (content with markup).
Sorry if this question is a bit silly, but I just can't seem to find information on this.
This is how I imagine it:
So, I have a few questions:
I think of it like this: a DB table that stores an HTML string, an article ID and its other parameters, such as date, etc. And a separate directory on the server with images.
In the frontend, we can use something like i18next and store files with translations in the client side of the application in JSON files or fetch them from a database or from some localization CMS (locize, etc.). This is the part I really can't imagine.
If it matters, for this pet-project I'm going to use: