mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-28 11:40:25 +00:00
|
Some checks are pending
CodeQL Advanced / Analyze (python) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
Pre-commit / pre-commit (push) Waiting to run
Test / Run Python Tests (push) Waiting to run
Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: emag165 <emag165@users.noreply.github.com> Co-authored-by: Sun Tao <2605127667@qq.com> |
||
|---|---|---|
| .. | ||
| .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(?!\])