i18n angular 2 translation from variables from backend

963 Views Asked by At

Im currently using i18n on my angular 2 . In the DOM i can easily use the i18n attribute to translate whatever i want.

But i also have text-strings comming from the backend thats is mainly written in english (node.js).How would i go forward to translate that?

I heard that i could for example use ng2-translate in the angular service , but wouldnt it be a bad thing to use two seperatly services , one for backend and one for frontend?

What Would be the best way to solve this?

0

There are 0 best solutions below