2

On my local pc all works fine but on heroku I get a error.

My heroku console:

PC@HOME-PC  /c/rails/konkurranceportalen (master)
$ heroku console
Ruby console for vinderhimlen.heroku.com
>> I18n.l Time.now
I18n::MissingTranslationData: translation missing: da.time.formats.default
        /app/.bundle/gems/ruby/1.9.1/gems/i18n-0.5.0/lib/i18n/backend/fallbacks.
rb:53:in `translate'
        /app/.bundle/gems/ruby/1.9.1/gems/i18n-0.5.0/lib/i18n.rb:155:in `transla
te'
        /app/.bundle/gems/ruby/1.9.1/gems/i18n-0.5.0/lib/i18n/backend/base.rb:55
:in `localize'
        /app/.bundle/gems/ruby/1.9.1/gems/i18n-0.5.0/lib/i18n.rb:235:in `localiz
e'


PC@HOME-PC /c/rails/konkurranceportalen (master)
$ heroku stack
  aspen-mri-1.8.6
  bamboo-ree-1.8.7
* bamboo-mri-1.9.2

PC@HOME-PC  /c/rails/konkurranceportalen (master)
$
Rails beginner
  • 14,321
  • 35
  • 137
  • 257
  • Did you double-check `I18n.t(:'time.formats')` or even `I18n.t(:time)`? – awendt May 24 '11 at 15:36
  • I had similar issues once. Could you check your application.rb and see what is set for - config.i18n.default_locale – BlueFish Sep 15 '11 at 00:12
  • Try stopping local `spring` server. (`bin/spring stop`) That's what worked for me. Or rather made realize that it doesn't work locally either. – x-yuri Apr 13 '15 at 11:55

1 Answers1

0

I had a similar problem, which I fixed by taking out the byte order mark from the localization files.

More info in the question I opened: heroku not loading language file

Community
  • 1
  • 1
ANeves
  • 6,219
  • 3
  • 39
  • 63