The language of the hero does not work I18n :: MissingTranslationData

Everything works fine on my local computer, but I get an error message on the hero.

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) $ 
+2
source share
1 answer

I had a similar problem that I fixed by removing the byte order mark from the localization files.

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

0
source

Source: https://habr.com/ru/post/899921/


All Articles