# Changing direction of invitation email templates for rtl languages

**URL:** https://meta.discourse.org/t/changing-direction-of-invitation-email-templates-for-rtl-languages/65203
**Category:** Support
**Created:** [27.Июнь.2017 15:57:32 UTC](https://meta.discourse.org/t/changing-direction-of-invitation-email-templates-for-rtl-languages/65203 "2017-06-27T15:57:32Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [27.Июнь.2017 15:57:32 UTC](https://meta.discourse.org/t/changing-direction-of-invitation-email-templates-for-rtl-languages/65203/1 "2017-06-27T15:57:32Z")

</div>

Continuing the discussion from [Emails for rtl languages have ltr direction](https://meta.discourse.org/t/emails-for-rtl-languages-have-ltr-direction/41972/20):

I think invitation emails are an important touch point as they are somehow like your suits for a party!

I know the name of the invitation email templates are :

- invite\_forum\_mailer
- custom\_invite\_mailer
- invite\_mailer
- custom\_invite\_forum\_mailer
- user\_notifications.user\_invited\_to\_topic
- user\_notifications.user\_invited\_to\_private\_message\_pm

but I don’t know where email templates are:

> [@Emails for rtl languages have ltr direction](https://meta.discourse.org/t/emails-for-rtl-languages-have-ltr-direction/41972/20):
>
> If someone point me to all email templates, I’m willing to take a look at all of them.

may someone familiar with the codes show @hnaseri the email templates, so that he can change their direction for `rtl` languages?

---

<div class="post-metadata">

### Author: ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)
#### Post date: [27.Июнь.2017 16:14:17 UTC](https://meta.discourse.org/t/changing-direction-of-invitation-email-templates-for-rtl-languages/65203/2 "2017-06-27T16:14:17Z")

</div>

I think you want these:

[discourse/app/views/email at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/tree/master/app/views/email) &nbsp;

Although changing them for rtl might involve code, too. The code is here:

[discourse/app/mailers at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/tree/master/app/mailers) &nbsp;

---

<div class="post-metadata">

### Author: ![hnaseri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hnaseri/32/120660_2.png) [@hnaseri](https://meta.discourse.org/u/hnaseri)
#### Post date: [27.Июнь.2017 20:55:52 UTC](https://meta.discourse.org/t/changing-direction-of-invitation-email-templates-for-rtl-languages/65203/3 "2017-06-27T20:55:52Z")

</div>

> [@elijah](#):
>
> [discourse/app/views/email at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/tree/master/app/views/email)

I changed something in these templates and tested in dev environment. But the email didn’t change. Are you sure these are the right files?

---

<div class="post-metadata">

### Author: ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)
#### Post date: [27.Июнь.2017 22:33:07 UTC](https://meta.discourse.org/t/changing-direction-of-invitation-email-templates-for-rtl-languages/65203/4 "2017-06-27T22:33:07Z")

</div>

Nope, not sure. Did the source code of the received mail look like the template you changed? Checking source to an on-hand piece of Discourse mail I have, it looks like there is at least one other template location used in mail outside of the views/email directory, these digest ones:

> <https://github.com/discourse/discourse/blob/main/app/views/user_notifications/digest.html.erb>

And corresponding text part:

> <https://github.com/discourse/discourse/blob/main/app/views/user_notifications/digest.text.erb>

---

<div class="post-metadata">

### Author: ![hnaseri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hnaseri/32/120660_2.png) [@hnaseri](https://meta.discourse.org/u/hnaseri)
#### Post date: [28.Июнь.2017 07:04:44 UTC](https://meta.discourse.org/t/changing-direction-of-invitation-email-templates-for-rtl-languages/65203/5 "2017-06-28T07:04:44Z")

</div>

> [@elijah](#):
>
> Nope, not sure. Did the source code of the received mail look like the template you changed?

the template seems its for the email I tested. However I added somthing in it and it didnt change the output. So I’m not sure how it works.

btw the digest email template you mentioned is previously corrected for RTL languages by me.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [23.Июнь.2019 04:22:49 UTC](https://meta.discourse.org/t/changing-direction-of-invitation-email-templates-for-rtl-languages/65203/6 "2019-06-23T04:22:49Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [06.Декабрь.2022 16:09:18 UTC](https://meta.discourse.org/t/changing-direction-of-invitation-email-templates-for-rtl-languages/65203/7 "2022-12-06T16:09:18Z")

</div>


