enriclluelles/route_translator — pull request #28 by rsierra (2013-07-13 20:10:18+00:00)
Title: Support for routes with wildcards

Support for routes with wildcards like:

get '/*page_path', to:'pages#show', as: :page

When default locale is omitted in routes, default routes can't be translated in first place.

get '/*page_path', to:'pages#show'
get '/en/*page_path', to:'pages#show'

In this case, with the wildcard, the default route will catch all paths for the :en locale. So it should be the last. The translation order is defined by available locales that depends on the application configuration. So it is needed to put in the last place when routes are translated.