mirror of
https://github.com/welpo/tabi.git
synced 2025-10-10 23:38:53 +02:00
♻️ refactor(translation): introduce translation macro (#129)
This commit is contained in:
parent
3344f80539
commit
78f97e17b4
18 changed files with 74 additions and 103 deletions
|
@ -5,11 +5,7 @@
|
|||
{{ macros_page_header::page_header(title=section.title) }}
|
||||
|
||||
{# Set locale for date #}
|
||||
{%- if lang != config.default_language %}
|
||||
{% set date_locale = trans(key="date_locale" | safe, lang=lang) %}
|
||||
{% else %}
|
||||
{% set date_locale = "en_GB" %}
|
||||
{% endif %}
|
||||
{% set date_locale = macros_translate::translate(key="date_locale", default="en_GB") %}
|
||||
|
||||
<div class="archive">
|
||||
<ul class="list-with-title">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue