diff --git a/config/__pycache__/settings.cpython-311.pyc b/config/__pycache__/settings.cpython-311.pyc index 1e00947..00afa59 100644 Binary files a/config/__pycache__/settings.cpython-311.pyc and b/config/__pycache__/settings.cpython-311.pyc differ diff --git a/config/settings.py b/config/settings.py index f7ca7b6..ca81335 100644 --- a/config/settings.py +++ b/config/settings.py @@ -84,6 +84,7 @@ TEMPLATES = [ 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', + 'django.template.context_processors.i18n', # IMPORTANT: do not remove – injects PROJECT_DESCRIPTION/PROJECT_IMAGE_URL and cache-busting timestamp 'core.context_processors.project_context', ], diff --git a/core/templates/base.html b/core/templates/base.html index 63534f6..61d4e64 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -2,7 +2,7 @@ {% get_current_language as LANGUAGE_CODE %} {% get_language_info for LANGUAGE_CODE as lang %} - +
@@ -19,7 +19,7 @@ {% endif %} - {% if lang.direction == 'rtl' %} + {% if LANGUAGE_BIDI %} {% else %} @@ -30,12 +30,19 @@ - {% if lang.direction == 'rtl' %} + {% if LANGUAGE_BIDI %} {% endif %}