♻️ refactor(translation): introduce translation macro (#129)

This commit is contained in:
Óscar
2023-09-01 23:29:11 +02:00
committed by GitHub
parent 3344f80539
commit 78f97e17b4
18 changed files with 74 additions and 103 deletions

View File

@@ -8,7 +8,7 @@
<div class="toc-container">
{% if header %}
<h3>{%- if lang != config.default_language %} {{ trans(key="table_of_contents" | safe, lang=lang) }} {% else %} Table of Contents {% endif %}</h3>
<h3>{{ macros_translate::translate(key="table_of_contents", default="Table of Contents") }}</h3>
{% endif %}
<ul>