Inside a model is used like this:
I18n.t(:username_in_use)
You can also put it in the translation yml like this:
es: activerecord: errors: messages: taken: "ya está en uso"
There are more examples in: rails-i18n/rails/locale at master · svenfuchs/rails-i18n · GitHub
Regards.
Franco Catena.