Django Allauth translation issue: Custom language files not being applied

I'm using Django Allauth and have set up i18n (internationalization) with Spanish (es), English (en), and French (fr) in my Django project.

However, I'm experiencing a problem with translations: ✅ English (en) works fine and applies my custom translations. ❌ Spanish (es) is still showing Django Allauth's default translations, even after modifying my locale files. ❌ Even after compiling the translations, my custom django.po files are ignored for Spanish.

file: locale/es/LC_MESSAGES/django.po #: templates/allauth/layouts/base.html:49 templates/base.html:124 msgid "Two-Factor Authentication" msgstr "MFA ES"

file: locale/en/LC_MESSAGES/django.po #: templates/allauth/layouts/base.html:50 templates/base.html:124 msgid "Two-Factor Authentication" msgstr "MFA EN"

Then we run django-admin compilemessages

When we switch language every translation works fine but the allauth ones, English works ok (shows MFA EN), but Spanish takes the default ones (Autenticació de doble factor), not the customized form the file (MFA ES).

Вернуться на верх