Конфигурация babel для мультиязычности

This commit is contained in:
2026-03-07 01:29:05 +07:00
parent b6ab76a637
commit af12fb38de

36
babel.cfg Normal file
View File

@@ -0,0 +1,36 @@
# ==========================================================
# Babel configuration
# ==========================================================
# ----------------------------------------------------------
# Python source files
# ----------------------------------------------------------
[python: **.py]
encoding = utf-8
keywords =
_
gettext
ngettext:1,2
pgettext:1c,2
npgettext:1c,2,3
lazy_gettext
lazy_pgettext:1c,2
__
# ----------------------------------------------------------
# Jinja2 templates (optional)
# ----------------------------------------------------------
[jinja2: **/templates/**.html]
encoding = utf-8
# ----------------------------------------------------------
# Ignore directories
# ----------------------------------------------------------
[ignore: venv/**]
[ignore: .venv/**]
[ignore: env/**]
[ignore: migrations/**]
[ignore: alembic/**]
[ignore: tests/**]