For this project's purpose, I used two templates: one in case the .json file has all the data needed to fill the template, and another one in case the .json file doesn't. The template has placeholders in the form of {{ jinja2_sintax }}
. These are replaced with data from a .json file.
pip install docxtpl
# check the spanish locale you have installed
locale -a
# or generate a spanish locale
sudo locale-gen es_ES.UTF-8