[Solved]-Django right-to-left language with LANGUAGE_BIDI does not work

9👍

Text alignment is handled by CSS not Django. Set the text-align property on the container element:

.container.right-aligned-language {
    text-align: right;
}

Then you can apply the class right-aligned-language to your container (or body tag for that matter) with a conditional statement in your template.

3👍

nowadays you should use in CSS:

direction: rtl

http://www.w3schools.com/cssref/pr_text_direction.asp

0👍

Use this instead please:

https://github.com/abbas123456/django-right-to-left

CSS is for style and not content.

Leave a comment