-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Looking for a way to force the generation of a localized path in a specific locale #18
Comments
It's a very reasonable request, but I'm actually not quite sure how to go about it. Let me explain:
The call to |
Thanks for your fast answer. I also agree that because Phoenix went to deprecate helpers, it's maybe not wise to integrate more right back... Because the new way of generating routes is by using a sigil, what do you think of a special modifier of the sigil Basically the locale could be passed as a modifier to the sigil I'm not sure of what's allowed by the syntax but it could be something like:
|
Thats a good suggestion. I'm hesitating just a little because there is a proposal to add HTTP verbs as flags to |
Hello,
thank you for the library, I'm just discovering it and trying to see if I could integrate it in my project.
This is more a question than issue, but I'll be happy to provide a PR to improve the documentation. I've searched the doc and README and something is not clear to me : is it possible to force the generation of a path in a specific locale (if it was defined correctly) without the need to change the locale in the Cldr module ?
In the README there is this example:
It seems fine but what about generating paths in different locales directly in my HTML template, changing globally the locale in Cldr multiple times to render a single HTML seems too heavy.
Thanks!
Nicolas.
The text was updated successfully, but these errors were encountered: