Rapsys Git
/
airbundle
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f375064
)
Add lang in html tag from request locale
author
Raphaël Gertz
<git@rapsys.eu>
Wed, 9 Dec 2020 20:45:30 +0000
(21:45 +0100)
committer
Raphaël Gertz
<git@rapsys.eu>
Wed, 9 Dec 2020 20:45:30 +0000
(21:45 +0100)
Resources/views/base.html.twig
patch
|
blob
|
history
diff --git
a/Resources/views/base.html.twig
b/Resources/views/base.html.twig
index e103e060347d33a4eb087a987af4cc99973634c8..638e2bcab68154bb56431ed43a4b8a7030b556c6 100644
(file)
--- a/
Resources/views/base.html.twig
+++ b/
Resources/views/base.html.twig
@@
-1,5
+1,5
@@
<!DOCTYPE html>
-<html{% if
lang is defined and lang %} lang="{{ lang
}}"{% endif %}>
+<html{% if
app.request.locale is defined and app.request.locale %} lang="{{ app.request.locale
}}"{% endif %}>
<head>
{% block metas %}<meta charset="UTF-8">{% endblock %}
<title>{% block title %}Welcome!{% endblock %}</title>