You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simply declare a localized block in your routes.rb, and then insert in it every routes you want to be localized.
localized(I18n.available_locales, :verbose => true) do
match 'about' => 'contents#about', :as => :about
resources :users
resource :contact
end
The plugin will try to translate routes for each locales you pass to the localized method.
If you do not pass any options to localized, it will use I18n.available_locales.