title: Detecting the language used in template by Django Template
body: <p>is it possible that Django realize which language are used in template and change element of HTML direction and align? for example, I want sometimes use Persian in one element, and another time I want to use English in there, which both of them are gotten by database.
  In addition I don't want to manipulate each element one by one; I want general solution for whole template.</p>
  
  <pre><code>&lt;p style="direction: ltr"&gt;Hi!&lt;p&gt;
  </code></pre>
  
  <p>Sometimes:</p>
  
  <pre><code>&lt;p style="direction: rtl"&gt;Hi!&lt;p&gt;
  </code></pre>