# Recommended way to handle RTL mixed with LTR languages

**URL:** https://meta.discourse.org/t/recommended-way-to-handle-rtl-mixed-with-ltr-languages/78894
**Category:** Support
**Created:** [January 24, 2018, 5:24pm UTC](https://meta.discourse.org/t/recommended-way-to-handle-rtl-mixed-with-ltr-languages/78894 "2018-01-24T17:24:26Z")
**Posts on this page:** 12
**Page:** 2

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 12, 2018, 11:37am UTC](https://meta.discourse.org/t/recommended-way-to-handle-rtl-mixed-with-ltr-languages/78894/21 "2018-02-12T11:37:14Z")

</div>

We will get this sorted can you post a copy of a long post with that issue so we can have a look

---

<div class="post-metadata">

### Author: ![parisa](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@parisa](https://meta.discourse.org/u/parisa)
#### Post date: [February 12, 2018, 11:39am UTC](https://meta.discourse.org/t/recommended-way-to-handle-rtl-mixed-with-ltr-languages/78894/22 "2018-02-12T11:39:46Z")

</div>

Its not a long post.

its a topic with thousands of posts. [here](https://talk.zabanshenas.com/t/%D8%A7%D8%B1%D8%B2%DB%8C%D8%A7%D8%A8%DB%8C-%D8%A7%D9%BE%D9%84%DB%8C%DA%A9%DB%8C%D8%B4%D9%86-%D8%B2%D8%A8%D8%A7%D9%86%D8%B4%D9%86%D8%A7%D8%B3/540/4588)

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [February 12, 2018, 4:15pm UTC](https://meta.discourse.org/t/recommended-way-to-handle-rtl-mixed-with-ltr-languages/78894/23 "2018-02-12T16:15:17Z")

</div>

I’m wondering if the bottleneck is Discourse generating the directional instructions or the browser interpreting them and rendering the display.

Have you compared the efficiency using different browsers?

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [February 12, 2018, 5:05pm UTC](https://meta.discourse.org/t/recommended-way-to-handle-rtl-mixed-with-ltr-languages/78894/24 "2018-02-12T17:05:23Z")

</div>

The topic that you linked to seems to be loading correctly for me. I am using a fairly powerful computer, so that could be the difference. There is a small change that could be made to the code that I’m sure would improve performance, but we would loose support for Internet Explorer.

What browser and operating system are you using?

I am surprised that the number of posts in a topic is making a difference. I’ll look into that.

---

<div class="post-metadata">

### Author: ![parisa](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@parisa](https://meta.discourse.org/u/parisa)
#### Post date: [February 12, 2018, 7:28pm UTC](https://meta.discourse.org/t/recommended-way-to-handle-rtl-mixed-with-ltr-languages/78894/25 "2018-02-12T19:28:27Z")

</div>

> [@Mittineague](#):
>
> Have you compared the efficiency using different browsers?

> [@simon](#):
>
> What browser and operating system are you using?

I’m on Ubuntu 16.04 and I tested with Mozilla and Chrome

I also tested with my cellphone now. However surprisingly, the topic opened normally. Now what could be the problem? 🤔

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [February 12, 2018, 11:11pm UTC](https://meta.discourse.org/t/recommended-way-to-handle-rtl-mixed-with-ltr-languages/78894/26 "2018-02-12T23:11:40Z")

</div>

> [@simon](#):
>
> we would loose support for Internet Explorer.

What version? You mean not Edge, so IE11 only? That could be an acceptable tradeoff for many audiences.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [February 12, 2018, 11:15pm UTC](https://meta.discourse.org/t/recommended-way-to-handle-rtl-mixed-with-ltr-languages/78894/27 "2018-02-12T23:15:51Z")

</div>

There’s no support for `dir="auto"` in IE11 or Edge.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [February 12, 2018, 11:26pm UTC](https://meta.discourse.org/t/recommended-way-to-handle-rtl-mixed-with-ltr-languages/78894/28 "2018-02-12T23:26:01Z")

</div>

Wow that’s really weird:

> **[HTML5, dir=auto: Summarized test results](https://www.w3.org/International/tests/repo/results/the-dir-attribute-auto)**
>
> Summary of results of CSS3 Text module tests

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [February 12, 2018, 11:31pm UTC](https://meta.discourse.org/t/recommended-way-to-handle-rtl-mixed-with-ltr-languages/78894/29 "2018-02-12T23:31:48Z")

</div>

Yes, I was surprised, so I tested it with BrowserStack as well. There is another approach we could take with this to make it more efficient, but we need to be sure there’s a problem first.

---

<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: [May 21, 2020, 5:52am UTC](https://meta.discourse.org/t/recommended-way-to-handle-rtl-mixed-with-ltr-languages/78894/30 "2020-05-21T05:52:05Z")

</div>



---

<div class="post-metadata">

### Author: ![NightMachinary](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nightmachinary/32/194449_2.png) [@NightMachinary](https://meta.discourse.org/u/NightMachinary)
#### Post date: [September 20, 2020, 1:57pm UTC](https://meta.discourse.org/t/recommended-way-to-handle-rtl-mixed-with-ltr-languages/78894/31 "2020-09-20T13:57:15Z")

</div>

After installing discourse from Docker, what settings should I change to reach this?

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [September 20, 2020, 2:22pm UTC](https://meta.discourse.org/t/recommended-way-to-handle-rtl-mixed-with-ltr-languages/78894/32 "2020-09-20T14:22:32Z")

</div>

I think these two :  
`https://your.domain/admin/site_settings/category/all_results?filter=default%20locale`  
`https://your.domain/admin/site_settings/category/all_results?filter=mixed%20text`

then wrapping your text with:

```plaintext
<div dir="rtl">
…
</div>

```

or

```plaintext
<div dir="ltr">
…
</div>

```

works

[Previous page](https://meta.discourse.org/t/recommended-way-to-handle-rtl-mixed-with-ltr-languages/78894.md?page=1)
