How to translate ng2-smart-table action columnTitle and action title. I was trying to resolve translation issue for Acknowledgement, But still not sure why it isn't working
violationSettings:any = {};
initTableSettings(): void {
this.violationSettings = {
actions: {
columnTitle: this.translateService.instant('acknowledgement'),
custom: [
{
name: 'Checkmark',
title: `<span class="custom-checkmark">
<i class="nb-checkmark "></i>
</span>`
}
]
},
columns: {
vesselName: {
title: this.translateService.instant('vessel-name'),
type: 'string',
},
},
};
}
constructor(
private theme: NbThemeService,
private translateService: TranslateService
) {
this.initTableSettings();
this.translateService.onLangChange.subscribe(next => {
this.initTableSettings();
})
}