Can I use this library with query string instead of subdirectories? #79
Unanswered
mariusbolik
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi, at the moment this feature is not implemented. Is running A workaround that could probably work is adding your own middleware just after the astroI18n one where you would set the route to what it should be for example from the query string : astroI18n.route = `/${ctx.url.searchParams.get("lang")}${ctx.url.pathname}` I'm looking forward to add a way to automatically run the sync command in the future. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
thank you very much for this library!
I have just a short question: I don't really need SEO advantages, so is it possible to use this library with query strings e.g
?lang=en
,?lang=cn
instead of subdirectories like/en
,/cn
?So I don't need to run
i18n:sync
and generate all the files.Kind regards
Marius
Beta Was this translation helpful? Give feedback.
All reactions