We have an application, that uses Redux-Pattern with ngrx as well as ngx-translate for i18n. I already learned from this answer how to handle the Angular i18n approach together with ngrx, but I don't know where the ngx-translate-approach fits best into an ngrx application.
Translation can be done
this.translateService.get('SOME_KEY')
{{ 'SOME_KEY' | translate }}
which offers four possible places, where keys can be translated:
Where would you consider it the cleanest way to put the translation process?
Ideally you'd put your translations in the template first, as this is closest to where the translation will appear.
If and when you find that you can't use the template to show some translation, you could then consider using the translateService
in your components, services, etc.
BTW you can also use the ngx-translate
directive for showing translations:
<div [translate]="'SOME_OTHER_KEY'"></div>