aurelia / i18n

A plugin that provides i18n support.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I pass a '/' or an URL while using i18n.tr()

LittleGnome opened this issue · comments

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

Sorry my bad need to set a property in a custom component that we use.... 👎