mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-26 10:41:11 +00:00
|
Some checks failed
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (javascript-typescript) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Pre-commit / pre-commit (push) Has been cancelled
Test / Run Python Tests (push) Has been cancelled
|
||
|---|---|---|
| .. | ||
| .vscode | ||
| app | ||
| benchmark | ||
| lang | ||
| scripts | ||
| tests | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| .python-version | ||
| babel.cfg | ||
| cli.py | ||
| main.py | ||
| messages.pot | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
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(?!\])