How to translate alertController and mat-snackbar message by using ngx-translate?

I’m creating ionic 4 angular app, and using ngx-translate to translate 1 or more languages.by using ngx-translate it is easy to translate in html.but how to translate text message in alertController and mat-snackbar messages.