# Locale in namespaced routes

**URL:** <https://www.ruby-forum.com/t/locale-in-namespaced-routes/190414>\
**Category:** Rails I18n\
**Created:** [June 19, 2010, 4:52pm UTC](https://www.ruby-forum.com/t/locale-in-namespaced-routes/190414 "2010-06-19T16:52:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin\_MacCarthy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6f9a4e/32.png) [@Justin\_MacCarthy](https://www.ruby-forum.com/u/Justin_MacCarthy)\
**Post date:** [June 19, 2010, 4:52pm UTC](https://www.ruby-forum.com/t/locale-in-namespaced-routes/190414/1 "2010-06-19T16:52:29Z")

</div>

Hi,

I want to add a locale to my admin routes , currently I have routes such  
as

map.resources :gigs, :path\_prefix =\> ‘/:locale’

So /en/gigs etc works, now I want to do /en/admin/venues  
What can do to the following routes to make it work

map.namespace :admin do |admin|  
admin.resources :venues  
end

Any ideas?

Thanks
