Skip to content

Unlocalized route path does not work in non-feature specs #140

@jensb

Description

@jensb

What can be the reason if I have route helpers that - when called with a specific locale set - always return the default translation, not the translated route? E.g.

> app.products_path
=> "/products"                    # OK
> I18n.locale = 'de'
=> "de"
> app.products_de_path
=> "/produkte"                    # OK
> app.products_path
=> "/products"                    # should return "/produkte" since I18n.locale is 'de'! Right?

Settings:

RouteTranslator.config do |c|
  c.hide_locale = true
  c.generate_unlocalized_routes = true
end

Using Rails 4.2. Please advise where I should start to debug, I'd like to help track this and will provide a patch if I find a bug. Thank you!

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions