Django - Translate variable before rendering to template
I am currently using Django Translation in order to switch between en/es and viceversa.
And I know that I can use {%blocktrans%}
in order to translate a variable inside a template. The problem is that I have no access to the template of this particular feature where I need to translate several words.
How do I translate a variable before rendering it into a template?
For that you need to create language files and translate inside them, please have a look at How to create language file with Django