1👍
✅
Based on my understading you have to load {% load i18n %}
in the template.
For example sample html file
{% load i18n %}
<p>
{% blocktranslate %}This is a paragraph in which you have to use
blocktranslte.In order to translate the paragraph{% endblocktranslate %}
</p>
<label for="">{% trans "Translation text should be keep like this" %}</label>
Then django-admin makemessages -l hi
here ‘hi'(hindi) is language code.
Then django-admin compilemessages
Source:stackexchange.com