Modifying the generated route URL #76
Replies: 1 comment 3 replies
-
Hey @morpheus7CS, thanks for the kind words!
If you'd like to have the extended language, you could just set For the random string however, it is currently not possible, locales should be ISO 639-1 codes + eventually a country code for the region. But it could qualify as a feature request if you'd please share the use case for it. Currently the routes can be translated, and this would probably be the same logic --> ie. having the |
Beta Was this translation helpful? Give feedback.
-
Hi @yassinedoghri,
first, let me thank you for a great plugin and good documentation.
I also have an additional question I would like your input on. Currently, you can specify
defaultLocale
andlocales
in theastro-i18next.config.mjs
. This works great, I am however wondering if the generated routes can be modified in any way?Let's say instead of
/en/
, I would want to have the extended language format, such as/èn-US/
, or even something completely random, such as/united-states-of-america/
?Thanks,
g
Beta Was this translation helpful? Give feedback.
All reactions