Rails 3 - translate routes from I18n

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?

+3
source share
1 answer

, , , , , . , . i18n_routing: http://github.com/kwi/i18n_routing

+2

Source: https://habr.com/ru/post/1765409/


All Articles