Implement internationalization
This commit is contained in:
+4
-1
@@ -156,7 +156,10 @@ Qwaiter::Application.routes.draw do
|
||||
#
|
||||
#root :to => 'dashboard#home'
|
||||
root :to => 'pages#home'
|
||||
get "/:name" => "pages#show", constraints: {name: /.*/}, as: :page
|
||||
|
||||
scope '(/:locale)', constraints: {locale: /nl|be|de|fr|en/}, defaults: { locale: :nl } do
|
||||
get "/:name" => "pages#show", constraints: {name: /.*/}, as: :page
|
||||
end
|
||||
|
||||
# See how all your routes lay out with "rake routes"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user