Using trasnlates from object


#1

Hi all,
in my app I am using ngx-translate to localize my app. I get translates from REST api. And my question is - Is it possible to lead ngx-translate to use only object with translations OR it must be a file located in assets/i18n?

Thanks


#2

The loader is decoupled from the core in ngx-translate, so I would concentrate on finding a loader that does what you want, and maybe writing one if that fails.


#3

So the solution was to write own Translate Loader with ngx-trasnlate.