<p>You can use the locale as per below examples in your _layout.twig file. </p>

<pre><code>&lt;body class="{% if craft.locale == 'ar' %}rtl{% endif %}"&gt;
</code></pre>

<p>Your css would then be: </p>

<pre><code>.rtl {direction:rtl}
</code></pre>

<p>And in your <code>&lt;html&gt;</code> like so:</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html dir="{% if craft.locale == 'ar' %}rtl{% endif %} lang="
{{craft.locale}}"&gt;
&lt;head&gt;
</code></pre>

<p><a href="https://www.w3.org/International/questions/qa-html-dir" rel="nofollow noreferrer">https://www.w3.org/International/questions/qa-html-dir</a></p>

CC BY-SA 3.0
2017-08-19T07:04:43.137Z
2017-08-21T09:22:57.077Z
2017-08-21T09:22:57.077Z
Mark
<p>You should be able to copy the format of a rtl language locale file in <code>craft &gt; app &gt; framework &gt; i18n &gt; data</code>. For instance if you select the Arabic <code>ar.php</code> file around line 268 set your language orientation. </p>

<p><a href="https://i.sstatic.net/0h7bh.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/0h7bh.png" alt="enter image description here"></a></p>

CC BY-SA 3.0
2017-08-21T14:09:33.290Z
2017-08-21T14:09:33.290Z
a-am
<p>I'm not sure exactly what support you're looking for, but the Craft Control Panel does fully support RTL languages like Arabic and Hebrew.</p>

<p><a href="https://i.sstatic.net/aHhM7.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/aHhM7.png" alt="enter image description here"></a></p>

CC BY-SA 3.0
2017-08-19T01:14:28.120Z
Thanks for your response. I am not talking about the Control Panel in craft. I want to add a new locales language (Hebrew or Arabic) and have it rendered from right to left. All the other languages that I have setup are left to right. When I tries Hebrew, it would render from left to right and not right to left. Is there a setting that I have to change while setting up that locale?
user6999
CC BY-SA 3.0
2017-08-18T22:07:10.923Z
2017-08-18T22:07:10.923Z
Brad Bell
<p>I have been working on setting up locales for left-to-right languages. I wanted to know the support Craft provides for Right-to-Left languages like Arabic, Hebrew etc. Is there a plugin that could help or is it just the way other locales are setup (but with additional step)?</p>

<p>Any insight on this topic is helpful!
Thanks! </p>

<localization><craft-features>
What is the best way to setup Right to Left language locale in Craft?
# What is the best way to setup Right to Left language locale in Craft?

(Asked by: username_0 on 2017-08-18)

I have been working on setting up locales for left-to-right languages. I wanted to know the support Craft provides for Right-to-Left languages like Arabic, Hebrew etc. Is there a plugin that could help or is it just the way other locales are setup (but with additional step)?

Any insight on this topic is helpful!
Thanks!

**Tags:** localization, craft-features

---

## 3 answers

### Answer by username_1 on 2017-08-19. Score: 2

You can use the locale as per below examples in your _layout.twig file. 


Your css would then be: 
.rtl {direction:rtl}

And in your  like so:




https://www.w3.org/International/questions/qa-html-dir


---

### Answer by username_2 on 2017-08-21. Score: 1

You should be able to copy the format of a rtl language locale file in `craft > app > framework > i18n > data`. For instance if you select the Arabic `ar.php` file around line 268 set your language orientation.

[![enter image description here](https://i.sstatic.net/0h7bh.png)](https://i.sstatic.net/0h7bh.png)


---

### Answer by username_3 on 2017-08-18. Score: 0

I'm not sure exactly what support you're looking for, but the Craft Control Panel does fully support RTL languages like Arabic and Hebrew.

[![enter image description here](https://i.sstatic.net/aHhM7.png)](https://i.sstatic.net/aHhM7.png)

> **Comments:**
> **username_0**: Thanks for your response. I am not talking about the Control Panel in craft. I want to add a new locales language (Hebrew or Arabic) and have it rendered from right to left. All the other languages that I have setup are left to right. When I tries Hebrew, it would render from left to right and not right to left. Is there a setting that I have to change while setting up that locale?  

---

