Pathname localization read from file/messages #912
SzymonNadbrzezny
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
-
Hey,
would it be possible to have pathname localization be read from messages?
For example if I have locales
en
andde
I'd like to next-intl to look if there's something like "Pathnames" or "Routing" namespace and use that to localize pathnames.For example:
So pathname of "/about" would be just "/about" for en but "/uber-uns" for de and dashboard as "/clients/dashboard" and "/klienten/instrumententafel".
I think it would be easier to maintain and allow for non-developers to manage translations if needed.
This could be opt-in or opt-out (so people can use selected namespace for something else), and if namespace is not created then just don't localize pathnames.
Beta Was this translation helpful? Give feedback.
All reactions