How to load my console rail with spanish

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.

+3
source share
1 answer

This should work:

I18n.locale = 'es'
+11
source

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


All Articles