Skip to content

Commit b3100fc

Browse files
authored
fix: Add dir attribute to html tag in djangocms_frontend.html (#204)
1 parent e5f72b9 commit b3100fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

djangocms_frontend/templates/djangocms_frontend.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<!DOCTYPE html>{% load cms_tags menu_tags sekizai_tags static i18n %}{% spaceless %}
2-
<html lang="{{ LANGUAGE_CODE }}">
2+
{% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %}
3+
<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" dir="{{ LANGUAGE_BIDI|yesno:'rtl,ltr,auto' }}">
34
<head>
45
<meta charset="utf-8"/>
56
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>

0 commit comments

Comments
 (0)