API - use Babel to translate emails

This commit is contained in:
Sam
2022-07-02 19:25:07 +02:00
parent 4abcf050a3
commit fd292a9392
84 changed files with 1302 additions and 686 deletions

View File

@ -212,7 +212,15 @@
<tr>
<td class="content-cell">
<div class="f-fallback">
<h1>{{ _('Hi %(username)s,', username=username) }}</h1>
{% block content %}{% endblock %}
<p>
{% if operating_system and browser_name %}{{ _('For security, this request was received from a %(operating_system)s device using %(browser_name)s.', operating_system=operating_system, browser_name=browser_name) }}
{% endif %}{% block not_initiated %}{% endblock %}
</p>
<p>{{ _('Thanks,') }}
<br>{{ _('The FitTrackee Team') }}</p>
{% block url_to_paste %}{% endblock %}
</div>
</td>
</tr>