feat(api): i18n

feat(api): i18n
This commit is contained in:
pycook
2023-12-25 21:51:44 +08:00
committed by GitHub
parent 8646f4693a
commit 33f9f190e9
12 changed files with 797 additions and 139 deletions

View File

@@ -2,6 +2,7 @@
from celery import Celery
from flask_babel import Babel
from flask_bcrypt import Bcrypt
from flask_caching import Cache
from flask_cors import CORS
@@ -14,6 +15,7 @@ from api.lib.utils import ESHandler
from api.lib.utils import RedisHandler
bcrypt = Bcrypt()
babel = Babel()
login_manager = LoginManager()
db = SQLAlchemy(session_options={"autoflush": False})
migrate = Migrate()