mercredi 8 juillet 2020

ember-intl for translating html

I'm using ember-intl and would like to translate html (href with link):

en-us.json:

{
   "sign-up": "Didn't get it? check your spam folder, or try to '<a {myLink}>'send a new passcode'</a>'",
}

My controller has an action that is called: signUp:

actions: {
    signUp: function() {
      console.log('success');
    },
}

In my hbs file, I tried:

}

The text was set, and the link looks as a link, but when I click on this link, the log is not written.

Any help appreciated!




Aucun commentaire:

Enregistrer un commentaire