Hi,
my routes.rb
scope "(:locale)" , :locale => /pt|en/ do
localized(['en','pt'], :verbose => true) do
match 'about' => "home#about",:as => :about
end
end
my translation
pt.yml
pt:
named_routes_path:
about: "pt_about"
rake routes
[I18n] > localize route : about (pt) => /(:locale)pt-about
Hi, my routes.rb scope "(:locale)" , :locale => /pt|en/ do localized(['en','pt'], :verbose => true) do match 'about' => "home#about",:as => :about end end
my translation pt.yml pt: named_routes_path: about: "pt_about" rake routes [I18n] > localize route : about (pt) => /(:locale)pt-about
where is slash?