Django Template I18n Lint

screenshot of Django Template I18n Lint

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

Overview

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.

Features

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

Summary

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.