我在这篇文章中找到了解决方案:
这是给出的例子:
{% trans "Load more promotions" as promotions %} {% include "a_dir/stuff.html" with text=promotions %}