Skip to content
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

Routes inside scopes with conditional variables are not translated #33

Open
JonasNielsen opened this issue Sep 7, 2012 · 1 comment

Comments

@JonasNielsen
Copy link

With this i18n-routes.yml:

da:
  routes:
    foo: julemand
    too: nissepige

There is a problem with scopes that include conditional variables:

namespace :myspace do
  scope "/:user_id" do
    get 'foo' => 'foo#bar' # Is translated correctly
    # myspace_julemand_da GET  /da/myspace/:user_id/julemand(.:format)
  end
  scope "/(:user_id)" do
    get 'too' => 'too#bar' # Is not translated :(
    # myspace_too_da GET  /da/myspace(/:user_id)/too(.:format)
  end
end

Which surely must be a bug?

I wanted to add a failing test, but there isn't any :-)

@tigus
Copy link

tigus commented Oct 10, 2013

Hi
i have exactly the same problem

when a scope is optionel the routes are not translated

someone have a solution ?

tx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants