-
Notifications
You must be signed in to change notification settings - Fork 145
Open
Labels
Description
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!