How can I pass a '/' or an URL while using i18n.tr()
LittleGnome opened this issue · comments
Marco Knol commented
hello,
How can I pass a '/' or an URL while using i18n.tr()??
I tried this
i18n.tr("My test string with this {{link}}", { link: "https://goo.gl/4r9AqW" })
and this
i18n.tr("My test string with this {{link}}", { link: "https:\/\/goo.gl\/4r9AqW" })
For both the result is: https://goo.gl/4r9AqW
Finally I tried this option:
i18n.tr("My test string with this {{link}}", { link: "<a href="https:\/\/goo.gl\/4r9AqW">Link</a> })
But that was even worse..
I'm using aurelia-i18n 2.1.1
thanks
LittleGnome
Marco Knol commented
Sorry my bad need to set a property in a custom component that we use.... 👎