reroute
hook without sending the full URLs associations on the client
#11972
mquandalle
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The recently introduced
reroute
hook is showcasted as a way to handle multilingual websites:This works well but it requires to send an exhaustive list of URLs with their translation in all supported languages. Let's say that my site has 1000 URLs to translate and 10 supported languages, thats 10000 params to send to the client, just to be able to translate the few links present on the page.
I'm not sure how this use case should be handled. The idea would be to have only required translation sent to the client. Could be it implemented with the current
reroute
hook or does it need some compile-time transformation from svelte?Beta Was this translation helpful? Give feedback.
All reactions