forked from deepStateMirrors/tabi
♻️ refactor(translation): introduce translation macro (#129)
This commit is contained in:
parent
3344f80539
commit
78f97e17b4
18 changed files with 74 additions and 103 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue