Compile Translation Files
A snippet showing how to compile translation files.
# After editing .po files
django-admin compilemessages
# Compile JS catalog if using -d djangojs
django-admin compilemessages -d djangojs
Explanation:
- Re-run after any updates to PO files to reflect new translations.
- .mo files are generated; translations become active in the project.
- Category Internationalization (i18n)
- Total Views 271
- Last Modified 04 July, 2026
- Tags #i18n #compilemessages #po files #translation
Previous snippet
Block Translation in Templates
Next snippet