paraglide-sveltekit
: Anchor tags <a>
break exported snippets when not using data-no-translate
#291
Labels
paraglide-sveltekit
: Anchor tags <a>
break exported snippets when not using data-no-translate
#291
Describe the bug
<a>
to the exported snippet breaks compilation. I assume this is due to the snippets being defined outside of theParaglideJS
wrapper component, meaningparaglide-sveltekit
can't preprocess these anchor tags.data-no-translate
to the anchor tag "fixes" this issue, but prevents internal links from being localized.Reproduction
Expected behaviour
ParaglideJS
wrapper, the links should be automatically localized.Workarounds
<a>
in exported snippets.<button>
for navigation) if you still want to do page navigation.data-no-translate
to the anchor tag.Additional context
Exported snippets seem to be working fine most of the time, but are facing some issues with tooling when referencing foreign declarations, see sveltejs/language-tools#2640. I've also ran into the mentioned issue, as seen in the comment, but since I had compilation errors when the author of the issue didn't, I was suspicious that the cause of this compilation error was beyond
language-server
orvite-plugin-svelte
. I then tried to create a minimal reproduction and learned that the compilation errors only occur when using anchor tags. Addingdata-no-translate
fixed the compilation error.The text was updated successfully, but these errors were encountered: