# Is there a way to get I18n.locale on a User model?

**URL:** <https://www.ruby-forum.com/t/is-there-a-way-to-get-i18n-locale-on-a-user-model/178697>\
**Category:** Rails\
**Created:** [November 9, 2009, 6:48pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-get-i18n-locale-on-a-user-model/178697 "2009-11-09T18:48:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [November 9, 2009, 6:48pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-get-i18n-locale-on-a-user-model/178697/1 "2009-11-09T18:48:37Z")

</div>

I’m trying to validate a User model using custom :message. I always get  
I18n.locale default value. Is there a way to get I18n current\_locale?
