I am using Angular 2 Toaster in my application and also NGX-translate. I would like to achieve a Toaster with Translated items. It should be like below.
translate.setTranslation('en', {
INVALID_CREDENTIALS: 'Invalid Credentials'
});
this.translate.get('INVALID_CREDENTIALS').subscribe((res: string) => {
this.toasterService.pop(this.createToast("success", "Success",res));
});
Here I would like to get the popup with success with Invalid Credentials, but unfortunately it displays
INVALID_CREDENTIALS