i'm currently working on a project which has 2 different locals (nl/fr).
We're facing this problem : How can I get the translated url for the current page when I display fr/nl button
I'm currently working with friendly_id and globalize
we've tried :
= link_to "nl", params.merge(locale: "nl")
= link_to "nl", url_for(:locale => :nl)
both work to change the current language but as we've friendly_url, when the page is loaded in french (localhost:3000/c/animaux)
we should have
localhost:3000/nl/c/dieren
instead of
localhost:3000/nl/c/animaux
I've so many link to translate so I wish there's a railsway to do this.