I have a set of Push notification messages in different languages (all in po files). I want to send push message depending on user's active token field with language preference.
I can make it via dict like this:
messages = {'msg 1': {"en": "...", "it": "....", "es": "..."}, ...}
and then get right translation message.get("msg 1").get(lang_code) but assume this might be a double work when translations present in po files.
Is it possible to somehow get right translation via po file without use of dictionary?