I have a django project that uses a worker process that sends emails to users. The worker processes listens to a rabbitmq server and gets all the details about the email to
It's quite simple using django-i18next
(https://pypi.python.org/pypi/django-i18next).
Load the templatetags.
{% load i18n i18next %}
The following code forces Dutch locale for whatever is put inside the overridelocale
block.
{% overridelocale 'nl' %}
{% endoverridelocale %}
The following code forces Russian locale for whatever is put inside the overridelocale
block.
{% overridelocale 'ru' %}
{% endoverridelocale %}
The following code forces English locale for whatever is put inside the overridelocale
block.
{% overridelocale 'en' %}
{% endoverridelocale %}