fix: i18n_getmsgs 路由到内置 i18n registerfunction + language 用 text 显示

This commit is contained in:
p 2026-08-14 12:04:18 +08:00
parent d0fe4c98cf
commit ed7aa81023
2 changed files with 9 additions and 3 deletions

View File

@ -46,7 +46,13 @@
"session_max_time": 3600,
"session_issue_time": 1800,
"client_max_size": 10485760,
"indexes": ["index.ui", "index.html"]
"indexes": ["index.ui", "index.html"],
"startswiths": [
{
"leading": "/i18n_getmsgs",
"registerfunction": "i18n"
}
]
},
"SAGE_RBAC_DB": "pipeline"
}

View File

@ -3,7 +3,7 @@
"widgettype": "Text",
"options": {
"tip": "切换语言",
"otext": "🌐",
"text": "🌐",
"cwidth": 4,
"css": "clickable",
"cfontsize": 1.2
@ -29,7 +29,7 @@
"event": "lang",
"actiontype": "script",
"target": "self",
"script": "this.set_otext(bricks.app.lang)"
"script": "this.set_text(bricks.app.lang)"
}
]
}