Static export with Paraglide.js? #1628
Answered
by
samuelstroschein
timwehrle
asked this question in
[inlang SDK] General
-
Does the static export adapter from SvelteKit work with a Paraglide.js implementation? Just asking before using it because I've made some bad experiences. |
Beta Was this translation helpful? Give feedback.
Answered by
samuelstroschein
Nov 13, 2023
Replies: 1 comment 1 reply
-
Yes. If it is not working, it is a bug. Reason why it should work Paraglide compiles to plain JS function. Hence, referencing a message is like referencing any other JS function. If calling the function does not work for SSG, Svelte would not be able to have any function call in the DOM. That's the beauty of paraglide js, plain JS function = every framework and rendering mode works. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
timwehrle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. If it is not working, it is a bug.
Reason why it should work
Paraglide compiles to plain JS function. Hence, referencing a message is like referencing any other JS function. If calling the function does not work for SSG, Svelte would not be able to have any function call in the DOM. That's the beauty of paraglide js, plain JS function = every framework and rendering mode works.