--- id: django-statici18n version: "2.7.1" license: BSD license_treatment: permissive maintenance: active --- # django-statici18n — A Django app that compiles i18n JavaScript catalogs to static files. License: permissive · Maintenance: active · Downloads: 231.0K/mo ## What it is and what it does django-statici18n solves a performance problem in Django applications that use JavaScript internationalization. Django's built-in JSONCatalog view generates translation catalogs dynamically on every request, which adds overhead as sites grow. This package pre-compiles those catalogs into static files that can be served directly, eliminating the per-request generation cost. The package works by collecting JavaScript translation catalogs from your Django apps and compiling them into static files using a management command. It integrates with Django's staticfiles framework and supports modern Django versions (4.2 LTS, 5.2 LTS, and 6.0) across Python 3.8 through 3.14. Installation is straightforward: add it to INSTALLED_APPS, run the compilejsi18n command after translating and compiling your messages, and update your templates to reference the static catalog instead of the dynamic view. Use it for: - Optimize JavaScript translation performance in multi-language Django sites by pre-compiling catalogs. - Reduce server load by serving static i18n files instead of generating them per request. - Integrate static JavaScript translations with Django's staticfiles collection and CDN deployment. - Support client-side gettext-like translation functions with pre-compiled message catalogs. - Simplify template code by using provided template tags to include compiled i18n catalogs. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Compiles Django's JavaScript internationalization catalogs to static files, eliminating per-request overhead from dynamic catalog generation. Yes. The package is actively maintained, production-stable, has no known vulnerabilities, and solves a real performance problem for Django sites using JavaScript internationalization. Installation friction is minimal with only two runtime dependencies. The permissive BSD license poses no restrictions. ## Install pip install django-statici18n uv add django-statici18n poetry add django-statici18n ## Installing django-statici18n Before you install: Low friction installation with only Django and django-appconf as runtime dependencies. Package is actively maintained with recent commits and marked production-stable. License in practice: BSD license is permissive, allowing use in commercial and proprietary projects with minimal restrictions. Quickstart: pip install django-statici18n # Add to INSTALLED_APPS in settings.py: INSTALLED_APPS = [ 'statici18n', ] # Run management command: python manage.py compilejsi18n Requires Django to be installed and configured with i18n support; translation messages must be compiled before running compilejsi18n. Verify before relying: - Whether the package supports Django versions beyond 6.0 or if 6.0 is the current maximum. - Performance improvement metrics or benchmarks comparing static vs. dynamic catalog generation. ## Package facts - License: BSD (permissive) - Python support: unspecified - Install friction: low - Maintenance: active - Downloads: 231.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags django i18n javascript static files, compile javascript translation catalogs, django gettext javascript performance, static i18n catalogs django, javascript internationalization django, django translation caching, jsi18n static compilation, django-i18n, static-files, performance [View on SkillFed](https://skillfed.io/packages/django-statici18n) · [View on PyPI](https://pypi.org/project/django-statici18n/)