How can I translate attributes of Devise models? For instance. session.email or session.remember_me .
session.email
session.remember_me
Both hierarchies
de: devise: sessions: email: "E-Mail"
and
de: activerecord: attributes: session: email: "E-Mail"
does not work. What is the correct identifier?
I myself came across a solution: I need to define model names in the simple_form namespace, as described here: https://github.com/plataformatec/simple_form (below).
Devise I18n configuration files are intended for flash messages and headers for e-mail messages. You need to generate views and change them accordingly:
rails generate devise:views
Source: https://habr.com/ru/post/908693/More articles:Expander with GridSplitter - wpfLive streaming using an Android device - androidIf necessary, check user messages - ruby โโ| fooobar.comDisable Grails 2.0 resource processing after deployment - grailshow to run callback function after $ .mobile.changePage is ready in jquery? - javascriptIs there a way to reset Progress on my sandbox GameCenter account? - resetAssign a color profile to an ICC image in C # - c #decltype (function) as a member of a class - c ++RenderSection with partial view - asp.net-mvc-3How do I check Line By Line code Deduge or Run (Titanium)? - titaniumAll Articles