Skip to content

Commit 8d72885

Browse files
committed
fix: The translated content was not rendered correctly
1 parent 50d135a commit 8d72885

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Context:
4545
) %}
4646
{% if attributes %}
4747
{% if config.show_category_heading %}
48-
{% filter heading(heading_level, id=html_id ~ "-attributes", skip_inventory=config.skip_local_inventory) %}Attributes{% endfilter %}
48+
{% filter heading(heading_level, id=html_id ~ "-attributes", skip_inventory=config.skip_local_inventory) %}{{ lang.t("Attributes") }}{% endfilter %}
4949
{% endif %}
5050
{% with heading_level = heading_level + extra_level %}
5151
{% for attribute in attributes|order_members(config.members_order, members_list) %}
@@ -65,7 +65,7 @@ Context:
6565
) %}
6666
{% if type_aliases %}
6767
{% if config.show_category_heading %}
68-
{% filter heading(heading_level, id=html_id ~ "-type_aliases") %}Type Aliases{% endfilter %}
68+
{% filter heading(heading_level, id=html_id ~ "-type_aliases") %}{{ lang.t("Type Aliases") }}{% endfilter %}
6969
{% endif %}
7070
{% with heading_level = heading_level + extra_level %}
7171
{% for type_alias in type_aliases|order_members(config.members_order, members_list) %}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ Context:
246246
{% if "__init__" in all_members and all_members["__init__"].source %}
247247
{% with init = all_members["__init__"] %}
248248
<details class="mkdocstrings-source">
249-
<summary>Source code in <code>
249+
<summary>{{ lang.t("Source code in") }} <code>
250250
{%- if init.relative_filepath.is_absolute() -%}
251251
{{ init.relative_package_filepath }}
252252
{%- else -%}
@@ -259,7 +259,7 @@ Context:
259259
{% endif %}
260260
{% elif class.source %}
261261
<details class="mkdocstrings-source">
262-
<summary>Source code in <code>
262+
<summary>{{ lang.t("Source code in") }} <code>
263263
{%- if class.relative_filepath.is_absolute() -%}
264264
{{ class.relative_package_filepath }}
265265
{%- else -%}

src/mkdocstrings_handlers/python/templates/material/_base/docstring/attributes.html.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Context:
9393
<p>
9494
{% if attribute.annotation %}
9595
<span class="doc-attribute-annotation">
96-
<b>TYPE:</b>
96+
<b>{{ lang.t("TYPE:") }}</b>
9797
{% with expression = attribute.annotation %}
9898
<code>{% include "expression.html.jinja" with context %}</code>
9999
{% endwith %}

0 commit comments

Comments
 (0)