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.
Never miss a story on Django.wiki

Subscribe for fresh tutorials, snippets, and updates.

By subscribing you agree to our Privacy Policy.