Skip to content

Commit

Permalink
more server i18n (#31)
Browse files Browse the repository at this point in the history
* more server i18n
  • Loading branch information
jokester authored Dec 15, 2024
1 parent f8d4009 commit 08817ca
Show file tree
Hide file tree
Showing 5 changed files with 1,048 additions and 128 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ lint-fix:
venv/bin/ruff --fix

format:
venv/bin/ruff format
venv/bin/ruff format

requirements.txt: deps-top.txt recreate-venv
venv/bin/pip install -r deps-top.txt
Expand All @@ -40,16 +40,16 @@ test_single:
venv/bin/pytest tests/api/test_file_api.py

test_logging:
#--capture=no
#--capture=no
venv/bin/pytest --capture=sys --log-cli-level=DEBUG tests/base/test_logging.py

babel-update-po:
venv/bin/pybabel extract -F babel.cfg -k lazy_gettext -o messages.pot app
venv/bin/pybabel extract -F babel.cfg -k lazy_gettext -k hardcode_text -o messages.pot app
venv/bin/pybabel update -i messages.pot -d app/translations

babel-update-mo: babel-update-po
venv/bin/pybabel compile -d app/translations

babel-translate-po:
venv/bin/python app/scripts/fill_zh_translations.py
venv/bin/python app/scripts/fill_en_translations.py
venv/bin/python app/scripts/fill_en_translations.py
Loading

0 comments on commit 08817ca

Please sign in to comment.