Ruby-on-rails – How to load my Rails console using Spanish

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'

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3331 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.