mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-01 21:20:15 +00:00
Initial commit of eigent-main
This commit is contained in:
commit
723df5a03e
1144 changed files with 103478 additions and 0 deletions
10
backend/app/component/babel.py
Normal file
10
backend/app/component/babel.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from fastapi_babel import BabelConfigs, Babel
|
||||
from pathlib import Path
|
||||
|
||||
babel_configs = BabelConfigs(
|
||||
ROOT_DIR=Path(__file__).parent.parent,
|
||||
BABEL_DEFAULT_LOCALE="en_US",
|
||||
BABEL_TRANSLATION_DIRECTORY="lang",
|
||||
)
|
||||
|
||||
babel = Babel(configs=babel_configs)
|
||||
Loading…
Add table
Add a link
Reference in a new issue