diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html
index e76f15c540..1c7a9a7ae2 100644
--- a/django/contrib/admin/templates/admin/base.html
+++ b/django/contrib/admin/templates/admin/base.html
@@ -1,4 +1,5 @@
-{% load admin_static %}
+{% load i18n admin_static %}
+{% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %}
{% block title %}{% endblock %}
diff --git a/django/contrib/gis/templates/gis/admin/openlayers.html b/django/contrib/gis/templates/gis/admin/openlayers.html
index 592c6c9e71..0f5716e40c 100644
--- a/django/contrib/gis/templates/gis/admin/openlayers.html
+++ b/django/contrib/gis/templates/gis/admin/openlayers.html
@@ -1,5 +1,5 @@
{% block extrastyle %}
-{% load static %}
+{% load i18n static %}{% get_current_language_bidi as LANGUAGE_BIDI %}