[Django]-Django i18n + template include tags

8👍

If I understand correctly you want to translate the text you provide to an “include” tag. If this is correct just translate it beforehand and save the result to a variable:

{% trans "This is the best product I've ever used!" as text %}
{% trans "Store Manager" as description %}
{% include "includes/blog/testimonial.html" with text=text name="Tim Z" description=description %}

Leave a comment