```ruby
Rails.application.routes.draw do
  root 'home#index'

  scope '/:locale' do
    get '/', to: 'home#index'
  end

  resource :styleguide, controller: 'styleguide', only: 'show' do
    member do
      get 'css'
      get 'html'
      get 'sass'
      get 'javascript'
      get 'ruby'
    end
  end
end
```

Enforce localised URL convention for styleguide
user
```ruby
Rails.application.routes.draw do
  root 'home#index'

  scope '/:locale' do
    get '/', to: 'home#index'

    resource :styleguide,
             controller:  'styleguide',
             only:        'show',
             constraints: { locale: I18n.default_locale } do
      member do
        get 'css'
        get 'html'
        get 'sass'
        get 'javascript'
        get 'ruby'
      end
    end
  end
end
```
assistant