{#
This is the base template used as the application layout which contains the
common elements and decorates all the other templates.
See https://symfony.com/doc/current/templates.html#template-inheritance-and-layouts
#}
{% block title %}Symfony Demo application{% endblock %}
{#
Those two blocks defines frontend entrypoint for CSS and JavaScript assets
See https://symfony.com/doc/current/frontend.html
#}
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}
{% block javascripts %}
{{ encore_entry_script_tags('app') }}
{% endblock %}
{% block header %}
{% set _route = app.request.get('_route') %}
{# display this title always in English to make the language selector easier to use #}
Choose your language
{% for locale in locales() %}
{% set is_active = app.request.locale == locale.code %}
{% set is_rtl = locale.code in ['ar', 'fa', 'he'] %}
{% block footer %}
{% endblock %}
{# it's not mandatory to set the timezone in localizeddate(). This is done to
avoid errors when the 'intl' PHP extension is not available and the application
is forced to use the limited "intl polyfill", which only supports UTC and GMT #}