Scope available locales

If your application is available in different languages, you usually show the current locale in the URL.

scope '/(:locale)', locale: /#{I18n.available_locales.join('|')}/ do
    root 'example#root'
    # other routes
end

Your root will be accessible via the locales defined in I18n.available_locales.

results matching ""

    No results matching ""