https://www.npmjs.com/package/@ngx-translate/core https://www.npmjs.com/package/@ngx-translate/http-loader I installed translate package from here and added ngx-translate module with its forRoot , translate service inside component ts (app & header) but it isn’t working also Header component Header.component.ts app.module.ts I also tried same steps in app.component.ts Answer The pipe syntax is {{ ‘my-translation-key’ | translate }} – you have double || in your template, please change
Tag: ngx-translate
Angular translate service, interpolate params in nested json
In angular translation service, interpolating params in normal translation json works well. But in nested json, interpolating params is not working. My JSON: My Angular Code: Expected Output: Actual Output: Answer According to the source of ngx-translate interpolation works only on strings: This means you might need to use an array of keys instead of a non-leaf element: