I am new to ember.. In this piece of code I would like to replace the fixed string with a translation:
toastr.info('This is the text', '', {onclick: () => this.transitionToRoute('user-profile')});
How to replace this with => t 'adverts.title' Tried all kind of (){} combinations but no success..
Aucun commentaire:
Enregistrer un commentaire