However: The language-switcher will not work. The only thing that currently succesfully switches the language in my app is by willfully accessing a route in the target-language.
What I have already done:
Checking params[:locale] - it always hold the path's locale, even if ?locale= is given.
Hey there guys,
I believe this is something that I'm simply doing wrong: I have an app that uses the following configuration:
ApplicationController:
Now I wanted to have a language-switcher and added this:
However: The language-switcher will not work. The only thing that currently succesfully switches the language in my app is by willfully accessing a route in the target-language.
What I have already done:
params[:locale]
- it always hold the path's locale, even if?locale=
is given.before_filter :set_locale_from_url
. Doesn't help.How do I do this correctly with "rails-translate-routes"?
Thx for your help!