I want a simple thing. Translate routes using I18n as follows
get I18n.t('routes.login') => "devise/sessions#new", :as => :new_user_session
I made initializers for the /locale.rb files with
I18n.default_locale = :cz
It works fine when I start the "rake routes", but when I start the server, it ignores the standard locale and throws the message "no translation"
Any suggestion on what is happening and why?
source
share