Skip to main content

Localize Django applications without compiling .po files

Project description


  • Localize Django applications without installing gettext, pybabel or compiling .po files.
  • Automatically reload translations when any .po file is modified.
  • Extract messages from templates and python files automatically or using a management command.
Build Status Coverage Latest Release Supported Python Versions License


  • python 2.7 or >= 3.2
  • django >= 1.6


$ pip install po-localization


  • Add 'po_localization' to your INSTALLED_CLASSES.
  • Add 'po_localization.middleware.PoLocalizationMiddleware' to your MIDDLEWARE_CLASSES.


Whether translation files should be checked for modifications and reloaded before each request.
Whether translation files should be automatically created or updated when templates or python files changes.
List of packages to update using the management command or when auto-update is enabled.
A ‘locale’ folder containing all translation files will be created or updated in each of those packages.
This ‘locale’ folder should be added to LOCALE_PATHS if the package is not a Django app.
List of locales to exclude from update.
All locales from languages in LANGUAGES which are not in this exclusion list will be updated.
Whether translation files should include the locations of the extracted messages.
Whether obsolete translations should be pruned from translation files.
Empty translations will always be pruned.
Even if not pruned, obsolete translations will be marked as such with a comment.

Management Commands

Extract messages from templates and python files and create or update translation files.


If you have any suggestions, bug reports or annoyances please report them to the issue tracker at .

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for po_localization, version 0.5.4
Filename, size File type Python version Upload date Hashes
Filename, size po_localization-0.5.4.tar.gz (21.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page