krunal shah
krunal shah

Reputation: 16339

How to load my rails console with spanish

I have set up a my application with spanish and english. On my console i am getting error messages in english if object is returning validation error. I want to set my rails console so i will get validation error message in spanish.

Upvotes: 4

Views: 5428

Answers (1)

Shadwell
Shadwell

Reputation: 34774

This should work:

I18n.locale = 'es'

Upvotes: 15

Related Questions