-
-
Notifications
You must be signed in to change notification settings - Fork 419
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
Translating routes #150
Comments
so you'll expect: var routes = __l('/:locale/products/:id?');
// equals - a)
routes = [
'/:locale/products/:id?',
'/:locale/productos/:id?'
];
// or how about - b)
routes = [
{'en': '/:locale/products/:id?'},
{'es': '/:locale/productos/:id?'}
]; |
Let's add the |
Even better would be the .inverse() of my proposal :). If you pass |
@mashpie Which option do you prefer? I would appreciate if you could add this feature into next version. Thanks! |
hmm. liked to catchup with this in next release. Let's see if I manage that |
I think it's best to split:
|
Please add a function which returns a list of translations for a key (as an array) so we will be able to translate express routes like the example:
The text was updated successfully, but these errors were encountered: