Localize flashed messages in base.html

This commit is contained in:
Kiril Kovachev 2024-10-14 12:48:15 +01:00
parent bfc42bba19
commit 934f7ae676

View File

@ -26,7 +26,7 @@
{% block header %}{% endblock %} {% block header %}{% endblock %}
</header> </header>
{% for message in get_flashed_messages() %} {% for message in get_flashed_messages() %}
<div class="flash">{{ message }}</div> <div class="flash">{{ localize(message) }}</div>
{% endfor %} {% endfor %}
{% block content %}{% endblock %} {% block content %}{% endblock %}
</section> </section>