0
votes

I was wondering what the difference between these two attributes is when using the "aurelia-i18n" plugin

They are both defined in my main.ts inside the i18n plugin "startup"

lng: "en",
attributes: ["t", "i18n"],
fallbackLng: "en",

However, the i18n attribute only seems to work in "Views" and doesn't work when used inside a custom element. However t does work in custom elements. I was wondering if there was some kind of difference between these two, that is not described in the docs?

1
this turns out to be a bug: filed here: github.com/aurelia/i18n/issues/206 - ry8806

1 Answers

0
votes

True there is/was a bug filed for that but in the meantime got resolved with the latest release. An accompanying issue is this here, which is also documented with a recent docs update

No other differences should be present, and the sole purpose is to give developers the freedom to chose other aliases.