From ed7aa810235eca58f8407bd00d5f8aec4d289478 Mon Sep 17 00:00:00 2001 From: p
Date: Fri, 14 Aug 2026 12:04:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20i18n=5Fgetmsgs=20=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E5=88=B0=E5=86=85=E7=BD=AE=20i18n=20registerfunction=20+=20lan?= =?UTF-8?q?guage=20=E7=94=A8=20text=20=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/config.json | 8 +++++++- wwwroot/i18n/language.ui | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/conf/config.json b/conf/config.json index 7d08490..4dab9f3 100644 --- a/conf/config.json +++ b/conf/config.json @@ -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" } diff --git a/wwwroot/i18n/language.ui b/wwwroot/i18n/language.ui index 25e5236..7c979cb 100644 --- a/wwwroot/i18n/language.ui +++ b/wwwroot/i18n/language.ui @@ -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)" } ] }