I have built an application in Spanish and English. On my console, if the object returns a validation error, I will receive an error message in English. I want to set up my rails console, so I will get the Spanish validation error message.
this should work:
I18n.locale ='es'
I have built an application in Spanish and English. In my control On stage, if the object returns a validation error, I will get an error message in English. I want to set up my rails console so I will get a validation error message in Spanish.
This should work:
I18n.locale ='es'