francesc/rails-translate-routes — Issue #1: Translating current url into another language
Author: dgilperez
Created: 2012-01-05 11:50:12+00:00
State: open

Hi Francesc,

I'm looking into your plugin as replacement from Raul's translate_routes in my Rails3.1 app. I'm struggling with the following use case, maybe this can be done easily. If not, this might me an interesting feature to add :)

I want to have a language switcher in the header, used across the site, with the different available languages. I'd like the switcher to link or redirect to the page the user is at, localized with the selected language. I was looking for some helper or method to translate ``current_url``. I ended up using some ugly javascript, but it good be great if I could use translate-routes.

Any ideas?

Thanks!