Skip to content

Commit 08cc52c

Browse files
perf: Internationalization of xpack-related APIs
1 parent 87596aa commit 08cc52c

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

backend/apps/swagger/i18n.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@ def load_translation(lang: str) -> Dict[str, str]:
6262
"name": "system_assistant",
6363
"description": f"{PLACEHOLDER_PREFIX}system_assistant_api"
6464
},
65+
{
66+
"name": "system_embedded",
67+
"description": f"{PLACEHOLDER_PREFIX}system_embedded_api"
68+
},
69+
{
70+
"name": "system_authentication",
71+
"description": f"{PLACEHOLDER_PREFIX}system_authentication_api"
72+
},
6573
{ "name": "Table Relation",
6674
"description": f"{PLACEHOLDER_PREFIX}tr_api"
6775
},

backend/apps/swagger/locales/en.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,14 @@
101101
"assistant_type": "Assistant Type (0: Basic, 1: Advanced, 4: Page)",
102102
"assistant_configuration": "Configuration",
103103
"assistant_description": "Description",
104+
105+
"system_embedded_api": "Page Embedded API",
106+
"embedded_resetsecret_api": "Reset Secret",
107+
108+
"system_authentication_api": "Authentication Settings API",
109+
"authentication_enable_api": "Enable Authentication",
110+
"authentication_status_api": "Get Authentication Status",
111+
"authentication_validate_api": "Validate Authentication",
104112

105113
"per_api": "Data Permission",
106114
"per_save": "Save Permission",

backend/apps/swagger/locales/zh.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,14 @@
102102
"assistant_configuration": "配置",
103103
"assistant_description": "描述",
104104

105+
"system_embedded_api": "页面嵌入式api",
106+
"embedded_resetsecret_api": "重置 Secret",
107+
108+
"system_authentication_api": "认证设置api",
109+
"authentication_enable_api": "设置开启",
110+
"authentication_status_api": "查询状态",
111+
"authentication_validate_api": "校验状态",
112+
105113
"per_api": "数据权限",
106114
"per_save": "保存权限",
107115
"per_delete": "删除权限",

backend/apps/system/api/parameter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from apps.system.schemas.permission import SqlbotPermission, require_permissions
88
from common.core.deps import SessionDep
99

10-
router = APIRouter(tags=["system/parameter"], prefix="/system/parameter")
10+
router = APIRouter(tags=["system/parameter"], prefix="/system/parameter", include_in_schema=False)
1111

1212
@router.get("/login")
1313
async def get_login_args(session: SessionDep) -> list[SysArgModel]:

0 commit comments

Comments
 (0)