airbnb / polyglot.js

Give your JavaScript the ability to speak many languages.
http://airbnb.github.io/polyglot.js
BSD 2-Clause "Simplified" License
3.71k stars 208 forks source link

polyglot.js for my app on Google App Engine #87

Closed SouthDownsTechnologySolutions closed 6 years ago

SouthDownsTechnologySolutions commented 7 years ago

Recently we tried to implement React.js on Google App Engine and we encountered problems so we stopped the move to React.js. Now we build our application and we were looking for solutions to localize (translation to other languages) and we find polyglot.js. Then we studied the polyglot and we found Polyglot is in React JS. My question is simple, can we use the Polyglot.js without React.js and if yes then how? Regards, Green.

ljharb commented 7 years ago

Polyglot isn't in React; you can use it with anything.

Polyglot takes a hash of keys to phrases, and then when given a key, gives you the phrase. It should work with any backend and any frontend.