Notifiarr / toolbarr

Starr Toolbarr
https://notifiarr.com/discord
MIT License
102 stars 4 forks source link

Custom element for links in translations. #18

Closed davidnewhall closed 1 year ago

davidnewhall commented 1 year ago

This contribution turns the Link.svelte component into a web-component that can be 'realized' in an @html tag. This allows us to create browser-opening links inside translations. Or anywhere else a link needs to be put into a string variable.

Instead of <A href="https:"> we now use `. This also works in translation files.

Also added a wrapper component around the locale.js function, so you can create translations with a component.