# Missing \`emails.incoming.errors\` translations

**URL:** https://meta.discourse.org/t/missing-emails-incoming-errors-translations/261109
**Category:** Bug
**Tags:** pr-welcome
**Created:** [April 9, 2023, 4:29pm UTC](https://meta.discourse.org/t/missing-emails-incoming-errors-translations/261109 "2023-04-09T16:29:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tomtjes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tomtjes/32/131271_2.png) [@tomtjes](https://meta.discourse.org/u/tomtjes)
#### Post date: [April 9, 2023, 4:29pm UTC](https://meta.discourse.org/t/missing-emails-incoming-errors-translations/261109/1 "2023-04-09T16:29:46Z")

</div>

In Admin \> Emails \> Rejected I have an email with the following error:

```plaintext
Error
Email::Receiver::OldDestinationError
translation missing: en.emails.incoming.errors.old_destination_error

```

While I messed with translations for my site, I think this is not just an issue for me. The [server.en.yml](https://github.com/discourse/discourse/blob/main/config/locales/server.en.yml#L127) on Github seems to indeed lack this translation.

---

<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: [April 19, 2023, 7:27am UTC](https://meta.discourse.org/t/missing-emails-incoming-errors-translations/261109/2 "2023-04-19T07:27:04Z")

</div>

I’m moving this into the #Contribute > Bug category, so that it doesn’t get lost.

We should fix this and also, if possible, add a spec or [linting rule](https://github.com/discourse/discourse/blob/main/script/i18n_lint.rb) to ensure that every error in `Email::Receiver` has a corresponding translation. The note in that file certainly isn’t enough.

> <https://github.com/discourse/discourse/blob/f63d18d6ca20861b8580f3b52d1575c15bfe7271/lib/email/receiver.rb#L7-L9>

Also, we need to check if other translations are missing.

> <https://github.com/discourse/discourse/blob/437b73e322d9f368f1ba886a7a1a6087806dda9d/config/locales/server.en.yml#L127-L146>

---

<div class="post-metadata">

### Author: ![JAYT](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jayt/32/142214_2.png) [@JAYT](https://meta.discourse.org/u/JAYT)
#### Post date: [July 4, 2023, 9:13pm UTC](https://meta.discourse.org/t/missing-emails-incoming-errors-translations/261109/3 "2023-07-04T21:13:57Z")

</div>

Seeing this from a source of emails that used to work. (A mailing list for the club I run the Discourse instance for.)

Email::Receiver::InvalidPost

translation missing: en\_GB.emails.incoming.errors.invalid\_post

Any idea what it means? There’s no language translation needed for these posts.
