Skip to content

Commit c9196db

Browse files
committed
fix: Add language module to some jinja file
1 parent 8d72885 commit c9196db

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/mkdocstrings_handlers/python/templates/material/_base/children.html.jinja

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ Context:
1919
{{ log.debug("Rendering children of " + obj.path) }}
2020
{% endblock logs %}
2121

22+
{% import "language.html.jinja" as lang with context %}
23+
{#- Language module providing the `t` translation method. -#}
24+
2225
<div class="doc doc-children">
2326

2427
{% if root_members %}

src/mkdocstrings_handlers/python/templates/material/_base/class.html.jinja

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ Context:
1717
{{ log.debug("Rendering " + class.path) }}
1818
{% endblock logs %}
1919

20+
{% import "language.html.jinja" as lang with context %}
21+
{#- Language module providing the `t` translation method. -#}
22+
2023
<div class="doc doc-object doc-class">
2124
{% with obj = class, html_id = class.path, all_members = class.all_members %}
2225

0 commit comments

Comments
 (0)