Sunday, 1 September 2019

How to provide internationalization files for the front-end?

Hello all,I am making a React app with Nodejs/Express as backend. I have implemented the translation in different languages in the front-end using react-i18next. However, at the moment, I place my json files inside the client folder under "public". And then it is used i18next-xhr-backend to fetch them as in the examples.As far as I understand this backend is the React server, not my Nodejs. Therefore, I would like to know how can I place my json files inside my Nodejs server and grab the files from there.​Thank you in advance.

Submitted September 02, 2019 at 07:06AM by dejavits

No comments:

Post a Comment