Skip to content
kwi edited this page Sep 14, 2010 · 2 revisions

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.

Clone this wiki locally