Internationalization¶
All package templates use {% translate %} / {% blocktranslate %}, and the
package ships a message catalog with a fully-translated Spanish (es) locale
(compiled .mo, included in the wheel via MANIFEST.in).
Enable¶
Django auto-discovers the app's locale/ directory, so the translations apply
with no extra configuration. With LocaleMiddleware installed, the language
follows the request (Accept-Language, session, cookie) — combine with RTL via
ADMINLTE["layout_rtl"] for right-to-left languages.
Add a locale¶
From the package directory:
django-admin makemessages -l fr # extract strings → locale/fr/LC_MESSAGES/django.po
# …translate the .po…
django-admin compilemessages -l fr # compile → django.mo
The same applies to your own project's strings.