How to get localized path on server routes #3805
Unanswered
fredericDelaporte
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i18n provides the
useLocalePathcomposable for resolving localized route.Correct me if I am wrong, but a composable cannot be used in server routes (so, in code under the
serverfolder).I have a server route that needs to redirect to some page of the application.
How can I get the localized path of a page from a server route? (I have its locale, but not its locale path.)
Beta Was this translation helpful? Give feedback.
All reactions