Add ability to translate tags and content warnings

This commit is contained in:
rubenwardy
2024-06-07 05:28:57 +01:00
parent 7d00a5b969
commit d2c5779301
10 changed files with 73 additions and 21 deletions

View File

@@ -166,9 +166,9 @@
{% set tag = pair[1] %}
<a class="btn btn-sm btn-secondary m-1" rel="nofollow"
title="{{ tag.description or '' }}"
title="{{ tag.get_translated().description or '' }}"
href="{{ url_for('packages.list_all', tag=tag.name) }}">
{{ tag.title }}
{{ tag.get_translated().title }}
<span class="badge rounded-pill bg-light text-dark ms-1">{{ count }}</span>
</a>
{% endfor %}