Skip to content
Snippets Groups Projects
Commit 6336e505 authored by squidfunk's avatar squidfunk Committed by Martin Donath
Browse files

Added language from localizations to HTML tag

parent eea31eb5
Branches
Tags
No related merge requests found
......@@ -362,6 +362,7 @@ macro `t`:
``` jinja
{% macro t(key) %}{{ {
"language": "en",
"edit.link.title": "Edit this page",
"footer.previous": "Previous",
"footer.next": "Next",
......
{% import "partials/language.html" as lang %}
<!DOCTYPE html>
<html class="no-js">
<html lang="{{ lang.t('language') }}" class="no-js">
<head>
{% block site_meta %}
<meta charset="utf-8">
......
{% macro t(key) %}{{ {
"language": "en",
"edit.link.title": "Edit this page",
"footer.previous": "Previous",
"footer.next": "Next",
......
......@@ -23,7 +23,7 @@
{% import "partials/language.html" as lang %}
<!DOCTYPE html>
<html class="no-js">
<html lang="{{ lang.t('language') }}" class="no-js">
<head>
<!-- Block: metatags -->
......
......@@ -22,6 +22,7 @@
<!-- Translations -->
{% macro t(key) %}{{ {
"language": "en",
"edit.link.title": "Edit this page",
"footer.previous": "Previous",
"footer.next": "Next",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment