I'm developing a rails 4 application with i18n support. I've installed i18n gem. In my application.rb file I have this code

```
config.i18n.enforce_available_locales = true
config.i18n.available_locales = [:es]
config.i18n.default_locale = :es

```

In development mode all works flawlessly, but when I switch to production everything outputs "translation missing". I tried different solutions such as write this code in config/initializers/locale.rb

```
I18n.load_path += Dir[Rails.root.join('config', 'locales', '*.{rb,yml}')]
I18n.default_locale = :es

```

And also write this in config/environment.rb

```
I18n.reload!

```

Nothing worked. Going to console mode shows this, the same as when I open the app in web browser.

```
user@opendraft:/home/user/www/awesomeapp# RAILS_ENV=development bundle exec rails c
Loading development environment (Rails 4.0.1)
irb(main):001:0> I18n.t('btn_login')
=> "Acceder"
irb(main):002:0> exit
user@opendraft:/home/user/www/awesomeapp# RAILS_ENV=production bundle exec rails c
Loading production environment (Rails 4.0.1)
irb(main):001:0> I18n.t('btn_login')
=> "translation missing: es.btn_login"
irb(main):002:0> exit

```

My config/locales/es.yml file:

```
es:
  btn_login: "Acceder"
  reset: "Reinicializar"
  login: "Acceso"
  sign_up_candidate: "Candidatos"
  sign_up_company: "Empresas"
  sign_up_teacher: "Profesores"

```