[Answered ]-Django translation without request object

2👍

You are looking for translation.override context manager:

language = user.get_language()
with translation.override(language):
    # Translate your message here.
👤Ernest

Leave a comment