I18next http backend why not store in client side?

962 views Asked by At

I want to use i18next with httpbackend, but my question is now why everyone uses a backend for this why I can not create in my react folder a public folder and then load this from there ?

1

There are 1 answers

2
Damian Busz On

There is absolutely nothing wrong with having translations client side, but there is a question of what fits better your needs.

Server Side

The range of backends is large from loading translations in the browser using xhr/fetch request to loading translations from databases or filesystem in Node.js.

Client

You are limited to having every translation on the client and editing translations might be problematic, specialy that you have to do it all by hand.

Please refer to original documentation from i18next for more informations