I created my application with Spanish and English. On my console, I get error messages in English if the object returns a validation error. I want to install the rails console so that I get a validation error message in Spanish.
This should work:
I18n.locale = 'es'
Source: https://habr.com/ru/post/1760110/More articles:Inaction Bean - javatool for graphically calling methods over time - javaAs a mass choice using jQuery - jqueryA bidirectional polymorphic merge model in Rails? - ruby-on-railsSubmitting a form using jQuery Ajax leads to multiple queries (and views) - jqueryChanging the color of bubbles in a Google visualization motion graph - apiRun the Ant task from Maven - maven-2Один HTML-якорный тег фактически отображает TWICE! Скриншот - htmlJPA / Hibernate / MS SQL Server does not return the generated identifier value - sql-server-2005Dependecy Design Injecting and reusing a single data context - c #All Articles