# Sidekiq / sending Email digests fails: MissingTranslationData

**URL:** <https://meta.discourse.org/t/sidekiq-sending-email-digests-fails-missingtranslationdata/32500>\
**Category:** Bug\
**Tags:** activity-summary\
**Created:** [2015年八月25日 12:33 UTC](https://meta.discourse.org/t/sidekiq-sending-email-digests-fails-missingtranslationdata/32500 "2015-08-25T12:33:49Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [2015年九月18日 15:28 UTC](https://meta.discourse.org/t/sidekiq-sending-email-digests-fails-missingtranslationdata/32500/8 "2015-09-18T15:28:48Z")

</div>

OK, I can confirm this bug still exists in master. The digest preview works, but the actual Sidekiq job fails with:

```
Jobs::HandledExceptionWrapper: Wrapped I18n::MissingTranslationData: translation missing: de.time.formats.short

```

Somehow the locale fallback doesn’t work in this case.  
This is quite a **severe bug** since it’s not possible to send digest mails when those translations are missing.

@sam I wanted to find out what’s causing this, but I couldn’t figure out how to debug Sidekiq jobs. Any hints in case I need to do this again? I tried following the steps [mentioned on stackoverflow](http://stackoverflow.com/a/24558734/451338), but my Sidekiq instance completly ignored all enqueued jobs. ☹

Update: I guess we need to call `I18n.fallbacks.ensure_loaded!` somewhere. It’s currently only called in [application\_controller.rb](https://github.com/discourse/discourse/blob/master/app/controllers/application_controller.rb#L152-L160).

Update 2: I sent a PR which should fix this:  
[https://github.com/discourse/discourse/pull/3786](https://github.com/discourse/discourse/pull/3786)

---

_[View the full topic](https://meta.discourse.org/t/sidekiq-sending-email-digests-fails-missingtranslationdata/32500)._
