Django Template I18n Lint

screenshot of Django Template I18n Lint

Django Template I18n Lint

Lint tool to find non-trans/blocktrans text in django templates


The Django Template i18n lint is a simple script designed to find non-i18n (internationalization) text in a Django template. It can also automatically wrap the strings in {% trans "" %} tags. This script is useful for developers who want to ensure that all text in their Django templates can be easily translated into different languages.


  • Find non-i18n text in a Django template
  • Automatically wrap strings in {% trans "" %} tags
  • Generate a translated version of the template


To install the Django Template i18n lint, follow these steps:

  1. Open your terminal and navigate to the directory where you want to install the script.
  2. Clone the GitHub repository using the following command: git clone
  3. Change into the cloned directory: cd django-template-i18n-lint
  4. Install the required dependencies by running the command: pip install -r requirements.txt
  5. You are now ready to use the Django Template i18n lint script.


The Django Template i18n lint is a handy tool for developers working on Django projects. It helps identify any non-i18n text in Django templates and provides the option to automatically wrap the strings in translation tags. By using this script, developers can easily ensure that their templates are ready for internationalization and can be translated into multiple languages.