Set HTML lang depending on user locale

This commit is contained in:
Alexandre Iooss 2020-08-10 13:50:23 +02:00
parent 027ae5b97f
commit bf7c253607
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@
SPDX-License-Identifier: GPL-3.0-or-later SPDX-License-Identifier: GPL-3.0-or-later
{% endcomment %} {% endcomment %}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" class="position-relative h-100"> <html lang="{{ LANGUAGE_CODE|default:"en" }}" class="position-relative h-100">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
@ -22,6 +22,8 @@ SPDX-License-Identifier: GPL-3.0-or-later
<meta name="msapplication-TileColor" content="#da532c"> <meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="{% static "favicon/browserconfig.xml" %}"> <meta name="msapplication-config" content="{% static "favicon/browserconfig.xml" %}">
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
{# Disable turbolink cache for some pages #}
{% if no_cache %} {% if no_cache %}
<meta name="turbolinks-cache-control" content="no-cache"> <meta name="turbolinks-cache-control" content="no-cache">
{% endif %} {% endif %}