Management/ Comands

generate_i18n_js

Script that creates the translation file with the format translation-xxxx.js in the path indicated as a parameter. Additionally, it generates in the main path the file *translation-stats.json with the information to be injected into the base html through the templatetags js_translation.

Example:

  python manage.py generate_i18n_js static/js/translation