# Change to using %{inviter\_name} in locale files may have broken email templates

**URL:** <https://meta.discourse.org/t/change-to-using-inviter-name-in-locale-files-may-have-broken-email-templates/75882>\
**Category:** Bug\
**Created:** [12 Dicembre 2017, 5:17pm UTC](https://meta.discourse.org/t/change-to-using-inviter-name-in-locale-files-may-have-broken-email-templates/75882 "2017-12-12T17:17:23Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pacharanero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pacharanero/32/500583_2.png) [@pacharanero](https://meta.discourse.org/u/pacharanero)\
**Post date:** [12 Dicembre 2017, 5:17pm UTC](https://meta.discourse.org/t/change-to-using-inviter-name-in-locale-files-may-have-broken-email-templates/75882/1 "2017-12-12T17:17:23Z")

</div>

I’m not entirely sure when I did my last update (so I don’t know when this issue started), but I was contacted by one of our moderators today to say that some of the people she’d invited recently had messaged her to say that the invitation read just:

`translation missing: en.invite_forum_mailer.text_body_template`

I hadn’t changed my mailing templates for some weeks so I had to do a bit of research on Meta, and turned up [this thread](https://meta.discourse.org/t/discobot-translation-missing-error/64429/2) which suggested that the templating system will reoprt this error if it can’t find the right key in the locale files.

When I looked at and did some test edits on my email templates, I got the error:

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/f/bf9a5209b195b02518f517193afa4a42491701fe.png)

And I know that %{invitee\_name} has only just been changed to %{inviter\_name} because I [reported it as an issue](https://meta.discourse.org/t/render-invitee-name-as-full-name-only/62412/2) and I saw the commit last week:

[https://github.com/discourse/discourse/commit/248ad5466d5009476fb7170e878096a3e343ec1c](https://github.com/discourse/discourse/commit/248ad5466d5009476fb7170e878096a3e343ec1c)

So if you are getting weird locale/translation missing errors on your invitations it could be caused by this. It’s easily fixed by changing %{invitee\_name} to %{invit **er** \_name} in all your invite templates (‘Invite Forum Mailer’, ‘Invite Mailer’, ‘Custom Invite Forum Mailer’, and ‘Custom Invite Mailer’).

It may only affect people who have edited their stock invite templates, as I have.

I’m on [v1.9.0.beta15 +167](https://github.com/discourse/discourse/compare/1be32bf4cf56c693642796afd5106a1667d9b7cb...tests-passed)

---

_[View the full topic](https://meta.discourse.org/t/change-to-using-inviter-name-in-locale-files-may-have-broken-email-templates/75882)._
