How to translate string from server in Angular 4?

109 views Asked by At

I'm able to translate most of my labels using Angular i18n and AOT compilation. However, I get some strings/keys like 'category.abc' as a result of server calls and would like to translate them as well - in templates as well as in code. How would I go about doing that? I know which keys exists, but of course they will only be inserted at runtime. I don't want to use ngx-translate, as this library will soon be deprecated.

0

There are 0 answers