eigent/backend
2025-11-06 11:22:36 +08:00
..
.vscode Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
app fix: add health check polling to ensure backend is ready before resolving 2025-11-06 11:22:36 +08:00
lang Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
tests fix: #557 create eventloop in terminal_toolkit 2025-10-22 20:51:14 +08:00
.gitignore Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
.python-version Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
babel.cfg Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
cli.py Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
main.py refactor: streamline router registration by replacing auto_include_routers with register_routers 2025-10-31 16:38:50 +00:00
messages.pot Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
pyproject.toml Merge branch 'main' into enhace_loggin 2025-10-20 22:35:44 +08:00
README.md Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
uv.lock Merge branch 'main' into enhace_loggin 2025-10-20 22:35:44 +08:00

uv run uvicorn main:api --port 5001

i18n operation process: https://github.com/Anbarryprojects/fastapi-babel


pybabel extract -F babel.cfg -o messages.pot . --ignore-pot-creation-date  # Extract multilingual strings from code to messages.pot file
pybabel init -i messages.pot -d lang -l zh_CN   # Generate Chinese language pack, can only be generated initially, subsequent execution will cause overwrite
pybabel compile -d lang -l zh_CN                # Compile language pack


pybabel update -i messages.pot -d lang
# -i messages.pot: Specify the input file as the generated .pot file
# -d translations: Specify the translation directory, which typically contains .po files for each language
# -l zh: Specify the language code
# regular search
\berror\b(?!\])