diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7978a3ba9..4dabe0de8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,6 +18,11 @@ repos: hooks: - id: django-upgrade args: [--target-version, "4.2"] +- repo: https://github.com/adamchainz/djade-pre-commit + rev: "1.3.2" + hooks: + - id: djade + args: [--target-version, "4.2"] - repo: https://github.com/pre-commit/pygrep-hooks rev: v1.10.0 hooks: diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html index b5c225ac8..607863104 100644 --- a/debug_toolbar/templates/debug_toolbar/base.html +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -2,10 +2,10 @@ {% block css %} -{% endblock %} +{% endblock css %} {% block js %} -{% endblock %} +{% endblock js %}
{% trans "Total calls" %} | -{% trans "Total time" %} | -{% trans "Cache hits" %} | -{% trans "Cache misses" %} | +{% translate "Total calls" %} | +{% translate "Total time" %} | +{% translate "Cache hits" %} | +{% translate "Cache misses" %} |
---|
{% trans "Time (ms)" %} | -{% trans "Type" %} | -{% trans "Arguments" %} | -{% trans "Keyword arguments" %} | -{% trans "Backend" %} | +{% translate "Time (ms)" %} | +{% translate "Type" %} | +{% translate "Arguments" %} | +{% translate "Keyword arguments" %} | +{% translate "Backend" %} |
---|
{% trans "Key" %} | -{% trans "Value" %} | +{% translate "Key" %} | +{% translate "Value" %} |
---|
{% trans "Key" %} | -{% trans "Value" %} | +{% translate "Key" %} | +{% translate "Value" %} |
---|
{% trans "Since the WSGI environ inherits the environment of the server, only a significant subset is shown below." %}
+{% translate "Since the WSGI environ inherits the environment of the server, only a significant subset is shown below." %}
{% trans "Key" %} | -{% trans "Value" %} | +{% translate "Key" %} | +{% translate "Value" %} |
---|