What is the best practise to translate (several languages) messages in a web application ?
I use node js for api implementation and backend, and react for the frontend
Front end must make translations before tha page is loaded from properties due to the language we have selected (maybe a cost in loading pages until translations are done?)
We have saved all messages in database (maybe in a file or json) and frotend asks for it asynchronously through API while page is loaded. (a cost in appearing meassge due to asynchronously api call?)
Some other way?