Translations#
Every label, help text and message in the package is marked for translation. The package ships an
English catalogue in literature/locale/en/LC_MESSAGES/django.po to translate from.
Add a translation#
Add the package’s locale directory to Django’s
LOCALE_PATHS:# settings.py LOCALE_PATHS = [ # your project locales … BASE_DIR / "venv" / "lib" / "site-packages" / "literature" / "locale", ]
Run
makemessagesandcompilemessagesas usual.