1๐
โ
As you can see from the main point of entry in the django translation source
Django internally uses gettext
to do the translations
trans_real
imports gettext here here
Assuming you have the correct settings applied.
Why does django use gettext
rather than make its own translation code? For the same reason, people choose to use existing libraries than write their own (maintenance, testing, etc) as well as the fact that its been around for over 20 years which means anyone coming from an existing project, would have an easier time of integrating it into django.
๐คSayse
Source:stackexchange.com