introduce locale (#165)

* introduced locale option

* added tests
This commit is contained in:
Simone Robutti
2022-04-11 18:13:35 +02:00
committed by GitHub
parent 4e40a1979e
commit 94c85d8b48
14 changed files with 50 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
<strong>{{ name }}</strong>
🕒 {{ begin_datetime.to('local').format('DD MMMM, HH:mm') }} - {{ end_datetime.to('local').format('DD MMMM, HH:mm') }}
🕒 {{ begin_datetime.to('local').format('DD MMMM, HH:mm', locale=locale) }} - {{ end_datetime.to('local').format('DD MMMM, HH:mm', locale=locale) }}
{% if location %}📍 {{ location }}{% endif %}
🔗 <a href="{{mobilizon_link}}">Link</a>